Gemini MCP Image Generation Server
Gemini 画像生成 MCP サーバー
これは、Google の Gemini 2 API を使用して画像生成機能を提供するモデル コンテキスト プロトコル (MCP) サーバーです。
クイックスタート
Gemini APIキーを取得する
Google AI Studioにアクセス
新しいAPIキーを作成する
Claudeデスクトップの設定
設定ファイルを見つけます:
Mac: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json Linux: ~/.config/Claude/claude_desktop_config.jsonGemini 設定を追加します:
{ "mcpServers": { "gemini-imagen": { "command": "npx", "args": ["-y", "github:sanxfxteam/gemini-mcp-server"], "env": { "GEMINI_API_KEY": "your_api_key_here" } } } }
Claudeデスクトップを再起動します
Related MCP server: Image Toolkit MCP Server
設定
依存関係をインストールします:
npm install環境変数を設定します。ルート ディレクトリに
.envファイルを作成し、Google API キーを追加します。
GEMINI_API_KEY=your_api_key_here使用法
サーバーを実行します。
npm startテストするには
npx @modelcontextprotocol/inspector npm run start利用可能なツール
画像を生成する
Gemini 2 の実験的な画像生成 API を使用して画像を生成します。
パラメータ:
prompt(文字列、必須):生成したい画像の説明numSamples(数値、オプション、デフォルト:4):生成する画像の数aspectRatio(文字列、オプション、デフォルト:'1:1'):生成される画像のアスペクト比personGeneration(文字列、オプション、デフォルト: 'ALLOW_ADULT'): 人物生成設定
MCP リクエストの例:
{
"tool": "generateImage",
"params": {
"prompt": "A serene mountain landscape at sunset",
"numSamples": 2,
"aspectRatio": "16:9"
}
}注記
このサーバーは、Gemini 2の実験的な画像生成機能を使用しています。
Googleからの適切なアクセスとAPIキーがあることを確認してください
サーバーはstdio経由でモデルコンテキストプロトコルを使用して通信します。
Available Tools
1 toolgenerateImageD
Inputs: prompt (required), aspectRatio, outputFormat.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools. The single tool 'generateImage' stands alone with a distinct purpose.
A single tool inherently has perfect naming consistency, as there are no other tools to compare it against. The name 'generateImage' follows a clear verb_noun pattern.
One tool is too few for a server named 'Gemini MCP Image Generation Server', which suggests a broader scope for image generation tasks. A single tool feels thin and incomplete for this domain.
The server is severely incomplete for image generation. It lacks essential operations like listing generated images, editing or modifying images, deleting images, or handling different image formats or styles, leaving significant gaps in functionality.
Related MCP Connectors
MCP server for Google Veo AI video generation
MCP server for Qwen Image 3 AI image generation
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Generate images with any major model — one API key, one prepaid balance, one MCP.
Related MCP Servers
- AlicenseCqualityDmaintenanceA Model Context Protocol server that provides image generation capabilities using the Ideogram API, allowing users to create images from text prompts with customizable parameters.133 npm5MIT
- AlicenseNot gradedqualityDmaintenanceA server that provides AI-powered image generation, modification, and processing capabilities through the Model Context Protocol, leveraging Google Gemini models and other image services.19MIT
- AlicenseDqualityDmaintenanceA Model Context Protocol server that enables generating and editing images using OpenAI's gpt-image-1 model, allowing AI assistants to create and modify images from text prompts.218MIT
- AlicenseAqualityNot gradedmaintenanceA Model Context Protocol server that connects to Google AI Studio/Gemini API, enabling content generation with support for various file types, conversation history, and system prompts.1506 npm41MIT