Dify ワークフロー MCP ツールサーバー
モデル コンテキスト プロトコル (MCP) を使用して Dify Workflow と簡単に統合できるツール サーバー。
特徴
クロードとの双方向通信を可能にするMCPプロトコル実装
Difyワークフローをツールとして活用
Difyワークフローパラメータを動的に取得して表示します
環境変数を使用した簡単な設定
新機能:複数のDify APIキーのサポート
前提条件
Node.js 16以上
npm 7以上
Difyワークフローへのアクセス権(APIキー)
Claudeデスクトップアプリとの統合
Claude デスクトップ アプリで使用するには、Claude の構成ファイルに次の設定を追加します。
ウィンドウズ
%AppData%\Claude\claude_desktop_config.jsonに追加します:
{
"mcpServers": {
"dify-workflow": {
"command": "npx",
"args": ["@tonlab/dify-mcp-server"],
"env": {
"DIFY_BASE_URL": "https://your-dify-endpoint",
"DIFY_API_KEY": "your-api-key-here"
}
}
}
}
複数の API キーの使用 (新機能)
複数の Dify API キーを設定できるようになりました。これにより、複数のツール (API キーごとに 1 つ) が作成されます。
{
"mcpServers": {
"dify": {
"command": "npx",
"args": ["@tonlab/dify-mcp-server"],
"env": {
"DIFY_BASE_URL": "https://api.dify.ai/v1",
"DIFY_API_KEYS": "app-FirstAPIKeyHere,app-SecondAPIKeyHere,app-ThirdAPIKeyHere"
}
}
}
}
各 API キーは Claude で個別のツールとして公開され、ツール名に固有の番号が追加されます。
macOS/Linux
~/Library/Application Support/Claude/claude_desktop_config.jsonに追加します:
{
"mcpServers": {
"dify-workflow": {
"command": "npx",
"args": ["@tonlab/dify-mcp-server"],
"env": {
"DIFY_BASE_URL": "https://your-dify-endpoint",
"DIFY_API_KEY": "your-api-key-here"
}
}
}
}
上記と同じ複数の API キー構成は、macOS/Linux でも機能します。
ライセンス
マサチューセッツ工科大学
This server cannot be installed
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-qualityConnects Claude AI to QGIS through the Model Context Protocol, allowing Claude to directly interact with and control QGIS for tasks like project creation, layer manipulation, and code execution.Last updated -697
- -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 -36
- -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 -3