Gemini Cli
VerifiedOpen-source AI agent bringing Gemini models into your terminal.
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 -y @google/gemini-cliExample prompts
Once connected, try asking your AI client:
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
- 1Install via npm, npx, Homebrew, or conda as shown in the README.
- 2Authenticate using Sign in with Google (OAuth).
- 3Launch the CLI and begin prompting in the terminal.
- 4Configure MCP servers in settings to extend functionality.
- 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
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…