Dify MCP サーバー (TypeScript)
Dify ワークフローをツールとして公開する Model Context Protocol (MCP) サーバーの TypeScript 実装。
特徴
DifyアプリケーションをMCPツールに変換します
Difyワークフローからのストリーミング応答をサポート
YAML設定ファイルで設定可能
型安全性のためにTypeScriptで記述
前提条件
Node.js 18以上
npm 8以上
Dify APIとアプリケーション秘密鍵へのアクセス
インストール
Smithery経由でインストール
Smithery経由で Claude Desktop 用の Dify MCP Server を自動的にインストールするには:
リポジトリをクローンします。
git clone <repository-url> cd dify-mcp-server-ts依存関係をインストールします:
npm install設定ファイルを作成します。
# 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
使用法
プロジェクトをビルドします。
npm run buildサーバーを起動します。
npm start
開発の場合:
構成
サーバーはYAMLファイルを使用して設定できます。デフォルトでは、プロジェクトルートにあるconfig.yaml
を検索しますCONFIG_PATH
環境変数を使用して、別のパスを指定することもできます。
設定オプション
dify_base_url
: Dify API のベース URLdify_app_sks
: Difyアプリケーションの秘密鍵のリスト
ライセンス
ISC
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Dify アプリケーションをモデルコンテキストプロトコル ツールに変換し、ストリーミング応答をサポートし、YAML 経由で構成できるようにします。
Related Resources
Related MCP Servers
- -securityFlicense-qualityA TypeScript implementation of a Model Context Protocol (MCP) server that exposes Dify workflows as tools for AI systems to interact with.Last updated -16
- -securityFlicense-qualityExposes 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 -35
- -securityFlicense-qualityA 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 -2
- -securityFlicense-qualityEnables 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 -127