Dify MCP Server (TypeScript)

Author:@MCP-Mirror
View on GitHub

Overview

The Dify MCP Server is a TypeScript-based server that implements the Model Context Protocol. Its primary function is to expose workflows built in the Dify platform as usable tools through the MCP framework.

To get started, install the server via Smithery. Once installed, you must configure it with your Dify API keys. After configuration, you can start the server to make your Dify workflows available as tools.

Key features include the ability to convert Dify applications into MCP tools and support for streaming responses directly from Dify workflows. Configuration is managed through a YAML file, and the server is built with TypeScript to ensure type safety.

This server is useful for integrating Dify workflows into other applications as tools. It also enables real-time streaming from Dify applications and simplifies the overall configuration and deployment process for Dify services.

Prerequisites for using the server are Node.js 18 or higher and npm 8 or higher. You also need valid Dify API and application secret keys. For installation, you can use Smithery or manually clone the repository and install its dependencies. Server configuration is done via the provided YAML file, where you set the Dify base URL and your application secret keys.