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?

If you already use Dify, the dify mcp server is the piece that lets your assistant work with it directly. # Dify MCP Server Dify Logo English | 中文 A TypeScript-based MCP (Model Context Protocol) server that connects the MCP Client to Dify applications. This server dynamically exposes Dify.

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.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • Configuration — The Configuration tool exposed by this server
  • Prerequisites — The Prerequisites tool exposed by this server
  • Setup — The Setup tool exposed by this server

Credentials and setup notes

Configuration is passed through the environment: AGENT_API_KEYS, BASE_URL, TIMEOUT. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

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

Installation

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.

Where it fits

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Dify's toolset — Configuration, Prerequisites, Setup — is a fair guide to whether it matches your workflow. It is maintained by zhuzhoulin; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
ConfigurationThe Configuration tool exposed by this server.
PrerequisitesThe Prerequisites tool exposed by this server.
SetupThe Setup tool exposed by this server.

Configuration

  • Node.js (v16 or higher) - npm or yarn
VariableDescriptionRequired
AGENT_API_KEYSCredential the server authenticates with.Yes
BASE_URLEndpoint or connection string the server talks to.Yes
TIMEOUTConfiguration value read at startup.Optional

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.