Skip to content

Add MCP service exposed from workflow failed, 503 Service Unavailable #33381

@sanpatricky

Description

@sanpatricky

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.13.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Enter a workflow editor view
  2. Switch on MCP on and copy its endpoint url
  3. Open MCP menu and add a new MCP service
  4. Fill in the url copied in step2.
  5. Click add and authentication.
  6. 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'
Image

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions