Skip to main content

MCP FAQ

Find answers to common questions about the MCP protocol and MCP services.

MCP protocol

  1. How is the MCP protocol implemented? MCP is an open standard protocol from Anthropic. For implementation details, see the official MCP website.

Deploying MCP services in the cloud

  1. Why does my Firecrawl/EverArt MCP Server report an error such as "Request usage limit reached" or "Insufficient balance"? Enter the service provider's API key. Ensure that you have enough free quota or a sufficient account balance.
  2. Why did my Notion/GitHub MCP Server fail to run and report an insufficient permissions error? Grant sufficient permissions to your API key. For more information, see the documentation for the specific MCP service.

Custom MCP services

  1. Can all MCP services be deployed and used without issues? No. MCP service providers might change or shut down their services. Alibaba Cloud Model Studio only provides a way to access these services and does not guarantee their continued availability.
  2. My custom MCP service deployment failed. How can I troubleshoot it? Confirm the following:
    1. The MCP service runs correctly on your local machine.
    2. The MCP service can be hosted in the cloud and does not require communication with a browser or local application.
    3. The installation method and configuration code are correct during deployment.
    4. Function Compute (FC) is activated, you have the required permissions, and your Alibaba Cloud account has no overdue payments.
  3. Can I deploy an MCP service that I developed myself?
    • Node.js: Publish the package to a public npm repository and deploy it using npx <package-name>.
    • Python: Publish the package to the PyPI repository and deploy it using uvx <package-name>.
    • Deployed on a remote server: Connect using Server-Sent Events (SSE).
    For more information, see Custom MCP services.
  4. Can Alibaba Cloud Model Studio MCP services be used in other MCP clients, such as Cline or Cherry Studio? Yes. On the MCP service details page, copy the MCP service address from the Install section, add it manually in a client that supports Streamable HTTP or SSE, and configure the Authorization: Bearer ${DASHSCOPE_API_KEY} request header. The console supports quick installation for Qoder, Codex, Claude Code, and Cursor. For more information, see External calls.
  5. Can Alibaba Cloud Model Studio MCP services access a local database? No. At this time, MCP services cannot access your local resources.
  6. Why can't my MCP service access remote resources, such as an ApsaraDB RDS instance? MCP services are hosted on Function Compute (FC), which does not have a fixed public IP address. To allow your MCP service to access remote resources, such as an ApsaraDB RDS instance, you must configure an IP address whitelist for FC or establish a VPC connection.
  7. My MCP Server is in a private npm repository. Can I deploy it to Alibaba Cloud Model Studio? No, this is not supported at this time. You must publish the server to a public npm repository or use an SSE connection instead.
  8. If I deploy a custom MCP Server, can other people use it? No. Access is restricted to your Alibaba Cloud account and authorized RAM users.
  9. Why can't some local MCP Servers be deployed as custom services on Alibaba Cloud Model Studio? This is because they need to access local resources, such as files or hardware, that the cloud environment cannot access. You must deploy these types of services locally.
  10. My MCP Server has a new version. Will the custom MCP service deployed on Alibaba Cloud Model Studio be updated automatically? No. Services deployed using npx or uvx must be manually redeployed after a version update.

Error codes and troubleshooting for custom MCP services

Error code

Problem and possible causes

Troubleshooting

11200044 - MCP_CONNECTION_REFUSED

The client cannot establish a connection to the target service, and the connection is refused. Possible causes:

  • The service is not started.

  • The port is not open, or the connection is blocked by a firewall.

  • The network is unreachable, or the address is incorrectly configured.

  • Run curl <service address> to test connectivity.

  • Check the downstream service logs to confirm whether the MCP service is started.

  • Check the gateway or firewall configuration of the downstream service for connection rejection rules such as IP whitelists.

11200045 - MCP_CONNECTION_TIMEOUT

The connection establishment timed out. Possible causes:

  • Network latency or packet loss.

  • The server is under heavy load and responds slowly.

  • The route or network is unstable.

  • The connection path is long when access goes through a proxy.

We recommend that you retry 2 to 3 times first:

  • If the service is occasionally accessible, the issue is a network problem.

  • If the issue persists, check the gateway or firewall configuration along the downstream service path for IP whitelist configurations.

11200046 - MCP_REQUEST_TIMEOUT

The connection is established, but the wait for the response times out. Possible causes:

  • The server takes a long time to process requests, or resources are insufficient.

  • Network bandwidth or latency causes slow responses.

We recommend that you retry 2 to 3 times first. If the issue persists:

  • Split the business logic to reduce the processing time of each request, or make the business logic asynchronous.

  • For npx/uvx deployments: enable Log Service in the Function Compute FC console to view error details, and switch to Fast Mode to reduce cold start time.

11200047 - MCP_NETWORK_ERROR

Exceptions related to network reachability, domain name resolution, or connection interruption.

Possible causes:

  • The domain name cannot be resolved, or resolution fails.

  • The connection is closed midway by the peer or an intermediate device.

  • The destination host is unreachable, or routing fails.

We recommend that you retry 2 to 3 times first. If the issue persists:

  • Run nslookup to confirm that domain name resolution is normal. If resolution fails, switch to a different DNS server and retry.

  • Check the url field in the configuration, and run curl <url> to test whether the service responds.

11200048 - MCP_SSL_ERROR

TLS/SSL handshake or certificate verification failed. Possible causes:

  • The server certificate has expired, the domain name does not match the certificate, or the certificate chain is incomplete.

  • The local machine does not trust the server certificate (for example, a self-signed certificate).

  • The TLS version or cipher suite is incompatible.

  • The proxy or gateway rewrites the certificate.

  • Open the service address in a browser to check whether the certificate has expired or the domain name does not match.

  • When using a self-signed certificate, complete the trust configuration as required.

  • Disable the proxy and test with a direct connection to determine whether the certificate is rewritten by the proxy.

11200049 - MCP_SERVER_HTTP_UNAUTHORIZED

HTTP 401: the request does not carry valid authentication, or the authentication has expired. Possible causes:

  • Authentication information (such as a token or API key) is not provided or is not passed correctly.

  • The token has expired, is revoked, or is in an incorrect format.

  • A request header or cookie required by the server is not satisfied.

  • Check the documentation of the downstream MCP service to understand the authentication method.

  • Correctly add authentication information to the MCP service, for example, the Authorization information in the headers.

  • Use the curl tool to test a direct connection to the downstream service to make sure the configuration is correct.

11200050 - MCP_SERVER_HTTP_FORBIDDEN

HTTP 403: the request is authenticated but does not have access permission. Possible causes:

  • The current account or role does not have permission to access the MCP service or instance.

  • IP address or source restrictions exist.

  • Check the documentation of the downstream MCP service to understand the authentication method.

  • Use the curl tool to test a direct connection to the downstream service to make sure the configuration is correct.

11200051 - MCP_HTTP_RATE_LIMIT

HTTP 429: the request frequency exceeds the rate limit threshold. Possible causes:

  • Too many requests are sent within a short period.

  • The quota of the current account or instance is used up.

  • Reduce the call frequency. If the response contains a Retry-After header, retry at the suggested interval.

  • If your business requires a higher quota, contact the MCP service provider to apply for one.

11200052 - MCP_HTTP_CLIENT_ERROR

HTTP 4xx errors other than 400/401/403/404/405/429. Possible causes:

  • The request method, URL, request headers, or request body does not meet the server requirements.

  • The request body is too large or the URL is too long.

  • The request times out while the server is waiting (for example, 408).

  • Check the specific status code and error message in the response body, and consult the downstream MCP service documentation to try to resolve the issue.

  • Use the curl tool to test, and view the complete request, response, and downstream MCP service logs.

11200053 - MCP_HTTP_SERVER_ERROR

HTTP 5xx: an internal error of the server or gateway. Possible causes:

  • The MCP service or gateway is abnormal, overloaded, or under maintenance.

  • A dependent downstream service is unavailable.

We recommend that you retry 2 to 3 times first. If the issue persists:

  • View the response error details and the logs of the downstream MCP service.

  • For npx/uvx deployments: view the run logs in the Function Compute FC console (you must enable Log Service first).

  • Use the curl tool to test, and view the complete request, response, and downstream MCP service logs.

11200054 - MCP_PROTOCOL_ERROR

The response cannot be parsed according to the MCP protocol. Possible causes:

  • The server returns a standard JSON-RPC error (such as a parse error, invalid request, method not found, invalid parameters, or internal error).

  • The protocol or version is incompatible.

  • Correct the request format, method name, or parameters based on the JSON-RPC error code.

  • Confirm that the type in the configuration is consistent with the endpoint path: "sse" corresponds to /sse, and "streamableHttp" corresponds to /mcp.

11200055 - MCP_SESSION_NOT_FOUND

The session does not exist or has expired. Possible causes:

  • The client continues to use the old session after the server restarts or the session expires.

  • The session ID is passed incorrectly or is lost.

  • The server routing policy causes the request to not hit the same instance.

  • Optimize the downstream MCP service to comply with the standard MCP protocol behavior.

  • Check the logs. The downstream MCP service might have restarted unexpectedly, causing the session to be lost.

11200056 - MCP_UNKNOWN_ERROR

An exception that cannot be classified into the preceding categories. The returned message contains the original error content. Possible causes:

  • An unclassified exception from the runtime environment or dependencies.

  • Troubleshoot the issue based on the returned original error message and the context.

  • For npx/uvx deployments: enable Log Service in the Function Compute FC console to view the run logs.

11200057 - MCP_INIT_TIMEOUT

No server-ready signal is received during the initialization phase. Possible causes:

  • The server does not push the initialization data in time.

  • Network latency or packet loss.

  • The intermediate proxy or gateway does not properly support long connections.

We recommend that you retry 2 to 3 times first. If the issue persists:

  • Go to MCP Management to verify the access address and transport method (sse or streamableHttp).

  • Run curl <access address> to test connectivity.

  • The reverse proxy must support long connections and set a sufficient timeout period.

  • For npx/uvx deployments: view the startup logs in the Function Compute FC console. The Basic mode has cold start latency. You can switch to Fast Mode.

11200058 - MCP_SERVER_HTTP_METHOD_NOT_ALLOWED

HTTP 405: the endpoint does not accept the HTTP method used. Possible causes:

  • The transport method does not match the access path (for example, SSE and the Message endpoint are used interchangeably).

  • A method that the server does not support is used for the same URL (for example, GET/POST is used by mistake).

  • Confirm that the type in the configuration matches the endpoint path: "sse" corresponds to GET /sse, and "streamableHttp" corresponds to POST /mcp. If the configuration is incorrect, modify it in MCP Management and redeploy the service.

  • We recommend that you use the standard MCP SDK to implement the downstream MCP service.

11200059 - MCP_SERVER_HTTP_NOT_FOUND

HTTP 404: the requested path does not exist. Possible causes:

  • The access URL path is configured incorrectly (for example, the path prefix is missing).

  • The server route or gateway does not forward the path to the MCP service.

  • The instance is offline or not correctly deployed.

  • Confirm that the type in the configuration matches the endpoint path: "sse" corresponds to GET /sse, and "streamableHttp" corresponds to POST /mcp. If the configuration is incorrect, modify it in MCP Management and redeploy the service.

  • Go to MCP Management to check the service status, and redeploy the service if it is not deployed.

  • Use the curl tool to test connectivity.

11200060 - MCP_SERVER_HTTP_BAD_REQUEST

HTTP 400: the request format or parameters are invalid. Possible causes:

  • The request body is not valid JSON or does not comply with the MCP/JSON-RPC format.

  • Required parameters are missing or have incorrect types.

  • The request headers or query parameters fail the server-side validation.

  • Check whether the types and required fields of the relevant fields are consistent with the server requirements.

  • Use the curl tool to test connectivity.

Integration with agent or workflow applications

  1. Why can't my agent application call an MCP service, or why does it report a parameter error? The agent decides which service to call and which parameters to use based on the prompt. Try the following:
    1. Optimize the prompt to clarify the intent.
    2. If that does not work, switch to a more powerful reasoning model, such as a Qwen 3 series model.
  2. Does calling an MCP service increase model input or output tokens? Yes. Calling an MCP service can increase both model input and output tokens.
    1. Input tokens increase: content obtained from the MCP service is passed to the model as context, which directly increases the number of input tokens.
    2. Output tokens increase: although calling the MCP service does not directly generate output tokens, the model gains richer contextual information and might generate more detailed and complete responses, which indirectly increases the number of output tokens.
  3. Can MCP services be integrated when calling the Qwen API? No. Alibaba Cloud Model Studio MCP services must be integrated into an agent or workflow application. They cannot be directly integrated when you call the Qwen API.