PostHog is a fantastic product-analytics suite — events, funnels, session replay, feature flags, A/B tests. They added an LLM observability module, but it still works the PostHog way: you write instrumentation code that calls posthog.capture('$ai_generation') for every event you care about. MCPSpend is the opposite: zero code change, purpose-built for MCP tool calls, opinionated dashboards out of the box.
| Dimension | MCPSpend | PostHog |
|---|---|---|
| Product category | AI cost observability (MCP-native) | Product analytics suite with an LLM observability module |
| Primary unit tracked | MCP tool call (server + tool + cost + latency) | User event / LLM call (manual instrumentation) |
| Install path | One CLI command — auto-detects Cursor, Claude Desktop, Windsurf, VS Code, Claude Code | Install posthog-js / posthog-python, add capture() calls in your code |
| MCP tool call attribution | Native — every call decoded automatically | Manual — you wrap every tool call yourself with $ai_generation events |
| Per-MCP-server breakdown | Built-in dashboard | Build with Insights + custom properties |
| Dollar budget + alerts | $ budget at 50/80/100% via email + Slack out of the box | Set up via Alerts on cost insight (you compute the cost yourself first) |
| Works in closed IDEs (Cursor, Claude Desktop) | Yes — config-only wrap, no code change in the IDE needed | No — requires you to instrument the agent code yourself |
| Self-hosted core | Proxy + MCP server MIT on npm | PostHog itself is open source and self-hostable |
| Scope | AI agent cost only — focused, opinionated UI | Full analytics stack: events, funnels, session replay, feature flags, A/B tests, LLM module |
| Free tier | 25,000 tool calls / month forever | PostHog Cloud: 1M events + 5K AI generations / month free |
| Paid entry point | $29 / month (Pro) | Usage-based after free tier (each module priced separately) |
| Setup time to first cost number | < 60 seconds (one CLI command) | Hours to days (install SDK, wrap calls, build cost insight, configure alerts) |
They're complementary.
PostHog answers "what are my users doing?". MCPSpend answers "what are my AI agents costing me?". A lot of teams run both — PostHog for product, MCPSpend for AI cost attribution.