ChatGPT MCP cost tracking

OpenAI now supports MCP through Custom GPT actions, Agents SDK, and several third-party clients. Same problem as Claude users: agentic loops call MCP tools dozens of times per turn, and OpenAI bills you per token. Here's how to measure it.

OpenAI pricing — relevant tiers

Per million tokens (public OpenAI rates as of 2026):

A 15K-token tool response under GPT-4o costs $0.15. Under o3 it's $0.90. The model choice matters as much as the tool choice.

Which clients support MCP + OpenAI

Today, the practical entry points for OpenAI + MCP are:

Where MCPSpend fits

We're a transport-layer proxy. We don't know — and don't care — which LLM provider you use. We measure every MCP tool call regardless, and use provider-published rates to compute cost. As of v0.7.1 the cost engine knows: claude-opus-4-7, claude-sonnet-4-6, claude-haiku-4-5, gpt-4o, gpt-4o-mini, o3, o3-mini, Gemini 2.0 Pro/Flash, Grok 2, DeepSeek Chat/Reasoner, Mistral Large/Small, Llama 3.1 405B/70B/8B, Llama 3.3 70B — and falls back to a Sonnet-equivalent baseline for anything else.

Full live list is at /api/public/pricing-models — public, no auth, refreshed monthly.

Install

npx --yes @mcpspend/proxy@latest init --key mcps_live_xxx

Auto-detects Cline, Continue.dev, Goose, Cursor, Windsurf, VS Code, Claude Desktop, and Claude Code. Wraps every MCP server it finds. The OpenAI Agents SDK isn't auto-detected (no canonical config path) — you wrap individual servers manually:

from openai import OpenAI
from agents.mcp import StdioServer

server = StdioServer(
    command="npx",
    args=["-y", "@mcpspend/proxy@latest", "wrap",
          "--key", "mcps_live_xxx",
          "--", "npx", "-y", "@modelcontextprotocol/server-filesystem", "/data"],
)

Same pattern as a stdio wrap for any other client — your MCP server runs inside our subprocess.

Get a key

Free tier: 25,000 tool calls/month — covers a single heavy ChatGPT agent setup. No card. Sign up →

Track your own MCP spend — free

One command wraps every MCP client on your machine. 25,000 tool calls/month on the free tier. No card.

Related guides