apify-mcp-server connector fails with invalid auth token error
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Bug: apify-mcp-server connector fails on every tool call with "User was not found or authentication token is not valid."
Proof it's not a token/account issue: Tested with 2 separate Apify accounts and freshly generated tokens each time, including a full uninstall/reinstall of the connector — same error every time.
Direct confirmation the token is valid: Calling Apify's API directly (GET https://api.apify.com/v2/users/me-equivalent test) with the same token returns a valid response — no auth error.
Conclusion: The connector is not correctly attaching the Authorization: Bearer <token> header when it forwards requests to Apify's API. This is a bug in the connector itself, not the user's credentials.
What Should Happen?
The connector should successfully authenticate and return data from Apify API calls (e.g., fetch-actor-details, search-actors) when a valid Apify API token is configured — the same way it works when calling Apify's API directly with the same token (confirmed via curl/Test endpoint, which returned a valid response, not an auth error).
Error Messages/Logs
Error calling tool "fetch-actor-details": User was not found or authentication token is not valid. Authentication failed, check APIFY_TOKEN is set and valid.
Steps to Reproduce
Install/connect the apify-mcp-server connector with a valid Apify API token
Call any Apify tool (e.g., fetch-actor-details on "apify/rag-web-browser")
Observe error: "User was not found or authentication token is not valid"
Confirmed the token works fine when tested directly against Apify's API outside the connector
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.220
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
WSL (Windows Subsystem for Linux)
Additional Information
_No response_