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トークン
インストール
リポジトリをクローンします。
git clone https://github.com/gmkr/mcp-imagegen.git cd mcp-imagegen依存関係をインストールします:
pnpm install
構成
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
- Asecurity-licenseAqualityEnables 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 -7MIT License
- Asecurity-licenseAqualityA Model Context Protocol server that enables high-quality image generation using the Flux.1 Schnell model via Together AI with customizable parameters.Last updated -329MIT License
- -security-license-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 -8