Lets agents call Google's Gemini through the official Gemini CLI, without separate API costs.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add gemini-bridge --env GEMINI_BRIDGE_TIMEOUT='<GEMINI_BRIDGE_TIMEOUT>' -- uvx gemini-bridge~/.codex/config.toml
[mcp_servers.gemini-bridge]
command = "uvx"
args = ["gemini-bridge"]
env = { GEMINI_BRIDGE_TIMEOUT = "<GEMINI_BRIDGE_TIMEOUT>" }
# codex mcp add gemini-bridge --env GEMINI_BRIDGE_TIMEOUT='<GEMINI_BRIDGE_TIMEOUT>' -- uvx gemini-bridge~/.cursor/mcp.json
{
"mcpServers": {
"gemini-bridge": {
"command": "uvx",
"args": [
"gemini-bridge"
],
"env": {
"GEMINI_BRIDGE_TIMEOUT": "<GEMINI_BRIDGE_TIMEOUT>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"gemini-bridge": {
"type": "stdio",
"command": "uvx",
"args": [
"gemini-bridge"
],
"env": {
"GEMINI_BRIDGE_TIMEOUT": "<GEMINI_BRIDGE_TIMEOUT>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"gemini-bridge": {
"command": "uvx",
"args": [
"gemini-bridge"
],
"env": {
"GEMINI_BRIDGE_TIMEOUT": "<GEMINI_BRIDGE_TIMEOUT>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"gemini-bridge": {
"command": "uvx",
"args": [
"gemini-bridge"
],
"env": {
"GEMINI_BRIDGE_TIMEOUT": "<GEMINI_BRIDGE_TIMEOUT>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"gemini-bridge": {
"command": "uvx",
"args": [
"gemini-bridge"
],
"env": {
"GEMINI_BRIDGE_TIMEOUT": "<GEMINI_BRIDGE_TIMEOUT>"
}
}
}
}Environment variables
GEMINI_BRIDGE_TIMEOUT
Replace the placeholders with your own credentials and keep them out of version control.