/ 디렉터리 / 플레이그라운드 / Gemini CLI
● 공식 google-gemini 🔑 본인 키 필요

Gemini CLI

제작: google-gemini · google-gemini/gemini-cli

Gemini's official terminal agent — it does shell tasks autonomously and exposes that capability via MCP, so Claude can call Gemini for cross-model second opinions.

Gemini CLI is Google's terminal-native agent (Codex/Claude Code analog). Its MCP surface lets Claude delegate work to Gemini — useful for second opinions, large-context tasks, or model-comparison evaluations.

왜 쓰나요

핵심 기능

라이브 데모

실제 사용 모습

준비됨

설치

클라이언트 선택

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "gemini-cli-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@google/gemini-cli",
        "mcp"
      ]
    }
  }
}

Claude Desktop → Settings → Developer → Edit Config 열기. 저장 후 앱 재시작.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "gemini-cli-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@google/gemini-cli",
        "mcp"
      ]
    }
  }
}

Cursor는 Claude Desktop과 동일한 mcpServers 스키마 사용. 프로젝트 설정이 전역보다 우선.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "gemini-cli-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@google/gemini-cli",
        "mcp"
      ]
    }
  }
}

Cline 사이드바의 MCP Servers 아이콘 클릭 후 "Edit Configuration" 선택.

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "gemini-cli-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@google/gemini-cli",
        "mcp"
      ]
    }
  }
}

Claude Desktop과 같은 형식. Windsurf 재시작 후 적용.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "gemini-cli-mcp",
      "command": "npx",
      "args": [
        "-y",
        "@google/gemini-cli",
        "mcp"
      ]
    }
  ]
}

Continue는 맵이 아닌 서버 오브젝트 배열 사용.

~/.config/zed/settings.json
{
  "context_servers": {
    "gemini-cli-mcp": {
      "command": {
        "path": "npx",
        "args": [
          "-y",
          "@google/gemini-cli",
          "mcp"
        ]
      }
    }
  }
}

context_servers에 추가. 저장 시 Zed가 핫 리로드.

claude mcp add gemini-cli-mcp -- npx -y @google/gemini-cli mcp

한 줄 명령. claude mcp list로 확인, claude mcp remove로 제거.

사용 사례

실전 활용법: Gemini CLI

Get a Gemini second opinion on Claude's plan

👤 Developers ⏱ ~15 min intermediate

언제 쓸까: You're about to ship something risky; want a fresh take from a different model.

흐름
  1. Bridge
    Add Gemini CLI as an MCP server.✓ 복사됨
    → Tool visible
  2. Ask
    Have Claude pass the plan to Gemini for critique.✓ 복사됨
    → Critique returns
  3. Reconcile
    Claude updates the plan with Gemini's feedback.✓ 복사됨
    → Better plan

결과: Two-model review without manual copy-paste.

조합

다른 MCP와 조합해 10배 효율

gemini-cli-mcp + github

Have Gemini draft a refactor plan, then Claude opens the PR via GitHub MCP

Combine gemini-cli-mcp with github: Have Gemini draft a refactor plan, then Claude opens the PR via GitHub MCP✓ 복사됨

도구

이 MCP가 노출하는 것

도구입력언제 호출비용
gemini.ask (see docs) Send a prompt to Gemini, get a response 1 call
gemini.run_task (see docs) Run an autonomous shell task 1 call

비용 및 제한

운영 비용

API 쿼터
Google AI free tier; paid for higher rate
호출당 토큰
Per Gemini pricing
금액
Free tier; paid plans
팁
Use Gemini for large-context summaries where its 2M-token window pays off

보안

권한, 시크릿, 파급범위

최소 스코프: gemini:api
자격 증명 저장: API key in env
데이터 외부 송신: generativelanguage.googleapis.com
절대 부여 금지: Pass real customer data without checking Gemini data terms

문제 해결

자주 발생하는 오류와 해결

429 quota exceeded

Wait or upgrade plan; check key has the right Vertex/AI Studio scope

대안

Gemini CLI 다른 것과 비교

대안언제 쓰나단점/장점
claude-code (self)Single-model is fineNo second opinion

더 보기

리소스

📖 GitHub에서 공식 README 읽기

🐙 열린 이슈 보기

🔍 400+ MCP 서버 및 Skills 전체 보기