Skip to content

v0.1.0 - The complete Dify MCP server + CLI

Choose a tag to compare

@alexjiaguo alexjiaguo released this 19 Jul 17:20
· 31 commits to main since this release

What is this?

dify-mcp exposes the entire Dify console API as 138 tools across 16 namespaces - so any AI agent can build, test, and ship Dify workflows programmatically, without a browser.

Highlights

  • 138 tools, 16 namespaces - app, workflow, provider, plugin, trigger, workspace, file, runs, stats, comment, annotation, audio, RAG, snippet, agent, explore
  • Agent-agnostic - works with Claude Code, Codex, Gemini CLI, Cursor, Cline, Windsurf, Roo Code, Continue, Zed, Aider, and any MCP-compatible or shell-capable agent
  • Dual surface - CLI (difywf) + MCP server (stdio), same tools, same JSON contract
  • Cookie + CSRF auth - handles Dify's session auth with auto-refresh and token-rotation persistence
  • Safe by default - confirm gates on destructive ops, offline graph validation, audit log, dry-run support
  • Zero build step - runs on Node 23.6+ native TypeScript
  • Live-verified against cloud.dify.ai - full authoring loop tested end-to-end

Quick start

git clone https://github.com/alexjiaguo/dify-mcp.git
cd dify-mcp && npm install && npm link
difywf auth import-cookies --base-url https://cloud.dify.ai --file cookies.json
difywf app list

Connect your agent

# Claude Code
claude mcp add dify -- difywf mcp serve

# Codex (~/.codex/config.toml)
[mcp_servers.dify]
command = "difywf"
args = ["mcp", "serve"]

See the README for all supported agents and full setup.

Stats

  • 138 tools
  • 42 unit tests (all passing)
  • Typecheck clean
  • MCP smoke passing
  • Live-verified against cloud.dify.ai