Gemini CLI MCP Tool

AIstdio
代码仓库

An MCP server that lets AI assistants delegate work to the Google Gemini CLI, taking advantage of Gemini's very large context window for whole-file and codebase analysis. Exposes tools to ask Gemini questions with file references, brainstorm ideas, and stream long responses in chunks, so a client model can offload large-context reasoning to Gemini without leaving the current session.

连接

将此配置添加到 .claude/mcp.json

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

工具 (3)

ask-gemini

Send a prompt to the Gemini CLI, optionally including file references, and return the response.

{
  "type": "object",
  "required": [
    "prompt"
  ],
  "properties": {
    "model": {
      "type": "string",
      "description": "Optional Gemini model to use"
    },
    "prompt": {
      "type": "string",
      "description": "The prompt to send to Gemini, may include @file references"
    }
  }
}

brainstorm

Ask Gemini to generate and expand ideas around a given topic or problem.

{
  "type": "object",
  "required": [
    "topic"
  ],
  "properties": {
    "topic": {
      "type": "string",
      "description": "The topic or problem to brainstorm about"
    }
  }
}

ping

Health check that verifies the Gemini CLI is reachable.

{
  "type": "object",
  "properties": {}
}

资源

此服务器未提供任何资源。

提示词

此服务器未提供任何提示词。

服务器信息

作者
jamubc (@jamubc)
代码仓库
https://github.com/jamubc/gemini-mcp-tool
许可证
MIT
星标
0
最后更新
2026年7月21日