mcpspend
local MCP servermcpspend is a local MCP server: Query your MCPSpend usage: cost today, top tools, recent sessions, budget projections. Install it from npm as @mcpspend/mcp-server.
Installation
Terminal
claude mcp add mcpspend -e MCPSPEND_API_KEY=... -e MCPSPEND_ENDPOINT=... -- npx -y @mcpspend/mcp-server
Run in your project folder. Add --scope user to use it everywhere.
Claude Desktop, Cursor & other clients
Add to claude_desktop_config.json or .cursor/mcp.json.
{
"mcpServers": {
"mcpspend": {
"command": "npx",
"args": [
"-y",
"@mcpspend/mcp-server"
],
"env": {
"MCPSPEND_API_KEY": "...",
"MCPSPEND_ENDPOINT": "..."
}
}
}
}Fill in the environment variables with your own credentials.
What you need
- Runtime: Node.js 18+ (runs with npx).
- MCP client: Claude Code, Codex, Antigravity, Claude Desktop, Cursor or any other client that speaks MCP over stdio.
- Environment variables:
MCPSPEND_API_KEY,MCPSPEND_ENDPOINT
Summary
Query your MCPSpend usage: cost today, top tools, recent sessions, budget projections.
mcpspend vs similar servers
| Server | Stars | Type | API key | Runtime |
|---|---|---|---|---|
| mcpspend | 113 | Local | Yes | npm |
| Hex SSH | 565 | Local | No | npm |
| QVeris | 262 | Hosted | Yes | None |
| three.ws Agent Payments | 218 | Local | Yes | npm |
| totem | 122 | Local | Yes | npm |
Questions
It reads 2 environment variables: MCPSPEND_API_KEY, MCPSPEND_ENDPOINT. Set them in your MCP config before starting the server.
Node.js 18+ (runs with npx), plus an MCP client such as Claude Code, Codex, Claude Desktop or Cursor.
mcpspend is a local MCP server distributed as the npm package @mcpspend/mcp-server.
Run: claude mcp add mcpspend -e MCPSPEND_API_KEY=... -e MCPSPEND_ENDPOINT=... -- npx -y @mcpspend/mcp-server
Run: codex mcp add mcpspend --env MCPSPEND_API_KEY=... --env MCPSPEND_ENDPOINT=... -- npx -y @mcpspend/mcp-server
Similar MCP servers
NameStars
- Hex SSHio.github.levnikolaevich/hex-ssh-mcp565
- QVerisio.github.QVerisAI/mcp262
- three.ws Agent Paymentsio.github.nirholas/agentcore-payments-mcp218
- totemio.github.briangaoo/totem122
- totemio.github.thebriangao/totem122
- SAP HANA CLIio.github.SAP-samples/hana-cli113
- agentmapio.github.raymondchins/agentmap49
- alive-analysisio.github.with-geun/alive-analysis41