Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools
Configuration
View docs{
"mcpServers": {
"junjiem-dify-plugin-tools-mcp_sse": {
"url": "http://127.0.0.1:8000/sse"
}
}
}You can fetch and call tools using the MCP protocol over HTTP with SSE or Streamable HTTP transport. This enables you to discover and invoke tools from MCP-enabled services through a flexible transport layer.
You connect your MCP client to one or more MCP servers that expose tools over HTTP with SSE or Streamable HTTP. Start by configuring the MCP servers you trust, then call the available tools as actions within your workflow. You can mix servers using SSE streams for real-time updates and streamable HTTP endpoints for on-demand tool calls. The setup supports multiple MCP services so you can expand your toolset without reconfiguring existing connections.
Prerequisites: Node.js and npm should be available on your system. You also need network access to the MCP server endpoints you configure.
Step 1. Create your MCP client configuration file for the servers you plan to use. Step 2. Install any required client libraries or SDKs as indicated by your MCP client setup. Step 3. Start the client and verify that you can discover and call tools from the configured MCP servers.
MCP Servers configuration enables you to specify multiple services, each with its own transport and endpoint. Use SSE for streaming responses or Streamable HTTP for on-demand requests. The default transport is SSE if not specified.
{
"server_name1": {
"transport": "sse",
"url": "http://127.0.0.1:8000/sse",
"headers": {},
"timeout": 50,
"sse_read_timeout": 50
},
"server_name2": {
"transport": "sse",
"url": "http://127.0.0.1:8001/sse"
},
"server_name3": {
"transport": "streamable_http",
"url": "http://127.0.0.1:8002/mcp",
"headers": {},
"timeout": 50
},
"server_name4": {
"transport": "streamable_http",
"url": "http://127.0.0.1:8003/mcp"
}
}
```
```json
{
"mcpServers": {
"server_name1": {
"transport": "sse",
"url": "http://127.0.0.1:8000/sse",
"headers": {},
"timeout": 50,
"sse_read_timeout": 50
},
"server_name2": {
"transport": "sse",
"url": "http://127.0.0.1:8001/sse"
},
"server_name3": {
"transport": "streamable_http",
"url": "http://127.0.0.1:8002/mcp",
"headers": {},
"timeout": 50
},
"server_name4": {
"transport": "streamable_http",
"url": "http://127.0.0.1:8003/mcp"
}
}
}You can connect to managed MCP servers that host SSE or Streamable HTTP transports. Use the provided URLs directly in your MCP client configuration to access MCP services without running your own server.