Lets Claude Desktop call Google Gemini through seven tools, with tool selection that adapts to past usage.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add gemini-server-garblesnarff --env DEBUG='<DEBUG>' --env GEMINI_API_KEY='<GEMINI_API_KEY>' -- node test-tool-intelligence-full.js~/.codex/config.toml
[mcp_servers.gemini-server-garblesnarff]
command = "node"
args = ["test-tool-intelligence-full.js"]
env = { DEBUG = "<DEBUG>", GEMINI_API_KEY = "<GEMINI_API_KEY>" }
# codex mcp add gemini-server-garblesnarff --env DEBUG='<DEBUG>' --env GEMINI_API_KEY='<GEMINI_API_KEY>' -- node test-tool-intelligence-full.js~/.cursor/mcp.json
{
"mcpServers": {
"gemini-server-garblesnarff": {
"command": "node",
"args": [
"test-tool-intelligence-full.js"
],
"env": {
"DEBUG": "<DEBUG>",
"GEMINI_API_KEY": "<GEMINI_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"gemini-server-garblesnarff": {
"type": "stdio",
"command": "node",
"args": [
"test-tool-intelligence-full.js"
],
"env": {
"DEBUG": "<DEBUG>",
"GEMINI_API_KEY": "<GEMINI_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"gemini-server-garblesnarff": {
"command": "node",
"args": [
"test-tool-intelligence-full.js"
],
"env": {
"DEBUG": "<DEBUG>",
"GEMINI_API_KEY": "<GEMINI_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"gemini-server-garblesnarff": {
"command": "node",
"args": [
"test-tool-intelligence-full.js"
],
"env": {
"DEBUG": "<DEBUG>",
"GEMINI_API_KEY": "<GEMINI_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"gemini-server-garblesnarff": {
"command": "node",
"args": [
"test-tool-intelligence-full.js"
],
"env": {
"DEBUG": "<DEBUG>",
"GEMINI_API_KEY": "<GEMINI_API_KEY>"
}
}
}
}Environment variables
DEBUGGEMINI_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.