Dify AI 的 MCP 服务器
为 Dify AI 提供标准化协议的模型上下文协议服务器。
快速入门
使用 Docker
- 构建镜像:
make docker
- 运行容器:
docker run -i --rm mcp/dify https://your-dify-api-endpoint your-dify-api-key
配置 Claude Desktop
在 claude_desktop_config.json
中添加以下内容:
{
"mcpServers": {
"dify": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-dify",
"https://your-dify-api-endpoint",
"your-dify-api-key"
]
}
}
}
替换 API 终端和密钥。
开发
运行以下命令进行开发:
- 初始设置:
make setup
- 构建项目:
make build
- 格式化代码:
make format
- 检查代码:
make lint