How to add MCP servers to Google Gemini CLI — the mcpServers block in ~/.gemini/settings.json, project-level config, and how to list connected servers.
Edit ~/.gemini/settings.json for all projects, or .gemini/settings.json in a repository for that project only. Create the file if it does not exist.
2
Add the server under mcpServers
Add a named entry with "command", "args", and optional "env". Gemini CLI uses the same mcpServers shape as Claude Desktop and Cursor, so those configs paste in directly. You can also run "gemini mcp add".
3
Restart and list servers
Start a new Gemini CLI session and run the /mcp command to see each server, its connection status, and the tools it exposes.
One key, 100+ models — chat with any LLM and generate video, images, speech. Free trial at 370.ai.
0 0
Frequently Asked Questions
Add the server under "mcpServers" in ~/.gemini/settings.json (or a project .gemini/settings.json) with a command and args, or run gemini mcp add. Use /mcp in a session to confirm it connected.