dify-mcp-client
MCP Client as an Agent Strategy Plugin. Dify is not MCP Server but MCP Host.
Overview
Dify MCP Client is an Agent Strategy Plugin designed to connect with an MCP server, allowing for the execution of various tasks through a ReAct agent framework.
To use Dify MCP Client, deploy the source code, configure the necessary settings, and execute the plugin using the command python -m main in the CLI. Ensure that the MCP server is properly set up and connected.
- Connects to a standard input/output MCP server. - Converts tool, resource, and prompt lists into Dify Tools for LLM access. - Supports multiple functions for MCP operations.
- Integrating with various MCP servers for task automation.
- Utilizing the ReAct loop for dynamic agent interactions.
- Developing and deploying custom plugins for specific workflows.
Add to your AI client
Use these steps to connect dify-mcp-client in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"dify-mcp-client-3dify-project": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-dify-mcp-client-3dify-project"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"dify-mcp-client-3dify-project": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-dify-mcp-client-3dify-project"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"dify-mcp-client-3dify-project": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-dify-mcp-client-3dify-project"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"dify-mcp-client-3dify-project": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-dify-mcp-client-3dify-project"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"dify-mcp-client-3dify-project": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-dify-mcp-client-3dify-project"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"dify-mcp-client-3dify-project": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-dify-mcp-client-3dify-project"
]
}
}
}FAQ
Is Dify MCP Client free to use?
Yes! Dify MCP Client is open-source and free to use.
What programming language is used?
The Dify MCP Client is developed in Python.
How can I report issues or contribute?
You can report issues or contribute by visiting the GitHub repository and creating an issue or pull request.