Dify Workflow MCP Tool Server
A tool server for easy integration with Dify Workflow using the Model Context Protocol (MCP).
Features
- MCP protocol implementation enabling bidirectional communication with Claude
- Utilizes Dify Workflow as a tool
- Dynamically retrieves and displays Dify Workflow parameters
- Simple configuration using environment variables
- NEW: Support for multiple Dify API keys
Prerequisites
- Node.js 16 or higher
- npm 7 or higher
- Access rights to Dify Workflow (API Key)
Integration with Claude Desktop App
To use with Claude Desktop App, add the following settings to Claude’s configuration file:
Windows
Add to %AppData%Claudeclaude_desktop_config.json:
{
"mcpServers": {
"dify-workflow": {
"command": "npx",
"args": ["@tonlab/dify-mcp-server"],
"env": {
"DIFY_BASE_URL": "https://your-dify-endpoint",
"DIFY_API_KEY": "your-api-key-here"
}
}
}
}
Using Multiple API Keys (NEW)
You can now configure multiple Dify API keys, which will create multiple tools (one per API key):
{
"mcpServers": {
"dify": {
"command": "npx",
"args": ["@tonlab/dify-mcp-server"],
"env": {
"DIFY_BASE_URL": "https://api.dify.ai/v1",
"DIFY_API_KEYS": "app-FirstAPIKeyHere,app-SecondAPIKeyHere,app-ThirdAPIKeyHere"
}
}
}
}
Each API key will be exposed as a separate tool in Claude, with a distinct number appended to the tool name.
macOS/Linux
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"dify-workflow": {
"command": "npx",
"args": ["@tonlab/dify-mcp-server"],
"env": {
"DIFY_BASE_URL": "https://your-dify-endpoint",
"DIFY_API_KEY": "your-api-key-here"
}
}
}
}
Same multiple API key configuration as described above works on macOS/Linux as well.
License
MIT
Dify Workflow Tool Server
Project Details
- TomokiIshimine/dify-mcp-server
- Last Updated: 4/8/2025
Recomended MCP Servers
A Model Context Protocol (MCP) server for creating, reading, and manipulating Microsoft Word documents. This server enables AI...
A Model Context Protocol (MCP) server for Kagi search & other tools.
一个强大的MCP(Model Context Protocol)开发框架,一个用于SEE(Standard Extension Environment)对接的模块化工具框架。该框架允许开发者轻松创建和扩展自定义工具,并通过MCP协议与模型交互。
A Model Context Protocol (MCP) implementation for Financial Modeling Prep, enabling AI assistants to access and analyze financial...
A Model Context Protocol (MCP) server that converts various file formats to Markdown using the MarkItDown utility.
A Model Context Protocol (MCP) server that provides weather information and alerts using the National Weather Service (NWS)...
XHS MCP Agent - A MCP server implementation
MCP Server for Coding Standards - providing standardized coding guidelines and best practices
MCP server for fetching web page content with recursive exploration capability





