Skip to main content
Glama

mcp-image-generator

by GMKR

MCP画像ジェネレータ

Together AIの画像生成モデルを用いて画像を生成するためのモデルコンテキストプロトコル(MCP)サーバーです。このMCPサーバーは、ローカルまたはSSEエンドポイントを使用して実行できます。MCP画像ジェネレーターにはプロバイダーが必要ですが、現在は「Replicate」と「Together」のみがサポートされています。環境変数TOGETHER_API_KEYまたはREPLICATE_API_TOKENを設定し、 PROVIDER環境変数を「replicate」または「together」に設定する必要があります。

SSEエンドポイント(Docker環境)

リポジトリをクローンする

git clone https://github.com/gmkr/mcp-imagegen.git cd mcp-imagegen

Dockerコンテナの構築と実行

docker build -f Dockerfile.server -t mcp-imagegen . docker run -p 3000:3000 mcp-imagegen

MCPクライアントでの設定

{ "mcpServers": { "imagegenerator": { "url": "http://localhost:3000/sse", "env": { "PROVIDER": "replicate", "REPLICATE_API_TOKEN": "your-replicate-api-token" } } } }

使用する MCP サーバーのエンドポイントへのurlを調整します。 provider 「replicate」または「together」にすることができます。

stdioを使用してローカルで実行する

前提条件

  • Node.js
  • Together AI APIキーまたはレプリケートAPIトークン

インストール

  1. リポジトリをクローンします。
    git clone https://github.com/gmkr/mcp-imagegen.git cd mcp-imagegen
  2. 依存関係をインストールします:
    pnpm install

構成

MCPクライアント用の設定ファイルを作成します。設定例を以下に示します。

{ "mcpServers": { "imagegenerator": { "command": "pnpx", "args": [ "-y", "tsx", "/path/to/mcp-imagegen/src/index.ts" ], "env": { "PROVIDER": "replicate", "REPLICATE_API_TOKEN": "your-replicate-api-token" } } } }

/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")

ライセンス

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

-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Together.ai を使用して画像を生成して返します

  1. SSEエンドポイント(Docker環境)
    1. リポジトリをクローンする
    2. Dockerコンテナの構築と実行
    3. MCPクライアントでの設定
  2. stdioを使用してローカルで実行する
    1. 前提条件
    2. インストール
    3. 構成
  3. 使用法
    1. ツール: generate\_image
  4. 環境変数
    1. ライセンス

      Related MCP Servers

      • A
        security
        A
        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 -
        1
        4
        JavaScript
        MIT License
        • Apple
        • Linux
      • -
        security
        A
        license
        -
        quality
        A 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 -
        4
        10
        Python
        MIT License
      • A
        security
        A
        license
        A
        quality
        A Model Context Protocol server that enables high-quality image generation using the Flux.1 Schnell model via Together AI with customizable parameters.
        Last updated -
        1
        29
        8
        JavaScript
        MIT License
      • A
        security
        A
        license
        A
        quality
        A 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 -
        1
        2
        TypeScript
        MIT License
        • Apple
        • Linux

      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/GMKR/mcp-imagegen'

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