Skip to content
appsgit

Mcpspend

Mcpspend is an MCP server that adds cloud and DevOps tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Query your MCPSpend usage: cost today, top tools, recent sessions, budget projections. It has 114 GitHub stars, is released under the MIT license and runs locally with npx -y @mcpspend/mcp-server.

github.com/andreisirbu91-lab/MCPSpend (opens in a new tab)

Install Mcpspend

Generated from the server's MCP registry entry. Replace your-value with your own values.

Claude Desktop

claude_desktop_config.json
{
  "mcpServers": {
    "mcpspend": {
      "command": "npx",
      "args": [
        "-y",
        "@mcpspend/mcp-server"
      ],
      "env": {
        "MCPSPEND_API_KEY": "your-value"
      }
    }
  }
}

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

Claude Code

claude mcp add --env MCPSPEND_API_KEY=your-value --transport stdio mcpspend -- npx -y @mcpspend/mcp-server

Cursor

.cursor/mcp.json
{
  "mcpServers": {
    "mcpspend": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mcpspend/mcp-server"
      ],
      "env": {
        "MCPSPEND_API_KEY": "your-value"
      }
    }
  }
}

Project file; use ~/.cursor/mcp.json to enable it in every project.

VS Code

.vscode/mcp.json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "mcpspend_api_key",
      "description": "MCPSPEND_API_KEY",
      "password": true
    }
  ],
  "servers": {
    "mcpspend": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mcpspend/mcp-server"
      ],
      "env": {
        "MCPSPEND_API_KEY": "${input:mcpspend_api_key}"
      }
    }
  }
}

Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).

Environment variables

Variables the server reads at startup.

NameRequiredDescription
MCPSPEND_API_KEYsecretNoYour MCPSpend API key. Create one at https://mcpspend.com/dashboard/keys. Starts with mcpslive or mcpstest. Optional — the server boots and lists tools…
MCPSPEND_ENDPOINTNoOptional. Override the MCPSpend API endpoint. Defaults to https://api.mcpspend.com. Use only if you self-host MCPSpend.

About Mcpspend

Know what your AI agents really cost. Real-time cost tracking for every MCP tool call across Cursor, Claude Desktop, Windsurf, and VS Code.

  • ai-agents
  • ai-observability
  • claude-desktop
  • cost-tracking
  • cursor
  • llm-cost
  • mcp
  • model-context-protocol
  • typescript
  • windsurf

FAQ

Mcpspend FAQ

Still curious? Email info@appsgit.com.

What is Mcpspend?

Mcpspend is an MCP server that adds cloud and DevOps tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Query your MCPSpend usage: cost today, top tools, recent sessions, budget projections. It has 114 GitHub stars, is released under the MIT license and runs locally with npx -y @mcpspend/mcp-server. The source code is at github.com/andreisirbu91-lab/MCPSpend.

How do I install the Mcpspend MCP server?

Add the command npx -y @mcpspend/mcp-server to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.

Is Mcpspend free?

The server is open source under the MIT license, so running it is free. It does not declare any required API key.

Is Mcpspend actively maintained?

The most recent commit was on Aug 31, 2026. The latest release is v1, published May 24, 2026. appsgit only lists MCP servers with a commit in the last six months and re-checks every server daily.