Compare · Portkey

MCPSpend vs. Portkey

Portkey is an excellent AI gateway — it sits in front of OpenAI / Anthropic / 200+ providers and adds smart caching, retry, model fallback, and guardrails. It tracks every LLM request that flows through it. MCPSpend operates at a different layer: it sees every MCP tool call your agent makes — including agents in closed IDEs (Cursor, Claude Desktop) where you can't route SDK traffic through a gateway.

DimensionMCPSpendPortkey
Product categoryAI cost observability (MCP-native)AI gateway: smart routing, caching, fallback, guardrails in front of LLM providers
Primary unit trackedMCP tool call (server + tool + cost + latency)LLM request through the gateway
Install pathOne CLI command — auto-detects Cursor, Claude Desktop, Windsurf, VS Code, Claude CodeChange SDK BASE_URL to Portkey gateway, add API key header — code change required
MCP tool call visibilityNative — every tool call decoded automaticallyNot native — your code has to send the events; tools that bypass the gateway are invisible
Per-MCP-server cost breakdownBuilt-inNot modelled — you build it with custom metadata
Works in closed IDEs (Cursor, Claude Desktop)Yes — config-only wrap, no code changeNo — you cannot intercept the SDK call inside the IDE
Dollar budget + alerts$ budget at 50/80/100% via email + SlackBudget alerts on LLM spend, configurable per workspace
Caching / routing / fallback between modelsNot in scopeCore feature — semantic caching, retry policies, model fallback
Self-hosted coreProxy + MCP server MIT on npmOpen-source gateway available; managed cloud is the default
Free tier25,000 tool calls / month foreverFree tier with capped requests, then usage-based
Paid entry point$29 / month (Pro)Usage-based after free tier

Choose MCPSpend if…

  • ✓ Your agents live in Cursor, Claude Desktop, Windsurf, or VS Code
  • ✓ You want MCP-server-level cost attribution out of the box
  • ✓ You don't want to introduce a gateway between your code and OpenAI
  • ✓ Per-project budget alerts are a must-have

Choose Portkey if…

  • ✓ You want semantic caching, retry policies, or automatic model fallback
  • ✓ You build your own LLM app and control the SDK calls
  • ✓ You need a unified gateway across 200+ LLM providers
  • ✓ Guardrails / PII filtering at the gateway layer matters to you

They're complementary.

Portkey is great for the LLM-request layer. MCPSpend covers the MCP tool layer underneath. Teams that run both get a complete picture of where their AI dollars go.