AD

alexjiaguo/dify-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

26 stars 7 forks 品質 82 トレンド 31Apache-2.0

The most complete Dify MCP server + CLI — 192 tools that let any AI agent build, test & ship Dify workflows autonomously.

概要

Let any AI agent build, test, and ship Dify workflows autonomously — everything a human can do in the UI, now scriptable. Works with — 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, and Amazon Q Developer — plus any other MCP-compatible or shell-capable agent. Dify is a powerful open-source LLM app platform — but its workflow builder is a . What if you want an AI agent to programmatically create workflows, wire up nodes, test them, iterate, and publish — without a browser? is the bridge. It exposes the as a unified tool registry with : 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 is agent-agnostic by design — no SDK lock-in, no proprietary protocol.

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 \
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

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