Skip to main content
Glama
GongRzhe

Image Generation MCP Server

by GongRzhe

画像生成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

Related MCP server: FLUX MCP 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 ライセンスに基づいてライセンスされています。

A
license - permissive license
B
quality
F
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Generate AI images and videos (Flux, Nano Banana, Kling, Veo, 48+ models), refunds on failure.

  • Generate images, video, and audio with Glif's media-generation agent

  • AI image, video & music generation. Flux, Veo 3.1, Suno V5. Free tier included.

View all MCP Connectors

Latest Blog Posts

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