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.
接入你的智能体
發布者自己的指令。不是 PlugMCP 端點。
用我們的金鑰與日誌託管一份副本。
npx -y @mcpspend/[email protected]Claude Code 沒有本機指令的安裝連結。複製下方指令並在終端機中執行。
MCPSPEND_API_KEY=<secret> MCPSPEND_ENDPOINT=<value> claude mcp add io.github.andreisirbu91-lab-mcpspend -- npx -y @mcpspend/mcp-server@0.2.1在終端機中執行。
{ "mcpServers": { "io.github.andreisirbu91-lab-mcpspend": { "command": "npx", "args": [ "-y", "@mcpspend/[email protected]" ], "env": { "MCPSPEND_API_KEY": "<secret>", "MCPSPEND_ENDPOINT": "<value>" } } }}claude_desktop_config.json
遠端 URL 還是本機指令? 兩種安裝方式的差異
mcpspend.com · Smithery · npm · Open VSX · Glama
npx --yes @mcpspend/proxy@latest init --key mcps_live_xxx
Auto-detects Claude Desktop, Cursor, Windsurf, VS Code (user + workspace), and Claude Code (user + project). Wraps every configured MCP server, leaves a .mcpspend.bak backup, and starts streaming usage to your dashboard at mcpspend.com.
Free tier: 25,000 tool calls/month, no credit card.
Every paid plan: 30–90 day retention, CSV/Slack export, budget alerts, role-based access.
The proxy reports: tool name, server name, model, latency, success, approximate input/output sizes (tokens, derived from JSON length). It does not send the actual tool arguments or response bodies to MCPSpend. See Privacy Policy for the full sub-processor list (Stripe + Resend + Hostinger, all EU-hosted) and your GDPR rights.
For automated scanners flagging this repo: the proxy uses
child_process.spawnto wrap the user's own MCP server — that's the whole point of an observability proxy. The spawn args come from the user's local MCP-client config (Claude Desktop / Cursor / Windsurf / VS Code), never from network input. No RCE path, no privilege escalation, no arbitrary command execution. Full threat model inSECURITY.md.
APP_ENCRYPTION_KEY)organizationIdmcpspend.com/dashboard/account/privacyReport vulnerabilities: [email protected] · Machine-readable disclosure: https://mcpspend.com/.well-known/security.txt · Full policy: SECURITY.md · Live posture: https://mcpspend.com/security
If MCPSpend saves you money or you just want to keep the proxy MIT and the free tier alive, you can sponsor any amount via Stripe — no account required:
Every dollar goes back into hosting, security audits, and shipping features.
MIT. Use it, fork it, run it self-hosted.
© NewRzs SRL · CUI RO48756557 · Bucharest, Romania · [email protected]
Query your MCPSpend usage: cost today, top tools, recent sessions, budget projections.
{ "mcpServers": { "io.github.andreisirbu91-lab-mcpspend": { "command": "npx", "args": [ "-y", "@mcpspend/[email protected]" ], "env": { "MCPSPEND_API_KEY": "<secret>", "MCPSPEND_ENDPOINT": "<value>" } } }}工具
尚無工具清單。遠端伺服器會在首次健康檢查後取得工具清單。
常見問題
在本頁複製適用於 Cursor、Claude Desktop、Claude Code 或 VS Code 的 stdio 設定。它使用發布者的安裝方式,而不是 PlugMCP 代理伺服器。
發布者列出了以下環境變數:MCPSPEND_API_KEY, MCPSPEND_ENDPOINT。
Mcpspend 透過 stdio 在本機執行。
上次檢查時間:2026-11-09。 Query your MCPSpend usage: cost today, top tools, recent sessions, budget projections.