Skip to main content
Glama

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

-
security - not tested
F
license - not found
-
quality - not tested

Related MCP Servers

  • -
    security
    F
    license
    -
    quality
    A TypeScript implementation of a Model Context Protocol (MCP) server that exposes Dify workflows as tools for AI systems to interact with.
    Last updated -
    16
  • -
    security
    F
    license
    -
    quality
    Exposes 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 -
    36
  • -
    security
    F
    license
    -
    quality
    A 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 -
    3
  • -
    security
    F
    license
    -
    quality
    Enables seamless integration between Claude AI and Dify Workflow through the Model Context Protocol, allowing Claude to dynamically access and execute Dify Workflow operations via natural language.
    Last updated -
    5
    6
    • Apple
    • Linux

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/faiz-gear/dify-mcp-server-ts'

If you have feedback or need assistance with the MCP directory API, please join our Discord server