MCP Server for Dify AI

by yuru-sha
MIT License
9

Integrations

  • Provides CI/CD workflow status information through GitHub Actions, displayed as a badge in the README.

  • Available as a package on npm, allowing installation via the npm package manager.

  • Implemented using TypeScript, providing type safety for the server implementation.

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 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

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Enables LLMs to interact with Dify AI's chat completion API, including conversation context support and a restaurant recommendation tool.

  1. Features
    1. Installation
      1. Using Docker
    2. Usage
      1. With Claude Desktop
      2. Tools
    3. Development
      1. License
        1. Security
          1. Contributing

            Related MCP Servers

            • -
              security
              F
              license
              -
              quality
              Enables LLMs to interact with Discord channels by sending and reading messages through Discord's API, with a focus on maintaining user control and security.
              Last updated -
              33
              TypeScript
              • Apple
            • 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 -
              1
              94
              8
              JavaScript
              MIT License
              • Linux
            • A
              security
              F
              license
              A
              quality
              Provides access to Intercom conversations and chats through the Model Context Protocol, allowing LLMs to query and analyze Intercom conversations with various filtering options.
              Last updated -
              2
              3
              TypeScript
              • Apple
            • A
              security
              A
              license
              A
              quality
              Enables AI models to interact with messages from various messaging platforms (Mobile, Mail, WhatsApp, LinkedIn, Slack, Twitter, Telegram, Instagram, Messenger) through a standardized interface.
              Last updated -
              3
              3
              Python
              MIT License
              • Linux

            View all related MCP servers

            ID: 2pf2jdt2kb