Self Checks
Dify version
1.13.0
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
- Enter a workflow editor view
- Switch on MCP on and copy its endpoint url
- Open MCP menu and add a new MCP service
- Fill in the url copied in step2.
- Click add and authentication.
- Click authentication.
Then the page says: Failed to connect to MCP server: code=503 message="Server error '503 Service Unavailable' for url 'http://localhost/mcp/server/cl2cAH7KRScwaUek/mcp'
log:
ssrf_proxy
1773360616.329 0 172.18.0.8 TCP_MISS_ABORTED/503 3477 POST http://localhost/mcp/server/cl2cAH7KRScwaUek/mcp - HIER_DIRECT/::1 text/html
api
2026-03-13 00:10:16.329 INFO [ThreadPoolExecutor-37_0] [_client.py:1038] - HTTP Request: POST http://localhost/mcp/server/cl2cAH7KRScwaUek/mcp "HTTP/1.1 503 Service Unavailable"
Other MCP services not exposed from workflow for example written by python can be added without this issue.
✔️ Expected Behavior
The MCP service exposed from the workflow can be added.
❌ Actual Behavior
Failed to connect to MCP server: code=503 message="Server error '503 Service Unavailable' for url 'http://localhost/mcp/server/cl2cAH7KRScwaUek/mcp'
Self Checks
Dify version
1.13.0
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Then the page says: Failed to connect to MCP server: code=503 message="Server error '503 Service Unavailable' for url 'http://localhost/mcp/server/cl2cAH7KRScwaUek/mcp'
log:
ssrf_proxy
1773360616.329 0 172.18.0.8 TCP_MISS_ABORTED/503 3477 POST http://localhost/mcp/server/cl2cAH7KRScwaUek/mcp - HIER_DIRECT/::1 text/html
api
2026-03-13 00:10:16.329 INFO [ThreadPoolExecutor-37_0] [_client.py:1038] - HTTP Request: POST http://localhost/mcp/server/cl2cAH7KRScwaUek/mcp "HTTP/1.1 503 Service Unavailable"
Other MCP services not exposed from workflow for example written by python can be added without this issue.
✔️ Expected Behavior
The MCP service exposed from the workflow can be added.
❌ Actual Behavior
Failed to connect to MCP server: code=503 message="Server error '503 Service Unavailable' for url 'http://localhost/mcp/server/cl2cAH7KRScwaUek/mcp'