Dify MCP Server (TypeScript)
A TypeScript implementation of a Model Context Protocol (MCP) server that exposes Dify workflows as tools.
Features
- Converts Dify applications into MCP tools
- Supports streaming responses from Dify workflows
- Configurable via YAML configuration file
- Written in TypeScript for type safety
Prerequisites
- Node.js 18 or higher
- npm 8 or higher
- Access to Dify API and application secret keys
Installation
Installing via Smithery
To install Dify MCP Server for Claude Desktop automatically via Smithery:
- Clone the repository:
- Install dependencies:
- Create a configuration file:
Usage
- Build the project:
- Start the server:
For development:
Configuration
The server can be configured using a YAML file. By default, it looks for config.yaml
in the project root. You can specify a different path using the CONFIG_PATH
environment variable.
Configuration Options
dify_base_url
: The base URL for the Dify APIdify_app_sks
: A list of Dify application secret keys
License
ISC
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Enables the conversion of Dify applications into Model Context Protocol tools, supporting streaming responses and configured via YAML.
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that provides web content fetching and conversion capabilities.Last updated -4892JavaScriptMIT License
- -securityFlicense-qualityExposes Dify applications (both Chatflow and Workflow) as MCP (Model Context Protocol) servers, allowing Claude and other MCP clients to directly interact with Dify apps through a standardized protocol.Last updated -18Python
- -securityFlicense-qualityA Dify endpoint plugin that transforms a Dify application into a Model Control Protocol server, allowing tools like Cursor to connect to and utilize your custom Dify workflows.Last updated -38Python
- -security-license-qualityA server implementation that enables integration of Dify workflows with Model Context Protocol (MCP), allowing users to access Dify's capabilities through MCP-compatible clients.Last updated -