dify ワークフロー用のモデル コンテキスト プロトコル (MCP) サーバー
difyを使用するためのMCPサーバーのシンプルな実装です。MCPのツールを呼び出すことで、Difyワークフローの呼び出しを実現します。
📰 ニュース
- [2025/4/15] zNow は、環境変数を使用して
base_url
とapp_sks
を直接渡すことをサポートしており、クラウドホスト型プラットフォームでの使用がより便利になっています。
🔨インストール
サーバーはSmithery経由でも手動でもインストールできます。
ステップ1: config.yamlまたは環境を準備する
環境変数またはconfig.yaml
ファイルを使用してサーバーを構成できます。
方法 1: 環境変数を使用する (クラウド プラットフォームに推奨)
次の環境変数を設定します。
DIFY_BASE_URL
: Dify API のベース URL。DIFY_APP_SKS
: Difyアプリの秘密鍵(SK)のカンマ区切りリスト。各SKは通常、MCP経由で利用可能にする異なるDifyワークフローに対応します。
方法2: config.yaml
を使用する
Dify ベース URL と App SK を保存するためのconfig.yaml
ファイルを作成します。
config.yaml
例:
dify_base_url
: Dify API のベース URL。dify_app_sks
: Difyアプリの秘密鍵(SK)のリスト。各SKは通常、異なるDifyワークフローに対応します。
次のコマンドを使用して、このファイルをすばやく作成できます (必要に応じてパスと値を調整してください)。
サーバーを実行するときに (手順 2 に示すように)、この方法を選択した場合は、 CONFIG_PATH
環境変数を介してこのconfig.yaml
ファイルへのパスを指定する必要があります。
ステップ2: クライアントへのインストール
❓ uv または uvx をまだインストールしていない場合は、次のコマンドで簡単にインストールできます。
✅ 方法 1: uvx を使用する (コードをクローンする必要はありませんが、推奨されます)
または
✅ 方法 2: uv (ローカルクローン + uv start) を使用する
dify mcpサーバーをクライアントで手動で実行することもできます。クライアントの設定は以下の形式になります。
または
設定例:
楽しめ
最後に、mcp をサポートする任意のクライアントで dify ツールを使用できるようになります。
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Difyを使用するためのサーバー。MCPのツールを呼び出すことで、Difyワークフローの呼び出しを実現します。
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 -16TypeScript
- -securityFlicense-qualityA plugin that allows Dify to connect to multiple MCP (Model Control Protocol) servers using HTTP with Server-Sent Events transport, supporting custom configurations for URLs, headers, and timeouts.Last updated -124Python
- -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 -18Python
- -securityFlicense-qualityA Dify endpoint plugin that transforms a Dify application into a Model Control Protocol server, allowing tools like Cursor to connect to and utilize your custom Dify workflows.Last updated -38Python