MCP HTTP with SSE transport Tools

MCP HTTP with SSE transport Tools

一个允许 Dify 通过 HTTP 和服务器发送事件 (Server-Sent Events) 传输协议连接到多个 MCP (模型控制协议) 服务器的插件,支持 URL、标头和超时等自定义配置。

数据与应用分析
访问服务器

README

Dify 1.0 插件 MCP HTTP with SSE 传输工具

作者: Junjie.M 类型: 工具 Github 仓库: https://github.com/junjiem/dify-plugin-tools-mcp_sse Github Issues: issues


描述

Fetch and call tools by MCP protocol through HTTP with SSE transport.

通过 HTTP with SSE 传输使用 MCP 协议来发现和调用工具。

mcp_sse_plugin

mcp_sse_plugin_set_authorization

MCP Servers config, support multiple MCP services. The following example:

MCP服务配置,支持多个MCP服务。 如下示例:

{
  "server_name1": {
    "url": "http://127.0.0.1:8000/sse",
    "headers": {},
    "timeout": 60,
    "sse_read_timeout": 300
  },
  "server_name2": {
    "url": "http://127.0.0.1:8001/sse"
  }
}

OR

{
  "mcpServers": {
      "server_name1": {
        "url": "http://127.0.0.1:8000/sse",
        "headers": {},
        "timeout": 60,
        "sse_read_timeout": 300
      },
      "server_name2": {
        "url": "http://127.0.0.1:8001/sse"
      }
    }
}

agent_add_mcp_see_tools


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

Composio Managed MCP Servers

Composio 托管的 MCP 服务器

composio_mcp_list

Reference Cursor Settings, shown below:

参考 Cursor 设置,如下图:

composio_mcp_cursor composio_mcp_cursor2

MCP Servers config, shown below:

MCP 服务配置,如下示例:

{
  "tavily": {
    "url": "https://mcp.composio.dev/tavily/xxxx-xxxx-xxxx-xxxx"
  }
}

Example 2 示例2

Zapier Managed MCP Servers

Zapier 托管的 MCP 服务器

Copy the MCP Server URL for use in the Dify plug-in configuration.

复制 MCP Server URL,在 Dify 插件配置中使用。

zapier_mcp_servers

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” ,进入工具和操作的添加页面。

zapier_mcp_edit_actions

Click "Add a new action" to add the required MCP service instance.

点击 “Add a new action”,添加需要的MCP服务实例。

zapier_mcp_add_actions

You can also continue to add different actions to enrich the tool set available to the Agent.

你还可以继续添加不同的 Action,丰富 Agent 可用的工具集。


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 安装插件,输入仓库地址后,选择版本号和包文件完成安装。

install_plugin_via_github

install_plugin_via_github


FAQ

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 上架(审核)的插件,可能存在安全隐患。

推荐服务器

VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
AIO-MCP Server

AIO-MCP Server

🚀 集成了 AI 搜索、RAG 和多服务(GitLab/Jira/Confluence/YouTube)的一体化 MCP 服务器,旨在增强 AI 驱动的开发工作流程。来自 Folk。

精选
本地
Hyperbrowser

Hyperbrowser

欢迎来到 Hyperbrowser,人工智能的互联网。Hyperbrowser 是下一代平台,旨在增强人工智能代理的能力,并实现轻松、可扩展的浏览器自动化。它专为人工智能开发者打造,消除了本地基础设施和性能瓶颈带来的麻烦,让您能够:

精选
本地
BigQuery MCP Server

BigQuery MCP Server

这是一个服务器,可以让你的大型语言模型(LLM,比如Claude)直接与你的BigQuery数据对话!可以把它想象成一个友好的翻译器,它位于你的AI助手和数据库之间,确保它们可以安全高效地进行交流。

精选
mcp-perplexity

mcp-perplexity

Perplexity API 的 MCP 服务器。

精选
MCP Web Research Server

MCP Web Research Server

一个模型上下文协议服务器,使 Claude 能够通过集成 Google 搜索、提取网页内容和捕获屏幕截图来进行网络研究。

精选
MySQL MCP Server

MySQL MCP Server

允许人工智能助手通过受控界面列出表格、读取数据和执行 SQL 查询,从而使数据库探索和分析更安全、更有条理。

精选
mcp-codex-keeper

mcp-codex-keeper

作为开发知识的守护者,为 AI 助手提供精心策划的最新文档和最佳实践访问权限。

精选
MCP Etherscan Server

MCP Etherscan Server

通过 Etherscan 的 API 促进与以太坊区块链数据的交互,提供对余额、交易、代币转移、合约 ABI、gas 价格和 ENS 名称解析的实时访问。

精选
Perplexity Deep Research MCP

Perplexity Deep Research MCP

一个服务器,它允许 AI 助手使用 Perplexity 的 sonar-deep-research 模型进行网络搜索,并提供引用支持。

精选