Authentication · troubleshooting record
Remote MCP server returns HTTP 403 Forbidden
The server recognized the request but refused it. That can mean a valid token with insufficient permission, an IP or origin restriction, a user-agent policy, or an OAuth scope that does not cover the requested tool.
Symptoms
- Remote MCP server returns 403 Forbidden.
- Authentication appears to succeed but tool discovery or calls are denied.
- A request works for one account or project but not another.
Confirmed causes
These causes have a documented basis. They may not be the cause of your specific failure.
The token lacks permission for the target resource
403 is commonly returned when authentication succeeds but authorization does not.
The server enforces Origin or IP restrictions
The Streamable HTTP specification requires servers to validate the Origin header and allows HTTP 403 for invalid origins.
The OAuth grant is missing a required scope
OAuth providers issue tokens with scopes; a call outside those scopes is denied even with a valid token.
Possible causes
- The account is suspended or the organization policy blocks the app.
- A WAF blocks the client's user agent or region.
- The client sends an Origin header that the server does not allow.
- The token is valid for a different project or workspace.
What still needs verification
- The exact permission or scope required by the failing tool.
- Whether the request passes through a proxy that changes Origin or IP.
- Whether the server's audit log names the denied principal and reason.
Affected environments
Fixes
Grant the minimum required scope
- Read the provider's tool documentation to identify the required permission.
- Update the token or OAuth grant for that permission only.
- Reconnect so the client obtains a fresh token.
Fix origin and network restrictions
- Test from the same host and network as the client.
- Check server logs for an Origin or IP denial.
- Configure the allowed origin or use a supported client origin; do not disable validation globally.
Verify the fix
- The previously denied tool call succeeds with the corrected scope.
- Server audit logs show an authorized principal.
- Other tools remain unaffected and no broader scope was granted.
Paste the configuration into the Config Doctor. It runs in your browser, never uploads the file, and can show structural issues and safe fixes.
Why we believe this
- modelcontextprotocol.io/specification/2026-07-28/basic/transports/streamable-httpOfficial documentation · checked Oct 23, 2026 · documented
The specification defines the single Streamable HTTP endpoint, protocol headers, Accept requirements, and Origin validation.