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")
ライセンス
マサチューセッツ工科大学
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
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 -14JavaScriptMIT License
- -securityAlicense-qualityA server that integrates Flux's advanced image generation and manipulation features into AI coding assistants, enabling seamless text-to-image and image control workflows in IDEs like Cursor and Windsurf.Last updated -410PythonMIT 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 -1298JavaScriptMIT License
- AsecurityAlicenseAqualityA MCP server that enables Claude and other MCP-compatible assistants to generate images from text prompts using Together AI's image generation models.Last updated -12TypeScriptMIT License