faiz-gear
MCP Serverfaiz-gearpublic

dify mcp server ts

Dify MCP Server 是一个基于 TypeScript 的服务,它将 Dify 工作流转换为支持流式处理并使用 YAML 配置的 MCP 工具。

Repository Info

6
Stars
6
Forks
6
Watchers
3
Issues
TypeScript
Language
-
License

About This Server

Dify MCP Server 是一个基于 TypeScript 的服务,它将 Dify 工作流转换为支持流式处理并使用 YAML 配置的 MCP 工具。

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

Dify MCP Server (TypeScript)

smithery badge

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:

npx -y @smithery/cli install @faiz-gear/dify-mcp-server-ts --client claude
  1. Clone the repository:

    git clone <repository-url>
    cd dify-mcp-server-ts
    
  2. Install dependencies:

    npm install
    
  3. Create a configuration file:

    # config.yaml
    dify_base_url: 'https://api.dify.ai/v1'
    dify_app_sks:
      - 'your-dify-app-sk-1' # Replace with your actual Dify app secret key
      - 'your-dify-app-sk-2' # Replace with your actual Dify app secret key
    

Usage

  1. Build the project:

    npm run build
    
  2. Start the server:

    npm start
    

For development:

npm run dev

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 API
  • dify_app_sks: A list of Dify application secret keys

License

ISC

Quick Start

1

Clone the repository

git clone https://github.com/faiz-gear/dify-mcp-server-ts
2

Install dependencies

cd dify-mcp-server-ts
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerfaiz-gear
Repodify-mcp-server-ts
LanguageTypeScript
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation