Skip to content
AI GatewayAI Gateway Manual

MCP Troubleshooting

Causes and fixes for the errors MCP clients show when calling Remote MCP servers through AI Gateway.

This guide lists the errors an MCP client shows when it calls Remote MCP servers through AI Gateway, with their causes and fixes. For the setup steps, see Connect MCP servers and Connect MCP clients.

An empty tool list for a connected server is not an error. No tool of that server is allowed in this project, so ask the administrator to allow some.

Errors appear in the client as English messages.

MessageCause and fix
Authentication failed.The Gateway Key is missing, wrong, revoked, or expired. Check that AI_GATEWAY_API_KEY is set where the client runs and that the key is Active in Gateway Keys
MCP server not found.The server name or slug in the endpoint is wrong, you used another project’s key, you lack the ai-user role in that project, or the request came from outside the IP range the administrator set. A toolset opens only with its creator’s key
Tool access denied.The tool is not allowed in this project. Ask the administrator to allow it
Upstream connection required. Connect "<server-name>" in AI Gateway. (when a toolset cannot name the server, Upstream connection required. Connect the MCP servers in "<toolset-name>" in AI Gateway.)You have not connected the OAuth server, it needs reauthorization, or you have not saved a key for the per-user API key server. A call to a toolset tool also names the server to connect. Connect that server or save its key in that project’s MCP Catalog
Upstream authentication failed.The upstream server rejected authentication. Reconnect an OAuth server, or save the key again with Replace API key for a per-user API key server. For a shared API key server, or if saving again does not help, tell the administrator
Upstream timeout. / Upstream unavailable.The upstream server is not responding. Try again later, and tell the administrator if it persists
Rate limit exceeded.You hit the project’s request rate limit, or the upstream server limited the requests. Try again later
A seat must be granted by an organization administrator before using the gateway.You have no seat. Ask an organization administrator to assign one
This feature is not included in the license: mcp_gateway.The installed license does not include the MCP Gateway feature. Contact the administrator