MCP画像ジェネレータ
Together AIの画像生成モデルを用いて画像を生成するためのモデルコンテキストプロトコル(MCP)サーバーです。このMCPサーバーは、ローカルまたはSSEエンドポイントを使用して実行できます。MCP画像ジェネレーターにはプロバイダーが必要ですが、現在は「Replicate」と「Together」のみがサポートされています。環境変数TOGETHER_API_KEY
またはREPLICATE_API_TOKEN
を設定し、 PROVIDER
環境変数を「replicate」または「together」に設定する必要があります。
SSEエンドポイント(Docker環境)
リポジトリをクローンする
Dockerコンテナの構築と実行
MCPクライアントでの設定
使用する MCP サーバーのエンドポイントへのurl
を調整します。 provider
「replicate」または「together」にすることができます。
stdioを使用してローカルで実行する
前提条件
- Node.js
- Together AI APIキーまたはレプリケートAPIトークン
インストール
- リポジトリをクローンします。
- 依存関係をインストールします:
構成
MCPクライアント用の設定ファイルを作成します。設定例を以下に示します。
/path/to/mcp-imagegen
クローンしたリポジトリへの絶対パスに置き換え、 your-replicate-api-token
を実際の Replicate API トークンに置き換えます。
使用法
MCP イメージ ジェネレーターには、テキスト プロンプトに基づいてイメージを生成するために使用できるgenerate_image
というツールが用意されています。
ツール: generate_image
提供されたプロンプトに基づいて画像を生成します。
パラメータ:
prompt
(文字列): 画像を生成するためのテキストプロンプトwidth
(数値、オプション):生成する画像の幅(デフォルト:512)height
(数値、オプション):生成する画像の高さ(デフォルト:512)numberOfImages
(数値、オプション): 生成する画像の数 (デフォルト: 1)
環境変数
PROVIDER
: 画像生成に使用するプロバイダー (デフォルト: "replicate")REPLICATE_API_TOKEN
: Replicate APIトークンTOGETHER_API_KEY
: Together AI APIキーMODEL_NAME
: 画像生成に使用するモデル(デフォルト: "black-forest-labs/flux-schnell")
ライセンス
マサチューセッツ工科大学
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
Together.ai を使用して画像を生成して返します
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityEnables the generation of images using Together AI's models through an MCP server, supporting customizable parameters such as model selection, image dimensions, and output directory.Last updated -17JavaScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables high-quality image generation using the Flux.1 Schnell model via Together AI with customizable parameters.Last updated -14728JavaScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables generation of high-quality images using the Flux.1 Schnell model via Together AI, allowing users to create images from text prompts with customizable dimensions.Last updated -115PythonMIT License
- -securityFlicense-qualityA server that connects to the xAI/Grok image generation API, allowing users to generate images from text prompts with support for multiple image generation and different response formats.Last updated -8JavaScript