The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Tokencost Dev listing page.
Ask your AI assistant "how much does GPT-4o cost?" — get an instant, accurate answer.
Claude Code:
Then ask: "How much would 1M input tokens cost on claude-sonnet-4-5?"
Cursor (.cursor/mcp.json):
No API keys. No accounts. No configuration files. Pricing data is fetched from the LiteLLM community registry and cached locally for 24 hours.
get_model_detailsLook up pricing, context window, and capabilities for any model. Fuzzy matching means "sonnet 4.5" works just as well as "claude-sonnet-4-5-20250514".
calculate_estimateEstimate cost for a given number of input and output tokens.
compare_modelsFind the most cost-effective models matching your requirements.
refresh_pricesForce re-fetch pricing data from the LiteLLM registry (cache is refreshed automatically every 24h).
Full documentation at tokencost.dev
MIT