Dify
Server for using Dify. It achieves the invocation of the Dify workflow by calling the tools of MCP.
What is Dify?
Dify is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to server for using dify. it achieves the invocation of the dify workflow by calling the tools of mcp.
Server for using Dify. It achieves the invocation of the Dify workflow by calling the tools of MCP.
This server falls under the Coding Agents category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Server for using Dify. It achieves the invocation of the Dif
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx dify-serverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Dify
The Dify MCP Server bridges Dify's AI workflow platform with any MCP-compatible client, letting you invoke Dify workflows and apps directly as MCP tool calls. It reads your Dify application secret keys and base URL from environment variables, then dynamically exposes each configured Dify app as a callable tool. This makes it straightforward to integrate sophisticated Dify-built AI pipelines into Claude, Cursor, or other agents without writing any glue code.
Prerequisites
- Python 3.10+ and uv package manager installed (curl -Ls https://astral.sh/uv/install.sh | sh)
- A Dify account with at least one published workflow or chatflow app
- One or more Dify application secret keys (found in each app's API Access settings)
- The Dify base URL for your instance (e.g. https://cloud.dify.ai/v1 or self-hosted endpoint)
- An MCP-compatible client such as Claude Desktop or Cursor
Install uv
Install the uv Python package manager, which is required to run the Dify MCP server without cloning the repository.
curl -Ls https://astral.sh/uv/install.sh | shCollect your Dify credentials
In your Dify dashboard, open each app you want to expose and copy the App Secret Key from the API Access section. Also note your base URL (https://cloud.dify.ai/v1 for Dify Cloud, or your self-hosted domain). Multiple app keys can be supplied as a comma-separated list.
Test the server manually
Run the server once from the command line to confirm your credentials work before adding it to your MCP client config.
DIFY_BASE_URL=https://cloud.dify.ai/v1 DIFY_APP_SKS=app-yourkey1,app-yourkey2 uvx --from git+https://github.com/YanxingLiu/dify-mcp-server dify_mcp_serverAdd the server to your MCP client configuration
Open your MCP client's config file (e.g. claude_desktop_config.json for Claude Desktop) and add the dify-mcp-server entry with your credentials as environment variables.
{
"mcpServers": {
"dify-mcp-server": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/YanxingLiu/dify-mcp-server",
"dify_mcp_server"
],
"env": {
"DIFY_BASE_URL": "https://cloud.dify.ai/v1",
"DIFY_APP_SKS": "app-yourkey1,app-yourkey2"
}
}
}
}Restart your MCP client
Restart Claude Desktop or your chosen MCP client so it picks up the new server configuration. Each configured Dify app will appear as a distinct tool in the client's tool list.
(Optional) Use a config.yaml file instead
Alternatively you can create a config.yaml file with your Dify credentials and point the server to it via the CONFIG_PATH environment variable.
# config.yaml
dify_base_url: "https://cloud.dify.ai/v1"
dify_app_sks:
- "app-yourkey1"
- "app-yourkey2"Dify Examples
Client configuration
Complete claude_desktop_config.json entry using uvx to run the server directly from GitHub without cloning.
{
"mcpServers": {
"dify-mcp-server": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/YanxingLiu/dify-mcp-server",
"dify_mcp_server"
],
"env": {
"DIFY_BASE_URL": "https://cloud.dify.ai/v1",
"DIFY_APP_SKS": "app-abc123,app-def456"
}
}
}
}Prompts to try
Example prompts you can use once the server is connected to your MCP client.
- "Run my Dify summarization workflow on this text: [paste text]"
- "Invoke my customer support Dify app with the question: How do I reset my password?"
- "Use my Dify translation workflow to translate this paragraph to Spanish"
- "List the tools available from Dify and describe what each one does"Troubleshooting Dify
Server starts but no Dify tools appear in the client
Verify DIFY_APP_SKS contains valid, published app secret keys separated by commas and that DIFY_BASE_URL ends with /v1. Unpublished Dify apps do not expose an API and will be silently skipped.
uvx command not found after installing uv
Ensure uv's bin directory is in your PATH. Run `source $HOME/.local/bin/env` or restart your terminal session, then verify with `uvx --version`.
401 Unauthorized errors when calling Dify tools
Your app secret key is wrong or has been regenerated. Regenerate the key in Dify's API Access page and update the DIFY_APP_SKS value in your MCP config, then restart the client.
Frequently Asked Questions about Dify
What is Dify?
Dify is a Model Context Protocol (MCP) server that server for using dify. it achieves the invocation of the dify workflow by calling the tools of mcp. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Dify?
Follow the installation instructions on the Dify GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Dify?
Dify works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Dify free to use?
Yes, Dify is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Dify Alternatives — Similar Coding Agents Servers
Looking for alternatives to Dify? Here are other popular coding agents servers you can use with Claude, Cursor, and VS Code.
Dify
★ 142.2kProduction-ready platform for agentic workflow development.
Ruflo
★ 54.0k🌊 The leading agent orchestration platform for Claude. Deploy intelligent multi-agent swarms, coordinate autonomous workflows, and build conversational AI systems. Features enterprise-grade architecture, self-learning swarm intelligence, RAG integrat
Goose
★ 45.7kan open source, extensible AI agent that goes beyond code suggestions - install, execute, edit, and test with any LLM
Antigravity Awesome Skills
★ 38.3kInstallable GitHub library of 1,400+ agentic skills for Claude Code, Cursor, Codex CLI, Gemini CLI, Antigravity, and more. Includes installer CLI, bundles, workflows, and official/community skill collections.
AgentScope
★ 25.5kBuild and run agents you can see, understand and trust.
Serena
★ 24.5kA coding agent toolkit that provides IDE-like semantic code retrieval and editing tools, enabling LLMs to efficiently navigate and modify codebases using symbol-level operations instead of basic file reading and string replacements.
Browse More Coding Agents MCP Servers
Explore all coding agents servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Dify in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Dify?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.