Integrations

FiscaLLM MCP server: LLM prices and AI margins for agents

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?"

Connect

Claude Code:

claude mcp add --transport http fiscallm https://fiscallm.com/api/mcp

Cursor (.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.

Tools that need no key

ToolWhat it answers
list_llm_pricesCurrent list prices of OpenAI, Anthropic and Google models, filtered by provider or name.
get_llm_priceOne model's price, with its long-context rate and any announced change.
estimate_llm_costUSD cost of a call from its token counts, and the total for a number of calls.
compare_llm_costsThe same call priced on several models, cheapest first.
subscription_break_evenHow many messages a month a subscriber can send before AI cost uses up what they pay, after store or payment fees.
fiscallm_setup_guideHow to send usage (OpenTelemetry, LiteLLM, SDK or HTTP), connect revenue and read margins back.

Things to ask once it is connected:

Tools for your own app

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"
ToolWhat it answers
get_margin_overviewAI cost, revenue, margin, AI's share of revenue and the daily series over a period.
list_users_by_marginEach user's AI cost, revenue and margin, the ones losing the most money first.
get_plan_marginsAI cost, revenue and margin of each plan or product.
get_cost_breakdownAI 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.

The same data over plain HTTP

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.

Details

Questions

Is the MCP server free? Do I need an account?

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.

Can the server change anything in my account?

No. Every tool is read-only.

Where do the prices come from, and how fresh are they?

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.

Which clients work?

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.

Does the server see my prompts?

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.