Skip to main content
Glama

Together AI 画像サーバー

英語 |简体中文

Together AI API を使用して画像を生成するための TypeScript ベースの MCP (Model Context Protocol) サーバー。

概要

このサーバーは、MCPプロトコルを介してTogether AIの画像生成モデルを使用して画像を生成するためのシンプルなインターフェースを提供します。これにより、Claudeやその他のMCP対応アシスタントは、テキストプロンプトに基づいて画像を生成できます。

特徴

ツール

  • generate_image - テキストプロンプトから画像を生成する

    • 必須パラメータとしてテキストプロンプトを受け取ります

    • 生成ステップと画像数を制御するためのオプションパラメータ

    • 生成された画像へのURLとローカルパスを返します

前提条件

  • Node.js (v14以降を推奨)

  • Together AI APIキー

インストール

# Clone the repository git clone https://github.com/zym9863/together-ai-image-server.git cd together-ai-image-server # Install dependencies npm install

構成

Together AI API キーを環境変数として設定します。

# On Linux/macOS export TOGETHER_API_KEY="your-api-key-here" # On Windows (Command Prompt) set TOGETHER_API_KEY=your-api-key-here # On Windows (PowerShell) $env:TOGETHER_API_KEY="your-api-key-here"

あるいは、プロジェクト ルートに.envファイルを作成することもできます。

TOGETHER_API_KEY=your-api-key-here

発達

サーバーを構築します。

npm run build

自動リビルドを使用した開発の場合:

npm run watch

Claude Desktopでの使用

Claude Desktop で使用するには、サーバー設定を追加します。

macOSの場合: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows の場合: %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "Together AI Image Server": { "command": "/path/to/together-ai-image-server/build/index.js" } } }

/path/to/together-ai-image-server実際のインストールパスに置き換えます。

デバッグ

MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。パッケージスクリプトとして提供されているMCP Inspectorの使用をお勧めします。

npm run inspector

インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。

APIリファレンス

画像を生成する

Together AI の画像生成 API を使用して、テキスト プロンプトに基づいて画像を生成します。

パラメータ:

  • prompt (文字列、必須):画像生成のためのテキストプロンプト

  • steps (数値、オプション、デフォルト:4):拡散ステップ数(1~4)

  • n (数値、オプション、デフォルト: 1): 生成する画像の数 (1-4)

戻り値:

以下を含む JSON オブジェクト:

  • image_urls : 生成された画像へのURLの配列

  • local_paths : ローカルにキャッシュされた画像へのパスの配列

ライセンス

マサチューセッツ工科大学

貢献

貢献を歓迎します!お気軽にプルリクエストを送信してください。

Deploy Server
A
security – no known vulnerabilities
-
license - not tested
A
quality - confirmed to work

Related MCP Servers

  • A
    security
    -
    license
    A
    quality
    Enables 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 -
    7
    MIT License
    • Apple
    • Linux
  • A
    security
    A
    license
    A
    quality
    Allows AI assistants to generate and transform high-quality images from text prompts using Google's Gemini model via the MCP protocol.
    Last updated -
    3
    24
    MIT License
    • Apple
  • A
    security
    -
    license
    A
    quality
    An MCP image generation server based on the Flux Schnell model that provides API access for generating images from text prompts with customizable dimensions and seeds.
    Last updated -
    1
    1
    • Linux
    • Apple
  • A
    security
    -
    license
    A
    quality
    An MCP server that allows Claude to use OpenAI's image generation capabilities (gpt-image-1) to create image assets for users, which is particularly useful for game and web development projects.
    Last updated -
    1
    1
    3
    MIT License

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zym9863/together-ai-image-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server