CM

choplin/mcp-gemini-cli

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

100 stars 16 forks 品質 54 トレンド 0

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 を使う

地域開発

  1. クローンとインストール:

  2. 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 query
  • chat: Sends prompts directly to Gemini for general conversations
  • analyzeFile: 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

  1. Clone and install:
git clone https://github.com/choplin/mcp-gemini-cli
cd mcp-gemini-cli
bun install
  1. 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 query
  • limit (optional): Maximum number of results
  • sandbox (optional): Run in sandbox mode
  • yolo (optional): Skip confirmations
  • model (optional): Gemini model to use (default: “gemini-2.5-pro”)

2. chat

Have a conversation with Gemini.

Parameters:

  • prompt (required): The conversation prompt
  • sandbox (optional): Run in sandbox mode
  • yolo (optional): Skip confirmations
  • model (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 analyze
  • prompt (optional): Additional instructions for analyzing the file
  • sandbox (optional): Run in sandbox mode
  • yolo (optional): Skip confirmations
  • model (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”
GitHub で README 全文を見る

インストール

npx mcp-gemini-cli --allow-npx
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "mcp-gemini-cli": { "command": "npx", "args": ["mcp-gemini-cli", "--allow-npx"] } } }