Together AI 画像サーバー
英語 |简体中文
Together AI API を使用して画像を生成するための TypeScript ベースの MCP (Model Context Protocol) サーバー。
概要
このサーバーは、MCPプロトコルを介してTogether AIの画像生成モデルを使用して画像を生成するためのシンプルなインターフェースを提供します。これにより、Claudeやその他のMCP対応アシスタントは、テキストプロンプトに基づいて画像を生成できます。
特徴
ツール
generate_image
- テキストプロンプトから画像を生成する- 必須パラメータとしてテキストプロンプトを受け取ります
- 生成ステップと画像数を制御するためのオプションパラメータ
- 生成された画像へのURLとローカルパスを返します
前提条件
- Node.js (v14以降を推奨)
- Together AI APIキー
インストール
構成
Together AI API キーを環境変数として設定します。
あるいは、プロジェクト ルートに.env
ファイルを作成することもできます。
発達
サーバーを構築します。
自動リビルドを使用した開発の場合:
Claude Desktopでの使用
Claude Desktop で使用するには、サーバー設定を追加します。
macOSの場合: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows の場合: %APPDATA%/Claude/claude_desktop_config.json
/path/to/together-ai-image-server
実際のインストールパスに置き換えます。
デバッグ
MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。パッケージスクリプトとして提供されているMCP Inspectorの使用をお勧めします。
インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。
APIリファレンス
画像を生成する
Together AI の画像生成 API を使用して、テキスト プロンプトに基づいて画像を生成します。
パラメータ:
prompt
(文字列、必須):画像生成のためのテキストプロンプトsteps
(数値、オプション、デフォルト:4):拡散ステップ数(1~4)n
(数値、オプション、デフォルト: 1): 生成する画像の数 (1-4)
戻り値:
以下を含む JSON オブジェクト:
image_urls
: 生成された画像へのURLの配列local_paths
: ローカルにキャッシュされた画像へのパスの配列
ライセンス
マサチューセッツ工科大学
貢献
貢献を歓迎します!お気軽にプルリクエストを送信してください。
You must be authenticated.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
Claude やその他の MCP 対応アシスタントが Together AI の画像生成モデルを使用してテキスト プロンプトから画像を生成できるようにする MCP サーバー。
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 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
- AsecurityAlicenseAqualityAn MCP server implementation that integrates with Minimax API to provide AI-powered image generation and text-to-speech functionality in editors like Windsurf and Cursor.Last updated -21921JavaScriptMIT License
- AsecurityAlicenseAqualityAllows AI assistants to generate and transform high-quality images from text prompts using Google's Gemini model via the MCP protocol.Last updated -35PythonMIT License