Dify

by faiz-gear

5 stars
Not rated
GitHub

About

Integrates Dify workflows to enable capabilities into tools for chatbots, content generation, and data analysis pipelines.

Details

Author
faiz-gear
Repository
faiz-gear/dify-mcp-server-ts
GitHub stars
5
Categories
Productivity, Developer Tools, Design, AI, Community, Frontend, Infrastructure
Tags
#integration

- Converts Dify applications into MCP tools
- Supports streaming responses from Dify workflows
- Configurable via YAML configuration file
- Written in TypeScript for type safety

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Dify
    Command (node, npx, python, etc.) npx
    Arguments
    • Argument 1 -y
    • Argument 2 @highlight/mcp-server

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

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.

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:


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

- dify_base_url: The base URL for the Dify API
- dify_app_sks: A list of Dify application secret keys

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "dify": {
            "env": {},
            "args": [
                "-y",
                "@highlight/mcp-server"
            ],
            "command": "npx"
        }
    }
}

Linux

{
    "env": [],
    "args": [
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "npx"
}

Macos

{
    "env": [],
    "args": [
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "npx"
}

Windows

{
    "env": [],
    "args": [
        "/c",
        "npx",
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "cmd"
}

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

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.