Gemini CLI · MCP setup
Use any MCP server in Gemini CLI -
one entry instead of many.
Gemini CLI is Google's open-source command-line agent. Replace your entire mcpServers block with one 1Server entry and keep your shell history clean.
About Gemini CLI
Gemini CLI is Google's open-source AI agent that brings Gemini into your terminal - file ops, web search, shell commands, and now MCP server tools via `gemini mcp add`.
By Google. Visit homepage
60-second install
command
gemini mcp add -e ONESERVER_API_KEY=YOUR_KEY 1server npx -y 1server-mcp-engineRun the CLI command, or add the JSON to ~/.gemini/settings.json under `mcpServers`.
Replace your-api-key / YOUR_KEY with the API key from your dashboard.
Why use 1Server with Gemini CLI?
- One YAML/JSON entry replaces an entire mcpServers block.
- Vault keeps API keys out of your shell history and dotfiles.
- Add or remove servers from chat - no rewrite of the agent config.