Skip to main content
Glama
TrisC0

Claude to Gemini CLI MCP

by TrisC0

Claude to Gemini CLI MCP

An MCP (Model Context Protocol) server that lets Claude query Google's Gemini CLI as a sub-agent. Get second opinions, verify information, and cross-reference answers between AI models.

Tools

Tool

Description

ask_gemini

Ask Gemini any question directly

verify_with_gemini

Fact-check a claim using Gemini

gemini_second_opinion

Get Gemini's review of a proposed solution or code

gemini_compare

Compare Claude's answer with Gemini's perspective

Related MCP server: claude-mcp-bridge

Prerequisites

Setup

npm install
npm run build

Add to Claude Code

Add to your ~/.claude/settings.json:

{
  "mcpServers": {
    "gemini": {
      "command": "node",
      "args": ["/absolute/path/to/claude-to-gemini-cli-mcp/dist/index.js"]
    }
  }
}

Add to Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "gemini": {
      "command": "node",
      "args": ["/absolute/path/to/claude-to-gemini-cli-mcp/dist/index.js"]
    }
  }
}

Environment Variables

Variable

Default

Description

GEMINI_CLI_PATH

gemini

Path to the Gemini CLI binary

GEMINI_TIMEOUT

120000

Default timeout in ms

GEMINI_MODEL

(CLI default)

Default Gemini model to use

Usage Examples

Once configured, Claude can use these tools automatically:

  • Verify a fact: "Can you check with Gemini if this claim about quantum computing is accurate?"

  • Get a second opinion: "Ask Gemini to review this database schema I designed"

  • Cross-reference: "What does Gemini think about this approach compared to yours?"

  • Direct query: "Ask Gemini about the latest Google Cloud pricing"

License

MIT

Related MCP Connectors

Related MCP Servers