dify-mcp-server-ts

dify-mcp-server-ts

6

Dify MCP Server is a TypeScript-based MCP server that transforms Dify applications into MCP tools. It offers configurable options and supports streaming responses, enhancing tool integration via Dify workflows.

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

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.