Dify MCP Server
by faiz-gear
A TypeScript implementation of a Model Context Protocol (MCP) server that exposes Dify workflows as tools. It converts Dify applications into MCP tools, enabling integration with other systems.
Last updated: N/A
What is Dify MCP Server?
The Dify MCP Server is a TypeScript-based server that implements the Model Context Protocol (MCP) to expose Dify applications and workflows as tools. This allows other applications and services to interact with Dify workflows seamlessly.
How to use Dify MCP Server?
- Clone the repository. 2. Install dependencies using
npm install
. 3. Configure the server by creating aconfig.yaml
file with your Dify API base URL and application secret keys. 4. Build the project usingnpm run build
. 5. Start the server usingnpm start
ornpm run dev
for development.
Key features of Dify MCP Server
Converts Dify applications into MCP tools
Supports streaming responses from Dify workflows
Configurable via YAML configuration file
Written in TypeScript for type safety
Use cases of Dify MCP Server
Integrating Dify workflows with Claude Desktop
Exposing Dify applications as tools for other services
Automating tasks using Dify workflows
Building custom integrations with Dify
FAQ from Dify MCP Server
What is Dify?
What is Dify?
Dify is a platform for building AI applications.
What is MCP?
What is MCP?
MCP stands for Model Context Protocol, a standard for interacting with AI models and tools.
How do I get Dify application secret keys?
How do I get Dify application secret keys?
You can obtain Dify application secret keys from the Dify platform.
Can I use a different configuration file name?
Can I use a different configuration file name?
Yes, you can specify a different path using the CONFIG_PATH
environment variable.
What Node.js version is required?
What Node.js version is required?
Node.js 18 or higher is required.