mcp-server-dify
Model Context Protocol Server for Dify AI. This server enables LLMs to interact with Dify AI’s chat completion capabilities through a standardized protocol.
Features
- Integration with Dify AI chat completion API
- Restaurant recommendation tool (meshi-doko)
- Support for conversation context
- Streaming response support
- TypeScript implementation
Installation
Using Docker
# Build the Docker image
make docker
# Run with Docker
docker run -i --rm mcp/dify https://your-dify-api-endpoint your-dify-api-key
Usage
With Claude Desktop
Add the following configuration to your claude_desktop_config.json:
{
"mcpServers": {
"dify": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-dify",
"https://your-dify-api-endpoint",
"your-dify-api-key"
]
}
}
}
Replace your-dify-api-endpoint and your-dify-api-key with your actual Dify API credentials.
Tools
meshi-doko
Restaurant recommendation tool that interfaces with Dify AI:
Parameters:
LOCATION(string): Location of the restaurantBUDGET(string): Budget constraintsquery(string): Query to send to Dify AIconversation_id(string, optional): For maintaining chat context
Development
# Initial setup
make setup
# Build the project
make build
# Format code
make format
# Run linter
make lint
License
This project is released under the MIT License.
Security
This server interacts with Dify AI using your provided API key. Ensure to:
- Keep your API credentials secure
- Use HTTPS for the API endpoint
- Never commit API keys to version control
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Dify AI Server
Project Details
- yuru-sha/mcp-server-dify
- MIT License
- Last Updated: 4/16/2025
Categories
Recomended MCP Servers
Model Context Protocol (MCP) server implementation using Google OR-Tools for constraint solving
🔎 A Model Context Protocol (MCP) server for integrating Perplexity's AI API with LLMs.
Python and TypeScript library for integrating the Stripe API into agentic workflows
MCP Server for Trino developed via MCP Python SDK
A Model Context Protocol (MCP) server for interacting with Bugsnag. This server allows LLM tools like Cursor and...
Simple MCP Server Implementation
An MCP server that autonomously evaluates web applications.
An official Qdrant Model Context Protocol (MCP) server implementation
A Model Context Protocol (MCP) server that provides tools to interact with LinkedIn's Feeds and Job API.
nRepl mcp server for clojure. Enables interaction with a running Clojure nREPL instance, allowing evaluation of Clojure code,...
An MCP server that provides control over Android devices via adb





