Skip to main content
Glama

Image Generation MCP Server

画像生成MCPサーバー

この MCP サーバーは、Replicate Flux モデルを使用したイメージ生成機能を提供します。

インストール

オプション 1: NPX 方式 (ローカル セットアップは不要)

ローカルにインストールせずに、npm から直接パッケージを使用できます。

# No installation needed - npx will handle it

オプション2: ローカルインストール

ローカルインストールを希望する場合:

# Global installation npm install -g @gongrzhe/image-gen-server # Or local installation npm install @gongrzhe/image-gen-server

設定

Claudeデスクトップの設定

Claude Desktop 構成ファイルを編集します。

  • MacOSの場合: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows の場合: %APPDATA%/Claude/claude_desktop_config.json
オプション 1: NPX 構成 (推奨)

この方法では、ローカル ファイルを必要とせずに npm から直接サーバーを実行します。

{ "mcpServers": { "image-gen": { "command": "npx", "args": ["@gongrzhe/image-gen-server"], "env": { "REPLICATE_API_TOKEN": "your-replicate-api-token", "MODEL": "alternative-model-name" }, "disabled": false, "autoApprove": [] } } }
オプション2: ローカルインストール構成

パッケージをローカルにインストールした場合:

{ "mcpServers": { "image-gen": { "command": "node", "args": ["/path/to/image-gen-server/build/index.js"], "env": { "REPLICATE_API_TOKEN": "your-replicate-api-token", "MODEL": "alternative-model-name" }, "disabled": false, "autoApprove": [] } } }

複製APIトークンを取得する

  1. https://replicate.comでサインアップ/ログインしてください
  2. https://replicate.com/account/api-tokensにアクセスしてください。
  3. 新しいAPIトークンを作成する
  4. トークンをコピーし、MCP設定でyour-replicate-api-tokenを置き換えます。

画像

環境変数

  • REPLICATE_API_TOKEN (必須): 認証用のReplicate APIトークン
  • MODEL (オプション): 画像生成に使用するReplicateモデル。デフォルトは「black-forest-labs/flux-schnell」

構成パラメータ

  • disabled : サーバーが有効 ( false ) か無効 ( true ) かを制御します
  • autoApprove : ユーザーの確認なしで実行できるツール名の配列。配列が空の場合、すべてのツール呼び出しは確認が必要になります。

利用可能なツール

画像を生成する

テキストプロンプトに基づいて Flux モデルを使用して画像を生成します。

画像

アウト0(1)

パラメータ
  • prompt (必須): 生成する画像のテキスト説明
  • seed (オプション):再現可能な生成のためのランダムシード
  • aspect_ratio (オプション): 画像のアスペクト比 (デフォルト: "1:1")
  • output_format (オプション): 出力形式 - "webp"、"jpg"、または "png" (デフォルト: "webp")
  • num_outputs (オプション): 生成する画像の数 (1-4、デフォルト: 1)
使用例
const result = await use_mcp_tool({ server_name: "image-gen", tool_name: "generate_image", arguments: { prompt: "A beautiful sunset over mountains", aspect_ratio: "16:9", output_format: "png", num_outputs: 1 } });

このツールは、生成された画像への URL の配列を返します。

📜 ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています。

-
security - not tested
A
license - permissive license
-
quality - not tested

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.

Replicate Flux モデルを使用して Claude に画像生成機能を提供します。これにより、ユーザーはアスペクト比や出力形式などのカスタマイズ可能なパラメータを使用してテキスト プロンプトから画像を作成できます。

  1. インストール
    1. オプション 1: NPX 方式 (ローカル セットアップは不要)
    2. オプション2: ローカルインストール
  2. 設定
    1. Claudeデスクトップの設定
    2. 複製APIトークンを取得する
    3. 環境変数
    4. 構成パラメータ
  3. 利用可能なツール
    1. 画像を生成する
  4. 📜 ライセンス

    Related MCP Servers

    • A
      security
      F
      license
      A
      quality
      Enables users to generate images from text prompts using Replicate's model, with configurable parameters and full MCP protocol compliance.
      Last updated -
      1
      126
      TypeScript
    • 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
      4
      TypeScript
      MIT License
      • Apple
      • Linux
    • -
      security
      A
      license
      -
      quality
      Provides image generation capabilities using the Flux Schnell model on Replicate, allowing users to create images from text prompts.
      Last updated -
      1
      JavaScript
      MIT License
    • A
      security
      F
      license
      A
      quality
      A Model Context Protocol server that generates images using Replicate's FLUX model and stores them in Cloudflare R2, allowing users to create images through simple prompts and retrieve accessible URLs.
      Last updated -
      1
      10

    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/GongRzhe/Image-Generation-MCP-Server'

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