Transport · troubleshooting record
Remote MCP endpoint returns HTTP 405
The endpoint exists but rejects the HTTP method used. With Streamable HTTP, POST is required at the MCP endpoint; GET and DELETE behavior depends on the protocol version and server implementation. A 405 often indicates a transport mismatch rather than a broken server.
Symptoms
- A POST to the MCP URL returns 405 Method Not Allowed.
- The client probes an endpoint and receives 405 for GET or DELETE.
- The same server works with a different client or protocol version.
Confirmed causes
These causes have a documented basis. They may not be the cause of your specific failure.
The client is using the wrong transport for the endpoint
SSE and Streamable HTTP use different HTTP interactions; a legacy SSE endpoint may not accept the Streamable HTTP POST pattern.
The server is modern-only and answers optional GET/DELETE probes with 405
The 2026-07-28 Streamable HTTP specification removes sessions; modern-only servers may answer GET and DELETE with 405 while POST remains valid.
A proxy or gateway blocks the method
Reverse proxies and WAFs can allow GET but reject POST unless configured explicitly.
Possible causes
- The URL points to a health endpoint instead of the MCP endpoint.
- The client is testing an old session flow against a server that removed sessions.
- CORS preflight is being interpreted as a method error.
What still needs verification
- The spec version and session behavior the server implements.
- Whether the client's POST request is reaching the server or a proxy.
- The server's documented endpoint and transport.
Affected environments
Fixes
Match the transport and endpoint
- Use the transport documented by the server, not the one from a copied config.
- Send POST to the single MCP endpoint for Streamable HTTP.
- Do not treat a 405 on optional GET/DELETE as fatal unless the client requires it.
Inspect proxy behavior
- Check the reverse proxy access log for the method and path.
- Allow POST on the MCP path.
- Re-test with the client after restarting the proxy.
Verify the fix
- POST to the MCP endpoint returns a protocol response rather than 405.
- The client initializes successfully.
- Tool discovery and one read-only call succeed.
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.