andreisirbu91-lab

Real-time cost observability for Model Context Protocol (MCP) tool calls. Wraps any MCP server, attributes spend per tool/project/customer. Free tier 25K calls/mo. EU-hosted

18
0
100% credibility
Found May 24, 2026 at 20 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
TypeScript
AI Summary

MCPSpend is a real-time cost tracking tool for MCP (Model Context Protocol) tool calls that works with popular AI coding assistants like Cursor, Claude Desktop, Windsurf, and VS Code, offering a monorepo with proxy, server, and VS Code extension packages plus a web dashboard.

Star Growth

See how this repo grew from 20 to 18 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is MCPSpend?

MCPSpend is a real-time cost tracking layer for the Model Context Protocol. It wraps your existing MCP servers and streams every tool call to a hosted dashboard, breaking down spend by tool, project, and customer. The setup is one command: `npx @mcpspend/proxy init --key `, and it auto-detects Claude Desktop, Cursor, Windsurf, and VS Code. Under the hood it uses Express, Prisma, Postgres, and a Redis-backed queue to handle high-volume ingestion. Call attribution, latency tracking, and cost estimation happen automatically.

Why is it gaining traction?

The MCP ecosystem is exploding, and people are starting to ask "wait, how much is my AI actually spending?" MCPSpend answers that before you even think to look. The real-time SSE ticker on the dashboard is the hook—you watch dollars accumulate live. The cost forecasting with day-of-week seasonality actually works (it's not naive linear extrapolation), and the anomaly detection fires Slack alerts when a tool goes rogue at 2am. Budget alerts at 50/80/100% of your cap catch problems before they become invoice shocks. EU hosting matters for GDPR-sensitive shops.

Who should use this?

SaaS teams building on MCP who bill customers per tool usage will want the per-customer labeling. Agencies managing multiple client workspaces need the project scoping. Any developer running Cursor or Windsurf with multiple MCP servers should know their actual cost per session. Teams on the Pro or Team plan get audit logs, CSV export, and role-based access—critical for compliance.

Verdict

MCPSpend solves a real problem in an emerging space, and the implementation is more polished than a 1.0% credibility score suggests—clean architecture, thoughtful security, and actual product-market fit. That said, 18 stars means you are an early adopter. The free tier is generous enough to kick the tires, but treat self-hosting as experimental until the SOC 2 audit lands Q4 2026. Worth evaluating now; treat production usage as a calculated risk.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.