
choplin/mcp-gemini-cli
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
choplin/mcp-gemini-cliは、https://github.com/choplin/mcp-gemini-cli.からインポートされたMCPサーバー候補です。
概要
choplin/mcp-gemini-cliは、https://github.com/choplin/mcp-gemini-cli.からインポートされたMCPサーバー候補です。
概要(AI 翻訳)
GoogleのGemini CLI用のシンプルなMCPサーバーラッパーで、AIアシスタントがModel Context Protocolを通じてGeminiの機能を活用できるようにします。
それが何をするのか
このサーバーは、Gemini CLIと相互作用する3つのツールを公開しています。
googleSearch:あなたのクエリを使ってGoogle検索を依頼しますchat:一般的な会話のためにジェミニに直接プロンプトを送信しますanalyzeFile:Geminiのマルチモーダル機能を使ってファイル(画像、PDF、テキスト)を解析
前提条件
- Gemini CLIのインストールおよび設定(–allow-npxフラグでオプション)
🚀 クロードコードでクイックスタート
1.MCPサーバーを追加してください
または、下記のインストールオプションセクションにある設定でMCPクライアントを設定することもできます。
2.試してみてください
例示のプロンプト:
- Search:「Googleを使って最新のTypeScript 5.0機能を検索」
- チャット:「JavaScriptにおけるasync/waitとpromisesの違いについてGeminiに説明を求めてください」
- ファイル解析:「ジェミニに/path/to/screenshot.pngの画像解析を依頼してください」
🔧 設置オプション
-allow-npx フラグを使った npx を使う
地域開発
-
クローンとインストール:
-
Claudeデスクトップ設定に追加:
🛠️ 利用可能なツール
1.google検索
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MCP Gemini CLI
A simple MCP server wrapper for Google’s Gemini CLI that enables AI assistants to use Gemini’s capabilities through the Model Context Protocol.
What it does
This server exposes three tools that interact with Gemini CLI:
googleSearch: Asks Gemini to perform a Google search using your querychat: Sends prompts directly to Gemini for general conversationsanalyzeFile: Analyzes files (images, PDFs, text) using Gemini’s multimodal capabilities
Prerequisites
- Gemini CLI installed and configured (optional with --allow-npx flag)
🚀 Quick Start with Claude Code
1. Add the MCP server
claude mcp add -s project gemini-cli -- npx mcp-gemini-cli --allow-npx
Or configure your MCP client with the settings shown in the Installation Options section below.
2. Try it out
Example prompts:
- Search: “Search for the latest TypeScript 5.0 features using Google”
- Chat: “Ask Gemini to explain the difference between async/await and promises in JavaScript”
- File Analysis: “Ask Gemini to analyze the image at /path/to/screenshot.png”
🔧 Installation Options
Using npx with --allow-npx flag
{
"mcpServers": {
"mcp-gemini-cli": {
"command": "npx",
"args": ["mcp-gemini-cli", "--allow-npx"]
}
}
}
Local Development
- Clone and install:
git clone https://github.com/choplin/mcp-gemini-cli
cd mcp-gemini-cli
bun install
- Add to Claude Desktop config:
{
"mcpServers": {
"mcp-gemini-cli": {
"command": "bun",
"args": ["run", "/path/to/mcp-gemini-cli/index.ts"]
}
}
}
🛠️ Available Tools
1. googleSearch
Performs a Google search using Gemini CLI.
Parameters:
query(required): The search querylimit(optional): Maximum number of resultssandbox(optional): Run in sandbox modeyolo(optional): Skip confirmationsmodel(optional): Gemini model to use (default: “gemini-2.5-pro”)
2. chat
Have a conversation with Gemini.
Parameters:
prompt(required): The conversation promptsandbox(optional): Run in sandbox modeyolo(optional): Skip confirmationsmodel(optional): Gemini model to use (default: “gemini-2.5-pro”)
3. analyzeFile
Analyze files using Gemini’s multimodal capabilities.
Supported file types:
- Images: PNG, JPG, JPEG, GIF, WEBP, SVG, BMP
- Text: TXT, MD, TEXT
- Documents: PDF
Parameters:
filePath(required): The absolute path to the file to analyzeprompt(optional): Additional instructions for analyzing the filesandbox(optional): Run in sandbox modeyolo(optional): Skip confirmationsmodel(optional): Gemini model to use (default: “gemini-2.5-pro”)
💡 Example Prompts
Try these prompts to see mcp-gemini-cli in action:
- Search: “Search for the latest TypeScript 5.0 features using Google”
インストール
npx mcp-gemini-cli --allow-npx設定
{
"mcpServers": {
"mcp-gemini-cli": {
"command": "npx",
"args": ["mcp-gemini-cli", "--allow-npx"]
}
}
}