dify-mcp
About
MCP server exposing Dify knowledge base retrieval to Cursor and other MCP clients
Use this server
Add it to your MCP client. The catalogue lists this config verbatim from its source — it does not run, download, or vouch for the server. Review the command before you run it.
Transportstdio (runs a local command)
Env vars
DIFY_API_BASE DIFY_API_KEY DIFY_ALLOWED_DATASETS DIFY_TIMEOUT DIFY_VERIFY_SSLClaude Code
claude mcp add --env DIFY_API_BASE= --env DIFY_API_KEY= --env DIFY_ALLOWED_DATASETS= --env DIFY_TIMEOUT= --env DIFY_VERIFY_SSL= dify-mcp -- uvx dify-mcp
Cursor
If the button doesn't open Cursor, use the JSON below — Cursor accepts the same mcpServers config.
VS Code
code --add-mcp '{"name":"dify-mcp","command":"uvx","args":["dify-mcp"],"env":{"DIFY_API_BASE":"","DIFY_API_KEY":"","DIFY_ALLOWED_DATASETS":"","DIFY_TIMEOUT":"","DIFY_VERIFY_SSL":""}}'
JSON
{
"mcpServers": {
"dify-mcp": {
"command": "uvx",
"args": [
"dify-mcp"
],
"env": {
"DIFY_API_BASE": "",
"DIFY_API_KEY": "",
"DIFY_ALLOWED_DATASETS": "",
"DIFY_TIMEOUT": "",
"DIFY_VERIFY_SSL": ""
}
}
}
}
Environment variables are listed by name only — fill in your own values. Entries never carry secrets.