In short: add https://fiscallm.com/api/mcp to your AI assistant as a remote MCP server. It can then answer questions like "what would this feature cost on Claude Haiku instead of GPT-5 mini?" from a real price table, and, with your app's key, "which users cost me more than they pay?"
Claude Code:
claude mcp add --transport http fiscallm https://fiscallm.com/api/mcpCursor (.cursor/mcp.json):
{
"mcpServers": {
"fiscallm": { "url": "https://fiscallm.com/api/mcp" }
}
}VS Code (.vscode/mcp.json):
{
"servers": {
"fiscallm": { "type": "http", "url": "https://fiscallm.com/api/mcp" }
}
}In other clients, add a custom or remote MCP server with the URL https://fiscallm.com/api/mcp. The transport is Streamable HTTP and the server keeps no session.
| Tool | What it answers |
|---|---|
list_llm_prices | Current list prices of OpenAI, Anthropic and Google models, filtered by provider or name. |
get_llm_price | One model's price, with its long-context rate and any announced change. |
estimate_llm_cost | USD cost of a call from its token counts, and the total for a number of calls. |
compare_llm_costs | The same call priced on several models, cheapest first. |
subscription_break_even | How many messages a month a subscriber can send before AI cost uses up what they pay, after store or payment fees. |
fiscallm_setup_guide | How to send usage (OpenTelemetry, LiteLLM, SDK or HTTP), connect revenue and read margins back. |
Things to ask once it is connected:
These read the same numbers as the dashboard. Send your app's ingest key as a header; keep it in an environment variable, not in a file you commit.
claude mcp add --transport http fiscallm https://fiscallm.com/api/mcp \
--header "Authorization: Bearer $FISCALLM_KEY"| Tool | What it answers |
|---|---|
get_margin_overview | AI cost, revenue, margin, AI's share of revenue and the daily series over a period. |
list_users_by_margin | Each user's AI cost, revenue and margin, the ones losing the most money first. |
get_plan_margins | AI cost, revenue and margin of each plan or product. |
get_cost_breakdown | AI cost split by model and by feature. |
Things to ask:
No data yet? Create an app and send usage with OpenTelemetry, LiteLLM, the Vercel AI SDK or the SDK.
Not using MCP? The price tools are also a free JSON API, and the margin tools are the read API. Both are described in openapi.json.
POST https://fiscallm.com/api/mcp, JSON-RPC, one message per request./api/mcp.The price and cost tools are free and need no account or key. The margin tools read your own app's data, so they need that app's key.
No. Every tool is read-only.
From FiscaLLM's open-source price table, checked against the OpenAI, Anthropic and Google pricing pages. Each answer includes the date the table was last checked.
Any client that supports remote MCP servers over Streamable HTTP, including Claude Code, Claude, Cursor and VS Code. There is nothing to install or run locally.
Only the arguments a tool is called with, such as a model name and token counts. FiscaLLM never stores prompts or responses from your app.