Skip to content
Gemini CLI

mcpspend for Gemini CLI

io.github.andreisirbu91-lab/mcpspend

Query your MCPSpend usage: cost today, top tools, recent sessions, budget projections.

client:Gemini CLI transport:stdio runtime:npm

Install mcpspend in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "mcpspend": {
      "command": "npx",
      "args": [
        "-y",
        "@mcpspend/mcp-server"
      ],
      "env": {
        "MCPSPEND_API_KEY": "<MCPSPEND_API_KEY>",
        "MCPSPEND_ENDPOINT": "<MCPSPEND_ENDPOINT>"
      }
    }
  }
}

Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs

mcpspend in other clients