Skip to main content
Glama
faiz-gear

Dify MCP Server

by faiz-gear

Dify MCP サーバー (TypeScript)

鍛冶屋のバッジ

Dify ワークフローをツールとして公開する Model Context Protocol (MCP) サーバーの TypeScript 実装。

特徴

  • DifyアプリケーションをMCPツールに変換します

  • Difyワークフローからのストリーミング応答をサポート

  • YAML設定ファイルで設定可能

  • 型安全性のためにTypeScriptで記述

Related MCP server: Dify Workflow MCP Tool Server

前提条件

  • Node.js 18以上

  • npm 8以上

  • Dify APIとアプリケーション秘密鍵へのアクセス

インストール

Smithery経由でインストール

Smithery経由で Claude Desktop 用の Dify MCP Server を自動的にインストールするには:

npx -y @smithery/cli install @faiz-gear/dify-mcp-server-ts --client claude
  1. リポジトリをクローンします。

    git clone <repository-url>
    cd dify-mcp-server-ts
  2. 依存関係をインストールします:

    npm install
  3. 設定ファイルを作成します。

    # 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

使用法

  1. プロジェクトをビルドします。

    npm run build
  2. サーバーを起動します。

    npm start

開発の場合:

npm run dev

構成

サーバーはYAMLファイルを使用して設定できます。デフォルトでは、プロジェクトルートにあるconfig.yamlを検索しますCONFIG_PATH環境変数を使用して、別のパスを指定することもできます。

設定オプション

  • dify_base_url : Dify API のベース URL

  • dify_app_sks : Difyアプリケーションの秘密鍵のリスト

ライセンス

ISC

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    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.
    36
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    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.
    18 npm
    8
    ISC
  • F
    license
    Not graded
    quality
    D
    maintenance
    Converts Dify tools' API to MCP (Model Control Protocol) compatible API, allowing tools created in Dify to be accessed from MCP clients like Cherry Studio.
    27
    -
  • A
    license
    Not graded
    quality
    F
    maintenance
    Exposes Dokploy functionalities as tools consumable via the Model Context Protocol, allowing AI models and other applications to programmatically manage projects and applications on a Dokploy server.
    164 npm
    18
    MIT