Dify MCP runs on your own machine — the client starts it, so there is no endpoint to ping. 108 installs a week from pypi. Last commit 5 Jul 2026.
MCP server exposing Dify knowledge base retrieval to Cursor and other MCP clients
Today is the operative word: we check Dify MCP every 15 minutes and re-read its code on every release. Watch it and you find out the day that stops being true.
This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.
claude mcp add dify-mcp -e 'DIFY_API_BASE=<DIFY_API_BASE>' -e 'DIFY_API_KEY=<DIFY_API_KEY>' -e 'DIFY_ALLOWED_DATASETS=<DIFY_ALLOWED_DATASETS>' -- uvx dify-mcp
{
"mcpServers": {
"dify-mcp": {
"command": "uvx",
"args": [
"dify-mcp"
],
"env": {
"DIFY_ALLOWED_DATASETS": "<DIFY_ALLOWED_DATASETS>",
"DIFY_API_BASE": "<DIFY_API_BASE>",
"DIFY_API_KEY": "<DIFY_API_KEY>"
}
}
}
}
[mcp_servers.dify-mcp]
command = "uvx"
args = ["dify-mcp"]
env = { DIFY_API_BASE = "<DIFY_API_BASE>", DIFY_API_KEY = "<DIFY_API_KEY>", DIFY_ALLOWED_DATASETS = "<DIFY_ALLOWED_DATASETS>" }
{
"mcpServers": {
"dify-mcp": {
"command": "uvx",
"args": [
"dify-mcp"
],
"env": {
"DIFY_ALLOWED_DATASETS": "<DIFY_ALLOWED_DATASETS>",
"DIFY_API_BASE": "<DIFY_API_BASE>",
"DIFY_API_KEY": "<DIFY_API_KEY>"
}
}
}
}
{
"servers": {
"dify-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"dify-mcp"
],
"env": {
"DIFY_ALLOWED_DATASETS": "<DIFY_ALLOWED_DATASETS>",
"DIFY_API_BASE": "<DIFY_API_BASE>",
"DIFY_API_KEY": "<DIFY_API_KEY>"
}
}
}
}
Put your own values in place of
<DIFY_API_BASE> (Dify Knowledge API base URL, e.g. http://192.168.1.100/v1), <DIFY_API_KEY> (Dify Knowledge Base API key), <DIFY_ALLOWED_DATASETS> (Comma-separated dataset UUIDs to expose).
The author’s registry entry marks them as required.
Optional settings from the registry entry, left out of the block above:
DIFY_TIMEOUT (HTTP timeout in seconds (default: 30)), DIFY_VERIFY_SSL (Verify TLS certificates (default: false)).
MCP server for Yuque — expose your knowledge base to AI assistants.
Bedrock knowledge bases, data sources and retrieval as MCP tools.
Tencent Lexiang AI knowledge base MCP server for searching, managing entries, and editing docs.
Kromatic's public MCP server for read-only access to the Kromatic knowledge base.
Guru MCP Server - Connect AI tools to your Guru knowledge base
Search, discover, and contribute to AgentPedia - the knowledge base for AI agents.
Tree-structured knowledge base as an MCP server
MCP server for Freshdesk — tickets, contacts, companies, agents, groups, and knowledge base.
Answers built from our own checks of this server.