Dify MCP Server
@zhuzhoulin
About Dify MCP Server
No overview available yet
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"dify-mcp-server": {
"command": "node",
"args": [
"/path/to/dify-mcp-server/build/index.js"
],
"env": {
"AGENT_API_KEYS": "key1,key2,key3",
"BASE_URL": "https://api.dify.ai",
"TIMEOUT": "60000"
}
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Dify MCP Server?
A TypeScript-based MCP server that connects MCP clients to Dify applications, dynamically exposing Dify apps as tools. It is intended for developers using MCP-compatible clients like Windsurf IDE.
How to use Dify MCP Server?
Install dependencies with npm install, build with npm run build, then configure environment variables (AGENT_API_KEYS, BASE_URL, TIMEOUT) and add the server configuration to your MCP settings (e.g., Windsurf IDE). The server will automatically fetch Dify application metadata and expose each app as a tool named dify_app_info_{application_name}.
Key features of Dify MCP Server
- Connects to multiple Dify applications via API keys
- Automatically fetches application metadata and parameters
- Dynamically generates tool interfaces from Dify specs
- Supports text, paragraph, and select input types
- Robust error handling with request retries
- Configurable base URL, timeout, and response mode
Use cases of Dify MCP Server
- Interact with multiple Dify applications from a single MCP client
- Use Dify workflows as tools within Windsurf IDE
- Automate tasks by calling Dify apps programmatically via MCP
- Test and debug Dify applications through an MCP interface
FAQ from Dify MCP Server
What Node.js version is required?
Node.js v16 or higher is required.
How do I configure API keys?
Set the AGENT_API_KEYS environment variable with a comma-separated list of Dify API keys.
How do I integrate with Windsurf IDE?
Add a server config to your MCP settings with the command node, the path to build/index.js, and the required environment variables.
What response modes are supported?
Both blocking and streaming response modes are supported.
What is the default base URL for the Dify API?
The default base URL is https://api.dify.ai.
Frequently asked questions
What Node.js version is required?
Node.js v16 or higher is required.
How do I configure API keys?
Set the `AGENT_API_KEYS` environment variable with a comma-separated list of Dify API keys.
How do I integrate with Windsurf IDE?
Add a server config to your MCP settings with the command `node`, the path to `build/index.js`, and the required environment variables.
What response modes are supported?
Both blocking and streaming response modes are supported.
What is the default base URL for the Dify API?
The default base URL is `https://api.dify.ai`.
Basic information
More Other MCP servers
Unity MCP ✨
justinpbarnettUnity MCP acts as a bridge between AI assistants and your Unity Editor. Give your LLM tools to manage assets, control scenes, edit scripts, and automate tasks within Unity.
Blender
ahujasidOpen-source MCP to use Blender with any LLM
Mobile Mcp
mobile-nextModel Context Protocol Server for Mobile Automation and Scraping (iOS, Android, Emulators, Simulators and Real Devices)

Peekaboo MCP – lightning-fast macOS screenshots for AI agents
steipetePeekaboo is a macOS CLI & optional MCP server that enables AI agents to capture screenshots of applications, or the entire system, with optional visual question answering through local or remote AI models.
Nginx UI
0xJackyYet another WebUI for Nginx
Comments