- Explore MCP Servers
- dify-workflow-mcp
Dify Workflow Mcp
What is Dify Workflow Mcp
dify-workflow-mcp is a TypeScript implementation of a Model Context Protocol (MCP) server that exposes Dify workflows as tools.
Use cases
Use cases include automating workflows in applications, integrating Dify services into existing systems, and developing custom tools that leverage Dify’s capabilities.
How to use
To use dify-workflow-mcp, clone the repository, install dependencies, build the project, and start the server using command line parameters for configuration.
Key features
Key features include converting Dify applications into MCP tools, supporting streaming responses from Dify workflows (to be implemented), command line configuration, and type safety through TypeScript.
Where to use
dify-workflow-mcp can be used in various fields that require workflow automation and integration with Dify APIs, particularly in software development and data processing.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Dify Workflow Mcp
dify-workflow-mcp is a TypeScript implementation of a Model Context Protocol (MCP) server that exposes Dify workflows as tools.
Use cases
Use cases include automating workflows in applications, integrating Dify services into existing systems, and developing custom tools that leverage Dify’s capabilities.
How to use
To use dify-workflow-mcp, clone the repository, install dependencies, build the project, and start the server using command line parameters for configuration.
Key features
Key features include converting Dify applications into MCP tools, supporting streaming responses from Dify workflows (to be implemented), command line configuration, and type safety through TypeScript.
Where to use
dify-workflow-mcp can be used in various fields that require workflow automation and integration with Dify APIs, particularly in software development and data processing.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
Dify Workflows MCP 服务器 (TypeScript)
一个 Model Context Protocol (MCP) 服务器的 TypeScript 实现,将 Dify 工作流作为工具暴露出来。
注意: 本项目基于 localSummer/dify-workflow-mcp 项目,并进行了一些修改和优化。
特性
- 将 Dify 应用程序转换为 MCP 工具
- 支持从 Dify 工作流流式响应(待实现)
- 通过命令行参数进行配置
- 使用 TypeScript 编写,具有类型安全性
前提条件
- Node.js 18 或更高版本
- npm 8 或更高版本
- 访问 Dify API 和应用程序密钥
安装
-
克隆仓库:
git clone https://github.com/jerryokk/dify-workflow-mcp cd dify-workflow-mcp -
安装依赖:
npm install
使用方法
-
构建项目:
npm run build -
启动服务器:
# 使用自定义参数 node build/index.js --base-url https://api.dify.ai/v1 --api-keys your-key-1,your-key-2,your-key-3 # 或使用默认示例参数 npm run start
开发环境:
# 使用自定义参数
ts-node --esm src/index.ts --base-url https://api.dify.ai/v1 --api-keys your-key-1,your-key-2,your-key-3
# 或使用默认示例参数
npm run dev
配置
服务器通过命令行参数进行配置。
命令行参数
--base-url: Dify API 的基本 URL--api-keys: 逗号分隔的 Dify 应用程序密钥列表
Cline/Roo Code配置
许可证
MIT
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










