[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-81295":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":33,"readmeContent":34,"aiSummary":35,"trendingCount":15,"starSnapshotCount":15,"syncStatus":16,"lastSyncTime":36,"discoverSource":37},81295,"MCPSpend","andreisirbu91-lab\u002FMCPSpend","andreisirbu91-lab","Real-time cost observability for Model Context Protocol (MCP) tool calls. Wraps any MCP server, attributes spend per tool\u002Fproject\u002Fcustomer. Free tier 25K calls\u002Fmo. EU-hosted","https:\u002F\u002Fmcpspend.com",null,"TypeScript",66,1,16,0,2,21,44,"MIT License",false,"main",[23,24,25,26,27,28,29,30,31,32],"ai-agents","ai-observability","claude-desktop","cost-tracking","cursor","llm-cost","mcp","model-context-protocol","typescript","windsurf","2026-06-12 04:01:32","# MCPSpend\n\n> **Know what your AI agents really cost.** Real-time cost tracking for every MCP tool call across Cursor, Claude Desktop, Windsurf, and VS Code.\n\n[![smithery badge](https:\u002F\u002Fsmithery.ai\u002Fbadge\u002Fandreisirbu91-lab\u002Fmcpspend)](https:\u002F\u002Fsmithery.ai\u002Fservers\u002Fandreisirbu91-lab\u002Fmcpspend)\n[![npm version](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002F@mcpspend\u002Fproxy.svg)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@mcpspend\u002Fproxy)\n[![Open VSX](https:\u002F\u002Fimg.shields.io\u002Fopen-vsx\u002Fv\u002FMcpSpend\u002Fmcpspend-vscode)](https:\u002F\u002Fopen-vsx.org\u002Fextension\u002FMcpSpend\u002Fmcpspend-vscode)\n[![license](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-blue.svg)](LICENSE)\n[![MCPSpend MCP server](https:\u002F\u002Fglama.ai\u002Fmcp\u002Fservers\u002Fandreisirbu91-lab\u002FMCPSpend\u002Fbadges\u002Fscore.svg)](https:\u002F\u002Fglama.ai\u002Fmcp\u002Fservers\u002Fandreisirbu91-lab\u002FMCPSpend)\n\n**[mcpspend.com](https:\u002F\u002Fmcpspend.com)** · **[Smithery](https:\u002F\u002Fsmithery.ai\u002Fservers\u002Fandreisirbu91-lab\u002Fmcpspend)** · **[npm](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@mcpspend\u002Fproxy)** · **[Open VSX](https:\u002F\u002Fopen-vsx.org\u002Fextension\u002FMcpSpend\u002Fmcpspend-vscode)** · **[Glama](https:\u002F\u002Fglama.ai\u002Fmcp\u002Fservers\u002Fandreisirbu91-lab\u002FMCPSpend)**\n\n\u003Ca href=\"https:\u002F\u002Fglama.ai\u002Fmcp\u002Fservers\u002Fandreisirbu91-lab\u002FMCPSpend\">\n  \u003Cimg width=\"380\" height=\"200\" src=\"https:\u002F\u002Fglama.ai\u002Fmcp\u002Fservers\u002Fandreisirbu91-lab\u002FMCPSpend\u002Fbadges\u002Fcard.svg\" alt=\"MCPSpend MCP server card\" \u002F>\n\u003C\u002Fa>\n\n---\n\n## One-command install\n\n```sh\nnpx --yes @mcpspend\u002Fproxy@latest init --key mcps_live_xxx\n```\n\nAuto-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](https:\u002F\u002Fmcpspend.com).\n\nFree tier: **25,000 tool calls\u002Fmonth**, no credit card.\n\n## What's in this monorepo\n\n| Package | What it is |\n|---|---|\n| [`packages\u002Fproxy`](packages\u002Fproxy) | `@mcpspend\u002Fproxy` — the stdio observability proxy + `wrap-http` bridge for remote MCP servers. **Published on npm.** |\n| [`packages\u002Fmcp-server`](packages\u002Fmcp-server) | `@mcpspend\u002Fmcp-server` — query your MCPSpend usage from inside any MCP client. **Published on npm + Smithery.** |\n| [`packages\u002Fvscode-extension`](packages\u002Fvscode-extension) | `mcpspend-vscode` — IDE extension for Cursor, Windsurf, and VS Code. **Published on Open VSX.** |\n| [`apps\u002Fapi`](apps\u002Fapi) | Express + Prisma + Postgres + BullMQ. The ingest endpoint, billing, and the new `\u002Fapi\u002Fmcp` HTTP MCP server. |\n| [`apps\u002Fdashboard`](apps\u002Fdashboard) | Next.js dashboard at [mcpspend.com](https:\u002F\u002Fmcpspend.com). |\n\n## Three ways to query your usage\n\n| Use case | How |\n|---|---|\n| **Web dashboard** | [mcpspend.com\u002Fdashboard](https:\u002F\u002Fmcpspend.com\u002Fdashboard) — overview, top tools, sessions, CSV export. |\n| **From any MCP client (stdio)** | Add `@mcpspend\u002Fmcp-server` to your client config — agent gains tools like `get_today_cost`, `list_top_tools`. |\n| **From any MCP client (HTTP)** | Point your client at `https:\u002F\u002Fapi.mcpspend.com\u002Fapi\u002Fmcp` with `Authorization: Bearer mcps_live_…`. |\n\n## Pricing\n\n| Plan | Calls\u002Fmonth | Monthly | Yearly |\n|---|---|---|---|\n| Free | 25,000 | $0 | $0 |\n| Pro | 1,000,000 | $29 | $290 (2 months free) |\n| Team | 10,000,000 | $99 | $990 |\n| Enterprise | unlimited | $499 | $4,990 |\n\nEvery paid plan: 30–90 day retention, CSV\u002FSlack export, budget alerts, role-based access.\n\n## Privacy\n\nThe proxy reports: tool name, server name, model, latency, success, approximate input\u002Foutput sizes (tokens, derived from JSON length). It **does not** send the actual tool arguments or response bodies to MCPSpend. See [Privacy Policy](https:\u002F\u002Fmcpspend.com\u002Fprivacy) for the full sub-processor list (Stripe + Resend + Hostinger, all EU-hosted) and your GDPR rights.\n\n## Security\n\n> **For automated scanners flagging this repo:** the proxy uses `child_process.spawn` to 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 \u002F Cursor \u002F Windsurf \u002F VS Code), never from network input. No RCE path, no privilege escalation, no arbitrary command execution. Full threat model in [`SECURITY.md`](SECURITY.md).\n\n- **API keys** stored as SHA-256 hashes (never plaintext on the server)\n- **Passwords** bcrypt cost 12\n- **Secrets at rest** AES-256-GCM (`APP_ENCRYPTION_KEY`)\n- **Transport** HTTPS only, HSTS enabled, helmet CSP headers\n- **No tool arguments or responses** ever leave the user's machine\n- **Per-tenant isolation** every query scopes by `organizationId`\n- **GDPR Art. 15 \u002F 17 \u002F 20** self-serve at `mcpspend.com\u002Fdashboard\u002Faccount\u002Fprivacy`\n- **EU-hosted** (Hostinger EU region)\n- **SOC 2 Type I** in progress with Vanta (Q4 2026)\n- **DPA** available for Enterprise customers\n\nReport vulnerabilities: **security@mcpspend.com** · Machine-readable disclosure: \u003Chttps:\u002F\u002Fmcpspend.com\u002F.well-known\u002Fsecurity.txt> · Full policy: [`SECURITY.md`](SECURITY.md) · Live posture: \u003Chttps:\u002F\u002Fmcpspend.com\u002Fsecurity>\n\n## Support the project\n\nIf MCPSpend saves you money or you just want to keep the proxy MIT and the free\ntier alive, you can sponsor any amount via Stripe — no account required:\n\n**[💖 buy.stripe.com\u002F00w8wPbUxe1qgK36CRbbG06](https:\u002F\u002Fbuy.stripe.com\u002F00w8wPbUxe1qgK36CRbbG06)**\n\nEvery dollar goes back into hosting, security audits, and shipping features.\n\n## License\n\nMIT. Use it, fork it, run it self-hosted.\n\n© NewRzs SRL · CUI RO48756557 · Bucharest, Romania · [support@mcpspend.com](mailto:support@mcpspend.com)\n","MCPSpend 是一个为 Model Context Protocol (MCP) 工具调用提供实时成本可见性的项目。它能够包裹任何 MCP 服务器，并按工具、项目或客户归因成本。主要使用 TypeScript 开发，支持包括 Cursor、Claude Desktop 和 Windsurf 在内的多种平台，同时提供了 VS Code 扩展以增强开发环境中的集成度。该项目的核心功能在于其实时跟踪和成本分配能力，这使得用户可以清晰地了解其 AI 代理的实际花费情况。适用于需要监控和管理 AI 模型运行成本的场景，如企业级应用开发、研究机构等。此外，MCPSpend 提供了一个免费层级，每月可处理高达 25,000 次工具调用，无需信用卡信息，且服务由欧盟托管。","2026-06-11 04:04:32","CREATED_QUERY"]