MCP FAQ

更新时间:
复制 MD 格式

Find answers to frequently asked questions about the MCP protocol and MCP services.

MCP protocol

  1. How is the MCP protocol implemented?

    MCP is an open-source standard protocol proposed by Anthropic. For implementation details, see the MCP Official Website.

MCP services on the cloud

  1. Why do I see a "Request Quota Exceeded" or "Insufficient Balance" error for my Firecrawl/EverArt MCP Server?

    Enter the service provider's API key and ensure that it has a sufficient free quota or account balance.

  2. Why is my Notion/Github MCP Server failing with an "Insufficient Permissions" error?

    Grant sufficient permissions to your API key. For specific instructions, refer to the documentation for the corresponding MCP service.

Custom MCP service

  1. Can all MCP services be deployed and used without issues?

    Not guaranteed. MCP service providers may modify or shut down their services. Alibaba Cloud Model Studio only provides access to these services and does not guarantee their continuous availability.

  2. How do I troubleshoot a failed Custom MCP Service deployment?

    Verify 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.

    4. You have activated Function Compute (FC) with 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 registry and deploy it via npx <package-name>.

    • Python: Publish the package to PyPI and deploy it via uvx <package-name>.

    • Deployed on a remote server: Connect via SSE.

    For more information, see Custom MCP Service.

  4. Can I use MCP services from Alibaba Cloud Model Studio in other MCP clients like Cline or Cherry Studio?

    Yes. MCP supports both internal configuration within the platform (such as in an Agent or Workflow) and integration with third-party applications (like Cherry Studio or Cursor) through an External Call.

  5. Can an Alibaba Cloud Model Studio MCP service access my local database?

    This is not currently supported. MCP services cannot access your local resources.

  6. Why can't my MCP service access remote resources like a cloud database?

    MCP services are hosted on Function Compute (FC), which does not have a fixed public IP address for outbound traffic. You must add the IP addresses of Function Compute (FC) to an IP address whitelist or establish a VPC connection for the remote resource (for example, your cloud database).

  7. My MCP Server is stored in a private npm registry. Can I deploy it on Alibaba Cloud Model Studio?

    This is not currently supported. Publish the package to a public npm registry or use an SSE connection instead.

  8. If I deploy my own MCP Server, can other people use it?

    No. Access is restricted to your Alibaba Cloud account and any authorized RAM users.

  9. Why can't some Local MCP Server be custom deployed on Alibaba Cloud Model Studio?

    These services require access to local resources, such as files or hardware, which are unavailable in a cloud environment. We recommend deploying such services locally.

  10. If I update the version of my MCP Server, will the custom MCP service deployed on Alibaba Cloud Model Studio also be updated?

    No. For services deployed via npx/uvx, you must manually redeploy the service to apply the update.

Troubleshooting custom MCP services

Error code

Description

Troubleshooting

11200044 - MCP_CONNECTION_REFUSED

The client's connection to the target service was refused. Possible causes:

  • The service is not running.

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

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

  • Run curl <service address> to test the connectivity.

  • Check the downstream service logs to confirm that the MCP service is running.

  • Check the gateway or firewall configuration of the downstream service for connection-rejection rules, such as an IP address whitelist.

11200045 - MCP_CONNECTION_TIMEOUT

The connection timed out. Possible causes:

  • High network latency or packet loss.

  • The server is under high load and responding slowly.

  • Unstable network route or connection.

  • Long connection path when accessing through a proxy.

Retry the connection 2-3 times:

  • If the connection is occasionally successful, the issue is likely network-related.

  • If the issue persists, check the gateway or firewall configuration along the downstream service path for rules such as an IP address whitelist.

11200046 - MCP_REQUEST_TIMEOUT

The connection was established, but the server did not respond in time. Possible causes:

  • The server is taking too long to process the request or lacks sufficient resources.

  • Slow response time due to network bandwidth limitations or high latency.

Retry the request 2-3 times. If the issue persists:

  • Break down the business logic to reduce the processing time of a single request, or implement asynchronous processing.

  • For npx/uvx deployments: Enable logging in the Function Compute (FC) Console to view detailed error information. You can also switch to Express Mode to reduce cold start times.

11200047 - MCP_NETWORK_ERROR

An error related to network reachability, DNS resolution, or a dropped connection.

Possible causes:

  • The domain name cannot be resolved or is resolving incorrectly.

  • The connection was closed by the remote host or an intermediate device.

  • The target host is unreachable or there is a routing issue.

Retry the request 2-3 times. If the issue persists:

  • Run nslookup to verify that domain name resolution is working correctly. If an error occurs, change the DNS and retry.

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

11200048 - MCP_SSL_ERROR

The TLS/SSL handshake or certificate validation failed. Possible causes:

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

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

  • The TLS version or cipher suite is incompatible.

  • A proxy or gateway has modified the certificate.

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

  • If you are using a self-signed certificate, ensure it is configured to be trusted.

  • Disable any proxies and test with a direct connection to determine if a proxy is modifying the certificate.

11200049 - MCP_SERVER_HTTP_UNAUTHORIZED

HTTP 401. The request lacks valid authentication credentials or the credentials have expired. Possible causes:

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

  • The token has expired, been revoked, or is malformed.

  • The server requires specific request headers or cookies that were not included.

  • Consult the documentation for the downstream MCP service to understand its authentication method.

  • Add the correct authentication information to the MCP service, such as the Authorization header.

  • Use a tool like curl to test a direct connection to the downstream service and ensure the configuration is correct.

11200050 - MCP_SERVER_HTTP_FORBIDDEN

HTTP 403. The request was authenticated, but the user does not have permission to access the resource. Possible causes:

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

  • Access is restricted by IP address or source.

  • Consult the downstream MCP service documentation to understand its authorization requirements.

  • Use a tool like curl to test a direct connection to the downstream service and ensure your credentials and permissions are correct.

11200051 - MCP_HTTP_RATE_LIMIT

HTTP 429. The request rate has exceeded the defined limit. Possible causes:

  • Too many requests were sent in a short period.

  • The quota for the current account or instance has been exhausted.

  • Reduce the call frequency. If the response includes a Retry-After header, wait for the specified interval before retrying.

  • If your application requires a higher quota, contact the MCP service provider to request an increase.

11200052 - MCP_HTTP_CLIENT_ERROR

An HTTP 4xx client error other than 400, 401, 403, 404, 405, or 429. Possible causes:

  • The request method, URL, headers, or body do not meet the server's requirements.

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

  • The server timed out while waiting for the request (for example, HTTP 408).

  • Examine the specific status code and error message in the response body and consult the downstream MCP service documentation.

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

11200053 - MCP_HTTP_SERVER_ERROR

An HTTP 5xx error, indicating an internal server or gateway error. Possible causes:

  • The MCP service or gateway is experiencing an issue, is overloaded, or is under maintenance.

  • A dependent downstream service is unavailable.

Retry the request 2-3 times. If the issue persists:

  • Check the response error details and the downstream MCP service logs.

  • For npx/uvx deployments: View the runtime logs in the Function Compute (FC) Console (you must enable logging first).

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

11200054 - MCP_PROTOCOL_ERROR

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

  • The server returned a standard JSON-RPC error (for example, Parse error, Invalid Request, Method not found, Invalid params, 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 matches 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 is still using an old session after the server has restarted or the session has expired.

  • The session ID was passed incorrectly or is missing.

  • A server routing policy sent the request to a different instance.

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

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

11200056 - MCP_UNKNOWN_ERROR

An error that does not fit any of the other categories. The original error message is included in the response. Possible causes:

  • An unclassified error originating from the runtime environment or its dependencies.

  • Investigate based on the original error message and the context.

  • For npx/uvx deployments: Enable logging in the Function Compute (FC) Console to view runtime logs.

11200057 - MCP_INIT_TIMEOUT

The server did not send a ready signal during the initialization phase. Possible causes:

  • The server did not push initialization data in time.

  • High network latency or packet loss.

  • An intermediate proxy or gateway does not properly support long-lived connections.

Retry the connection 2-3 times. If the issue persists:

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

  • Run curl <endpoint> to test the connectivity.

  • If using a reverse proxy, enable long-lived connections and set a sufficient timeout period.

  • For npx/uvx deployments: Check the startup logs in the Function Compute (FC) Console. Basic Mode has a cold start delay; switch to Express Mode for faster startup.

11200058 - MCP_SERVER_HTTP_METHOD_NOT_ALLOWED

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

  • The transport method does not match the access path (for example, using SSE with a message endpoint).

  • Using an unsupported method for a URL (for example, using GET instead of POST).

  • 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 then redeploy.

  • We recommend using a 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, a missing path prefix).

  • The server's router or gateway is not forwarding requests for this path to the MCP service.

  • The instance is offline or was not deployed correctly.

  • Make sure that the type in the configuration matches the endpoint path: "sse" for GET /sse, and "streamableHttp" for POST /mcp. If the configuration is incorrect, modify it in MCP Management and then redeploy.

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

  • Use the curl tool to test the 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 the wrong type.

  • Request headers or query parameters failed server-side validation.

  • Check if the field types and required fields in your request match the server's requirements.

  • Use the curl tool to test connectivity.

Agent and Workflow integration

  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 what parameters to use based on the prompt. Try the following:

    1. Optimize your prompt to clarify the intent.

    2. If that does not work, switch to a more powerful inference model, such as a Qwen 3 series model.

  2. Does calling an MCP service increase the number of input or output tokens?

    Yes, calling an MCP service can increase both input and output tokens.

    1. Increased input tokens: Content retrieved from the MCP service is passed to the model as context, which directly increases the number of input tokens.

    2. Increased output tokens: Although calling an MCP service does not directly generate output tokens, the model may produce a more detailed and complete response because it has richer context, which can indirectly increase the number of output tokens.

  3. Can I access an MCP service when calling the Qwen API?

    No. MCP services from Alibaba Cloud Model Studio must be integrated into an Agent or Workflow application. They cannot be accessed directly when calling the Qwen API.