Skip to main content
Glama

mcp-server-dify

CI Status

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 restaurant

  • BUDGET (string): Budget constraints

  • query (string): Query to send to Dify AI

  • conversation_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.

-
security - not tested
A
license - permissive license
-
quality - not tested

Related MCP Servers

  • A
    security
    F
    license
    A
    quality
    Integrates Dify AI API to provide code generation for Ant Design components, supporting both text and image inputs with stream processing capabilities.
    Last updated -
    4
    40
  • A
    security
    A
    license
    A
    quality
    Enables integration of Perplexity's AI API with LLMs, delivering advanced chat completion by utilizing specialized prompt templates for tasks like technical documentation, code review, and API documentation.
    Last updated -
    27
    8
    MIT License
    • Linux
  • -
    security
    F
    license
    -
    quality
    Enables seamless integration between Claude AI and Dify Workflow through the Model Context Protocol, allowing Claude to dynamically access and execute Dify Workflow operations via natural language.
    Last updated -
    5
    6
    • Apple
    • Linux
  • A
    security
    F
    license
    A
    quality
    An interface that allows developers to interact with ChatCBI LLM through AI Agents, providing access to CB Insights' conversational AI capabilities.
    Last updated -
    1
    12

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yuru-sha/mcp-server-dify'

If you have feedback or need assistance with the MCP directory API, please join our Discord server