Skip to main content
Glama

画像生成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: Together AI Image 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

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