Dify MCP Server

Dify MCP Server. This is a tool server for Dify Workflow.

Local serverstdio

What is the Dify MCP Server?

Dify MCP Server. This is a tool server for Dify Workflow.

The short version

A tool server for easy integration with Dify Workflow using the Model Context Protocol (MCP).

  • MCP protocol implementation enabling bidirectional communication with Claude
  • Utilizes Dify Workflow as a tool
  • Dynamically retrieves and displays Dify Workflow parameters
  • Simple configuration using environment variables
  • NEW — Support for multiple Dify API keys

What it needs from you

  • Node.js 16 or higher - npm 7 or higher - Access rights to Dify Workflow (API Key)

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-workflow": {
      "command": "npx",
      "args": ["@tonlab/dify-mcp-server"],
      "env": {
        "DIFY_BASE_URL": "https://your-dify-endpoint",
        "DIFY_API_KEY": "your-api-key-here"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Node.js 16 or higher - npm 7 or higher - Access rights to Dify Workflow (API Key)
VariableDescriptionRequired
DIFY_BASE_URLEndpoint or connection string the server talks to.Yes
DIFY_API_KEYCredential the server authenticates with.Yes
DIFY_API_KEYSCredential the server authenticates with.Yes

Example prompts to try

  • “Use Dify to Windows.”

Frequently asked questions

Dify MCP Server. This is a tool server for Dify Workflow. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.