
Mcpspend MCP Server
by andreisirbu91-labio.github.andreisirbu91-lab/mcpspendv0.2.1
Real-time cost observability for MCP tool calls: a transparent proxy that attributes spend per tool, project and end customer.
context tax
queued
security
queued
cold start
queued
freshness
Maintained39d ago
Install Mcpspend MCP server
Install in Claude Code
claude mcp add mcpspend -e MCPSPEND_API_KEY='<mcpspend-api-key>' -- npx -y @mcpspend/mcp-serverInstall in Cursor
{
"mcpServers": {
"mcpspend": {
"command": "npx",
"args": [
"-y",
"@mcpspend/mcp-server"
],
"env": {
"MCPSPEND_API_KEY": "<mcpspend-api-key>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"mcpspend": {
"command": "npx",
"args": [
"-y",
"@mcpspend/mcp-server"
],
"env": {
"MCPSPEND_API_KEY": "<mcpspend-api-key>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"mcpspend": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@mcpspend/mcp-server"
],
"env": {
"MCPSPEND_API_KEY": "<mcpspend-api-key>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"mcpspend": {
"command": "npx",
"args": [
"-y",
"@mcpspend/mcp-server"
],
"env": {
"MCPSPEND_API_KEY": "<mcpspend-api-key>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| MCPSPEND_API_KEY | — | yes | Your MCPSpend API key. Create one at https://mcpspend.com/dashboard/keys. Starts with mcps_live_ or mcps_test_. Optional — the server boots and lists tools without it; only tool calls require auth. |
| MCPSPEND_ENDPOINT | — | — | Optional. Override the MCPSpend API endpoint. Defaults to https://api.mcpspend.com. Use only if you self-host MCPSpend. |
Freshness
Maintained — last maintenance signal 39d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-08-31 · 39d ago · GitHub
Latest release
2026-05-24 · 5mo ago · GitHub · v1
Package published
no data · npm/PyPI
Registry entry updated
2026-05-25 · 5mo ago · official registry · v0.2.1
FAQ
›How do I install the Mcpspend MCP server in Claude Code?
Run: claude mcp add mcpspend -e MCPSPEND_API_KEY='<mcpspend-api-key>' -- npx -y @mcpspend/mcp-server. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Mcpspend require an API key?
Yes. It expects MCPSPEND_API_KEY, of which 1 is a secret.
›Can I use Mcpspend as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Mcpspend in the official MCP registry?
Yes, as io.github.andreisirbu91-lab/mcpspend.
Alternatives to Mcpspend
Other monitoring & observability MCP servers.