Skip to content
Gemini Cli logo

Gemini Cli

Verified

Open-source AI agent bringing Gemini models into your terminal.

MCP ServerSearch & WebLocal (stdio) 105.3k
View on GitHub
Updated 2026-06-15

What is the Gemini Cli MCP server?

Gemini CLI delivers lightweight terminal access to Gemini with a free tier of 60 requests per minute. It features a 1M token context window, Google Search grounding, and native MCP support for integrations.

The tool runs via npm or npx, supports OAuth authentication, and enables non-interactive scripting, code generation, and workflow automation directly from the command line.

Install & connect

Add this to your MCP client config. Pick your client below and copy.

{
  "mcpServers": {
    "gemini-cli": {
      "command": "npx",
      "args": [
        "-y",
        "@google/gemini-cli"
      ]
    }
  }
}

Package: @google/gemini-cli (npm)

Other ways to install

npx

npx
npx -y @google/gemini-cli

Example prompts

Once connected, try asking your AI client:

Search the web for the latest Gemini model updates
Explain the main functions in this project directory
Generate a Python script to parse CSV files from the current folder
Fetch and summarize the content of https://example.com/docs

Security & permissions

Runs locally via stdio with access to local files and shell; requires Google OAuth credentials for API access.

What you can do with Gemini Cli

Codebase interaction

Query, edit, and debug large codebases using natural language prompts within the terminal.

Real-time information

Ground responses with built-in Google Search for up-to-date facts and data.

Task automation

Run file operations, shell commands, and MCP-extended capabilities in scripts or interactive sessions.

How to use Gemini Cli

  1. 1Install via npm, npx, Homebrew, or conda as shown in the README.
  2. 2Authenticate using Sign in with Google (OAuth).
  3. 3Launch the CLI and begin prompting in the terminal.
  4. 4Configure MCP servers in settings to extend functionality.
  5. 5Use non-interactive mode for scripting and automation.

Gemini Cli: pros & cons

Pros

  • +Free tier with generous limits and 1M token context
  • +Native MCP extensibility and terminal-first design
  • +Built-in Google Search grounding and multimodal support
  • +Open source under Apache 2.0

Cons

  • Preview releases may contain regressions
  • Primarily terminal-based, limiting GUI workflows
  • Quota limits apply on free personal accounts
Did you find this helpful?

Frequently asked questions

Yes, it offers a free tier of 60 requests/min and 1,000 requests/day with a personal Google account.

User reviews

Verified reviews from the community shape this listing's rating.

Loading reviews…

Sign in to review

Promote Gemini Cli

Add this badge to your website, or share the tool.

DFeatured on DhanasviGemini Cli 2