Dify MCP HTTP Tools
Fetch and call tools via MCP over HTTP with SSE or Streamable transport. Supports configuration of multiple MCP services.
Dify 1.0 Plugin MCP HTTP with SSE or Streamable HTTP transport Tools
Author: Junjie.M
Type: tool
Github Repo: https://github.com/junjiem/dify-plugin-tools-mcp_sse
Github Issues: issues
Description
Fetch and call tools by MCP protocol through HTTP with SSE or Streamable HTTP transport.
通过 HTTP with SSE 或 Streamable HTTP 传输方式使用 MCP 协议来发现和调用工具。


MCP Servers config, support multiple MCP services. The following example:
MCP服务配置,支持多个MCP服务。 如下示例:
{
"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"
}
}
OR
{
"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"
}
}
}
Note: "transport" parameter as
sseorstreamable_http, defaultsse.
注: "transport" 参数为
sse或streamable_http,默认为sse。

Managed MCP Servers 托管的MCP服务器
If you want to try MCP but don't know how to deploy SSE transport's MCP Server, can you try connect to Managed MCP Servers.
如果你想尝试 MCP,但是不知道如何部署 SSE 传输的 MCP Server,可以尝试连接托管的 MCP 服务器。
Example 1 示例1

Reference Cursor Settings, shown below:
参考 Cursor 设置,如下图:

MCP Servers config, shown below:
MCP 服务配置,如下示例:
{
"tavily": {
"url": "https://mcp.composio.dev/tavily/xxxx-xxxx-xxxx-xxxx"
}
}
Example 2 示例2
Copy the MCP Server URL for use in the Dify plug-in configuration.
复制 MCP Server URL,在 Dify 插件配置中使用。

MCP Servers config, shown below:
MCP 服务配置,如下示例:
{
"zapier-mcp": {
"url": "https://actions.zapier.com/mcp/sk-xxxxxxxxxx/sse"
}
}
Click "Edit MCP Actions" to go to the page for adding tools and actions.
点击 “Edit MCP Actions” ,进入工具和操作的添加页面。

Click "Add a new action" to add the required MCP service instance.
点击 “Add a new action”,添加需要的MCP服务实例。

You can also continue to add different actions to enrich the tool set available to the Agent.
你还可以继续添加不同的 Action,丰富 Agent 可用的工具集。
Example 3 示例3
Streamable HTTP

MCP Servers config, shown below:
MCP 服务配置,如下示例:
{
"tavily-mcp": {
"transport": "streamable_http",
"url": "https://router.mcp.so/mcp/xxxxxxxxxxx"
}
}
SSE

MCP Servers config, shown below:
MCP 服务配置,如下示例:
{
"tavily-mcp": {
"url": "https://router.mcp.so/sse/xxxxxxxxxxx"
}
}
Installing Plugins via GitHub 通过 GitHub 安装插件
Can install the plugin using the GitHub repository address. Visit the Dify platform's plugin management page, choose to install via GitHub, enter the repository address, select version number and package file to complete installation.
可以通过 GitHub 仓库地址安装该插件。访问 Dify 平台的插件管理页,选择通过 GitHub 安装插件,输入仓库地址后,选择版本号和包文件完成安装。


FAQ
1. How to Handle Errors When Installing Plugins? 安装插件时遇到异常应如何处理?
Issue: If you encounter the error message: plugin verification has been enabled, and the plugin you want to install has a bad signature, how to handle the issue?
Solution: Add the following line to the end of your .env configuration file: FORCE_VERIFYING_SIGNATURE=false
Once this field is added, the Dify platform will allow the installation of all plugins that are not listed (and thus not verified) in the Dify Marketplace.
问题描述:安装插件时遇到异常信息:plugin verification has been enabled, and the plugin you want to install has a bad signature,应该如何处理?
解决办法:在 .env 配置文件的末尾添加 FORCE_VERIFYING_SIGNATURE=false 字段即可解决该问题。
添加该字段后,Dify 平台将允许安装所有未在 Dify Marketplace 上架(审核)的插件,可能存在安全隐患。
2. How to install the offline version 如何安装离线版本
Scripting tool for downloading Dify plugin package from Dify Marketplace and Github and repackaging [true] offline package (contains dependencies, no need to be connected to the Internet).
从Dify市场和Github下载Dify插件包并重新打【真】离线包(包含依赖,不需要再联网)的脚本工具。
Github Repo: https://github.com/junjiem/dify-plugin-repackaging
3. Set up authorization save invalid and no error message 设置授权保存无效且无错误消息
Issue: The set timeout time exceeds the default keepalive timeout of 65 seconds in nginx in Dify.
Solution:
- Solution 1: Modify
NGINX_KEEPALIVE_TIMEOUTvalue in the .env file, for example:NGINX_KEEPALIVE_TIMEOUT=650. - Solution 2: Modify
MCP Servers config, for example:{...., "timeout": 50, "sse_read_timeout": 50}.
问题描述:设置的超时时间超过了Dify中默认的Nginx保持连接的超时时间65秒。
解决办法:
- 方案1:修改 .env 文件中的
NGINX_KEEPALIVE_TIMEOUT值,如:NGINX_KEEPALIVE_TIMEOUT=650。 - 方案2:修改
MCP 服务配置,例如:{...., "timeout": 50, "sse_read_timeout": 50}。
İlgili Sunucular
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
MCP Memory Keeper
A server for persistent context management in Claude AI coding assistants, using a local SQLite database for storage.
GZOO Cortex
Local-first knowledge graph for developers. Watches project files, extracts entities and relationships via LLMs, and lets you query across projects with natural language and source citations.
Juniper Junos MCP Server
An MCP server for interacting with Juniper Junos network devices using LLMs.
MCP Trading Partner Management
An MCP server for managing trading partners in the SAP Integration Suite.
context-mem
Context optimization for AI coding assistants — 99% token savings via 14 content-aware summarizers, 3-layer search, and progressive disclosure. No LLM dependency.
Figma
Integrate Figma design data with AI coding tools using a local MCP server.
Vega-Lite
Generate visualizations from fetched data using the VegaLite format and renderer.
App Market Intelligence MCP
Analyze app data from the Apple App Store and Google Play Store for market intelligence and insights.
FDEP MCP Server
A static code analysis server for enterprise-scale Haskell codebases, providing over 40 comprehensive analysis tools.
mcp-openapi
Turn any OpenAPI/Swagger spec into Claude tools. Zero config, zero code.