Integrations
Supports environment variable configuration for ComfyUI connections through .env files, allowing users to customize host and port settings.
Supports containerized deployment of the MCP server through Docker, with instructions for building and configuring the Docker image.
Provides integration with ComfyUI, a Python-based stable diffusion interface, enabling AI image generation through tools like text_to_image and download_image capabilities.
ComfyUI MCP サーバー
1. 概要
- ComfyUI を MCP と統合するためのサーバー実装。
- ⚠️ 重要: このサーバーでは、実行中の ComfyUI サーバーが必要です。
- 独自のComfyUIサーバーをホストするか、
- または、既存の ComfyUI サーバー アドレスにアクセスできる必要があります。
2. デバッグ
2.1 ComfyUI デバッグ
2.2 MCPデバッグ
3. インストールと設定
3.1 ComfyUI の設定
src/.env
を編集して、ComfyUI のホストとポートを設定します。
3.2 カスタムワークフローの追加
- 新しいツールを追加するには、ワークフロー JSON ファイルを
workflows
ディレクトリに配置し、システム内で新しいツールとして宣言します。
4. 組み込みツール
- テキストを画像に変換する
- 生成された画像の URL のみを返します。
- 実際の画像を取得するには:
download_image
ツールを使用するか、- ブラウザで直接 URL にアクセスします。
- ダウンロード画像
- 画像 URL を使用して、他のツール (
text_to_image
など) によって生成された画像をダウンロードします。
- 画像 URL を使用して、他のツール (
- ファイルを使ったワークフローの実行
- ワークフロー JSON ファイルへのパスを指定してワークフローを実行します。
- CursorAIの例画像
- ワークフロー JSON ファイルへのパスを指定してワークフローを実行します。
- json を使用したワークフローの実行
- ワークフロー JSON データを直接提供してワークフローを実行します。
- ワークフロー JSON データを直接提供してワークフローを実行します。
5. 実行方法
5.1 UVの使用(推奨)
mcp.json
例:
5.2 Dockerの使用
- Docker コンテナはホスト ファイル システムを共有しないため、
download_image
を使用してイメージをローカル フォルダーにダウンロードするのは難しい場合があります。 - Docker を使用する場合は、次の点を考慮してください。
- 画像データをバイトとして受信するには、
.env
でRETURN_URL=false
設定します。 .env
のCOMFYUI_HOST
適切なアドレス (例:host.docker.internal
またはサーバーの IP) に設定します。- 注意: バイナリ データを使用する場合、大きな画像ペイロードは応答制限を超える可能性があります。
- 画像データをバイトとして受信するには、
5.2.1 Dockerイメージのビルド
5.2.2 既存の画像の使用
事前に構築されたイメージを使用することもできます。
5.2.3 SSEトランスポートの使用
- Docker で SSE サーバーを実行します。
mcp.json
を設定します (必要に応じて localhost を自分の IP またはドメインに変更します)。
注意: 新しいワークフローをツールとして追加する場合は、Docker イメージを再構築して再デプロイし、使用できるようにする必要があります。
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
ComfyUI と MCP を統合し、ユーザーが自然言語による対話を通じて画像を生成し、ダウンロードできるようにするサーバー。
Related MCP Servers
- AsecurityAlicenseAqualityA powerful MCP server for fetching and transforming web content into various formats (HTML, JSON, Markdown, Plain Text) with ease.Last updated -414612TypeScriptMIT License
- -securityAlicense-qualityThe Comfy MCP Server uses the FastMCP framework to generate images from prompts by interacting with a remote Comfy server, allowing automated image creation based on workflow configurations.Last updated -7PythonMIT License
- -securityAlicense-qualityA MCP server that integrates with Cursor IDE to generate images based on text descriptions using JiMeng AI, allowing users to create and save custom images directly within their development environment.Last updated -82PythonMIT License
- -security-license-qualityA TypeScript-based MCP server that lets users generate images using OpenAI's dall-e-3 model by providing a prompt and image name.Last updated -1