AD

alexjiaguo/dify-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

26 stars 7 forks 质量 82 趋势 31Apache-2.0

最完整的Dify MCP服务器+CLI——192个工具,允许任何AI代理自主构建、测试并交付Dify工作流。

概览

让任何AI代理自主构建、测试并发布Dify工作流程——人类在UI中能做的所有事情,现在都可脚本化。 支持Claude Code、Codex、Gemini CLI、Cursor、Cline、Windsurf、Roo Code、Continue、Zed、Aider、OpenCode、Antigravity、GitHub Copilot、Goose、Trae、Kilo Code、Warp、Crush、Droid、Amp、OpenHands、Cody、Augment和Amazon Q Developer——以及任何其他兼容MCP或支持shell的代理。 Dify是一个强大的开源LLM应用平台——但它的工作流程构建器是个。如果你想让AI代理程序化创建工作流程、连接节点、测试节点、迭代和发布——而且不需要浏览器呢? 是桥接。它以统一工具注册表的形式暴露出来,包含:一个任何支持shell的代理都能驱动的CLI和一个MCP服务器(stdio或可流式HTTP),任何兼容MCP的主机都能连接。相同的192个工具,相同的JSON合同,相同的安全保障。 dify-mcp 设计上是代理无关的——没有 SDK 锁定,也没有专有协议。

概述(AI 翻译)

最完整的MCP服务器+Dify的CLI

192个工具。21个命名空间。一个注册表。 让任何AI代理构建、测试和发放 Dify的工作流程实现自主——人类在UI中能做的所有事情,现在都可脚本化。

支持24个流行的AI代理——Claude Code、Codex、Gemini CLI、Cursor、Cline、Windsurf、Roo Code、Continue、Zed、Aider、OpenCode、Antigravity、GitHub Copilot、Goose、Trae、Kilo Code、Warp、Crush、Droid、Amp、OpenHands、Cody、Augment和Amazon Q Developer——以及任何其他兼容MCP或支持shell的代理。


这是什么?

Dify是一个强大的开源LLM应用平台——但它的工作流程构建器是 可视化拖拽编辑器。如果你想要一个AI代理程序化 创建工作流程、连接节点、测试、迭代并发布——不使用浏览器?

dify-mcp 是桥接器。它将整个 Dify 控制台 API** 作为统一的界面暴露 工具注册表:包含两个表面:一个任何支持shell的代理都能驱动的CLI,以及一个 MCP服务器(stdio或Streamable HTTP)任何兼容MCP的主机都可以连接。相同的192工具,相同的JSON 合同,同样的安全保障。

和你最喜欢的特工合作

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。


What is this?

Dify is a powerful open-source LLM app platform — but its workflow builder is a visual drag-and-drop editor. What if you want an AI agent to programmatically create workflows, wire up nodes, test them, iterate, and publish — without a browser?

dify-mcp is the bridge. It exposes the entire Dify console API as a unified tool registry with two surfaces: a CLI any shell-capable agent can drive, and an MCP server (stdio or Streamable HTTP) any MCP-compatible host can attach. Same 192 tools, same JSON contract, same safety guarantees.

┌──────────────────────────────────────────────────────────┐
│                    dify-mcp                              │
│                                                          │
│   ┌──────────┐    ┌────────────────────┐    ┌─────────┐ │
│   │  CLI     │───▶│   192-tool         │───▶│  Dify   │ │
│   │  difywf  │    │   registry         │    │  API    │ │
│   └──────────┘    │                    │    └─────────┘ │
│   ┌──────────┐    │  app · workflow    │         ▲      │
│   │  MCP     │───▶│  knowledge · rag   │─────────┘      │
│   │  stdio   │    │  agent · snippet   │                │
│   └──────────┘    │  workspace · ...   │                │
│                   └────────────────────┘                │
└──────────────────────────────────────────────────────────┘

Works with your favorite agents

dify-mcp is agent-agnostic by design — no SDK lock-in, no proprietary protocol. If your agent can run a shell command, it can use the CLI. If it speaks MCP, it can attach the server. Most popular agents do both:

Agent MCP CLI Quick setup
在 GitHub 查看完整 README

安装

docker run -d --name dify-mcp \
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "dify": { "command": "difywf", "args": ["mcp", "serve"] } } }