Dify

Bridges Dify applications to MCP clients by exposing each app as an MCP tool with dynamic interfaces.
  • javascript

5

GitHub Stars

javascript

Language

6 months ago

First Indexed

2 months ago

Catalog Refreshed

Documentation & install

Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.

Installation

Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "zhuzhoulin-dify-mcp-server": {
      "command": "node",
      "args": [
        "/path/to/dify-mcp-server/build/index.js"
      ],
      "env": {
        "TIMEOUT": "60000",
        "BASE_URL": "https://api.dify.ai",
        "AGENT_API_KEYS": "YOUR_API_KEYS"
      }
    }
  }
}

You deploy the Dify MCP Server to bridge Dify applications with MCP Clients, exposing each Dify app as an MCP tool you can use directly within your MCP workflow. This server dynamically fetches app specifications and presents them as configurable tools, enabling you to interact with multiple Dify apps from a single MCP interface.

How to use

After you configure the MCP Server, you can start using it from your MCP client. The server connects to specified Dify applications, retrieves their metadata and parameter specifications, and generates MCP tool interfaces based on those configurations. Each Dify application becomes a separate tool within your MCP environment, following the naming convention dify_app_info_{application_name}. You can provide inputs such as text, paragraphs, and select dropdowns, and the server will handle the interaction with the corresponding Dify application.

How to install

Prerequisites: Node.js (v16 or higher) and npm or yarn.

Setup commands you will run exactly as shown to get the server running locally.

# 1) Clone the repository
git clone https://github.com/zhuzhoulin/dify-mcp-server.git
cd dify-mcp-server

# 2) Install dependencies
npm install

# 3) Build the project
npm run build

Integration with Windsurf IDE

To use the MCP Server with Windsurf IDE, add the following server config to your MCP settings.

{
  "mcpServers": {
    "dify-mcp-server": {
      "command": "node",
      "args": [
        "/path/to/dify-mcp-server/build/index.js"
      ],
      "env": {
        "AGENT_API_KEYS": "key1,key2,key3",
        "BASE_URL": "https://api.dify.ai",
        "TIMEOUT": "60000"
      }
    }
  }
}

Available tools

dify_app_info_{application_name}

Each Dify application is exposed as an MCP tool named with this pattern. The tool interface is generated from the Dify app specifications and allows you to provide inputs such as text, paragraphs, and select options, then invoke the corresponding Dify app via MCP.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
Dify MCP Server - zhuzhoulin/dify-mcp-server | VeilStrat