CG

centminmod/gemini-cli-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

141 stars 16 forks 质量 57 趋势 0

centminmod/gemini-cli-mcp-server 是从 https://github.com/centminmod/gemini-cli-mcp-server. 导入的 MCP 服务器候选

概览

centminmod/gemini-cli-mcp-server 是从 https://github.com/centminmod/gemini-cli-mcp-server. 导入的 MCP 服务器候选

概述(AI 翻译)

一台就生产级模型上下文协议(MCP)服务器,连接谷歌的Gemini CLI与兼容MCP的客户端,如Claude Code和Claude Desktop。这款企业级Gemini MCP服务器支持OpenRouter AI API集成,支持访问400+ AI模型,并提供33种专用工具,实现Claude、Gemini及400+其他模型之间的无缝多AI工作流程。

在Claude桌面版上:

示例1: Claude代码调用33个MCP工具之一gemini_prompt:

示例2: Claude Code 自定义 Slash 命令提示符 + Claude & Gemini CLI MCP 服务器 Teamwork

在 Git 仓库项目的 .claude/commands/test-mcp/test-gemini-prompt-analyse-teamwork.md 处设置 Claude Code 自定义兼命令提示符 /test-gemini-prompt-analyse-teamwork。当你调用该命令时,Claude Code Sonnet 4 首先对 Gemini CLI MCP 服务器代码进行深入分析。然后通过 MCP 工具的 @gemini_prompt(),将同一代码库委托给 Google Gemini 2.5 Flash(注意 Flash 在免费套餐上可能有速率限制)。最后,Claude Code Sonnet 4 将这两组洞察整合成一份整合报告。

点击View Screenshots查看示例。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Gemini CLI MCP Server

A production-ready Model Context Protocol (MCP) server that bridges Google’s Gemini CLI with MCP-compatible clients like Claude Code and Claude Desktop. This enterprise-grade Gemini MCP server features OpenRouter AI API integration for access to 400+ AI models and provides 33 specialized tools for seamless multi-AI workflows between Claude, Gemini, and 400+ additional models.

On Claude Desktop:

Example 1: Claude Code calling one of the 33 MCP tools, gemini_prompt:

@gemini_prompt("Analyse @mcp_server.py codebase and modules explaining what this code does, think deeply before responding")

Example 2: Claude Code Custom Slash Command Prompt + Claude & Gemini CLI MCP Server Teamwork

Setup Claude Code custom slash command prompt /test-gemini-prompt-analyse-teamwork within Git repo project at .claude/commands/test-mcp/test-gemini-prompt-analyse-teamwork.md. When you invoke this command, Claude Code Sonnet 4 first performs a deep analysis of the Gemini CLI MCP server code. It then delegates the same codebase to Google Gemini 2.5 Flash via the MCP tool’s @gemini_prompt() (note that Flash may be rate-limited on free tiers). Finally, Claude Code Sonnet 4 synthesizes both sets of insights into a single, consolidated report.

Click View Screenshots to see example.

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "gemini-cli": { "command": "/absolute/path/to/.venv/bin/python", "args": ["/absolute/path/to/mcp_server.py"] } } }