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.
Integrations
Enables configuration of the server through environment variables loaded from a .env file, specifically for storing the Google API key required for authentication.
Provides image generation capabilities using Google's Gemini 2 API, allowing users to generate images based on text prompts with customizable parameters such as number of samples and aspect ratio.
Used for package management, installation of dependencies, and running the server through npm commands.
Gemini 画像生成 MCP サーバー
これは、Google の Gemini 2 API を使用して画像生成機能を提供するモデル コンテキスト プロトコル (MCP) サーバーです。
クイックスタート
- Gemini APIキーを取得する
- Google AI Studioにアクセス
- 新しいAPIキーを作成する
- Claudeデスクトップの設定
- 設定ファイルを見つけます:Copy
- Gemini 設定を追加します:Copy
- 設定ファイルを見つけます:
- Claudeデスクトップを再起動します
設定
- 依存関係をインストールします:
- 環境変数を設定します。ルート ディレクトリに
.env
ファイルを作成し、Google API キーを追加します。
使用法
サーバーを実行します。
テストするには
利用可能なツール
画像を生成する
Gemini 2 の実験的な画像生成 API を使用して画像を生成します。
パラメータ:
prompt
(文字列、必須):生成したい画像の説明numSamples
(数値、オプション、デフォルト:4):生成する画像の数aspectRatio
(文字列、オプション、デフォルト:'1:1'):生成される画像のアスペクト比personGeneration
(文字列、オプション、デフォルト: 'ALLOW_ADULT'): 人物生成設定
MCP リクエストの例:
注記
- このサーバーは、Gemini 2の実験的な画像生成機能を使用しています。
- Googleからの適切なアクセスとAPIキーがあることを確認してください
- サーバーはstdio経由でモデルコンテキストプロトコルを使用して通信します。
You must be authenticated.
Tools
Google の Gemini 2 API を使用して画像生成機能を提供するモデル コンテキスト プロトコル サーバー。ユーザーは、プロンプト、アスペクト比、人物生成設定などのカスタマイズ可能なパラメータを使用して複数の画像を生成できます。