Dify MCP Server

# Dify MCP Server ![Dify Logo](images/README/logo.png) [English](README.md) | [中文](README_zh.md) A TypeScript-based MCP (Model Context Protocol)

Local serverstdioTypeScript

What is the Dify MCP Server?

Dify MCP Server !Dify Logo English | 中文 A TypeScript-based MCP (Model Context Protocol) server that

What the server does

This server implements the Model Context Protocol to bridge between MCP Client and Dify applications. It dynamically fetches application specifications from Dify APIs and exposes them as MCP tools. The server allows users to interact with multiple Dify applications through a unified interface within the MCP Client.

Credentials and setup notes

  • Node.js (v16 or higher) - npm or yarn

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Dify MCP Server

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

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • Node.js (v16 or higher) - npm or yarn
VariableDescriptionRequired
AGENT_API_KEYSDeclared in the maintainer’s client configuration.Check documentation
BASE_URLDeclared in the maintainer’s client configuration.Check documentation
TIMEOUTDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use Dify to Configuration.”
  • “Use Dify to Prerequisites.”
  • “Use Dify to Setup.”

Frequently asked questions

Set the `AGENT_API_KEYS` environment variable with a comma-separated list of Dify API keys.