Repository avatar
AI Tools
v1.0.0
active

fireborn-bill-check

io.github.6hn68/fireborn-bill-check

Price one AI request and check it against a budget, at list prices.

Documentation

Fireborn Bill Check — demo MCP server

A demo MCP server that lets an AI assistant price one request and check it against a budget, using Fireborn's own verified model price table (prices.json, the same file the Fireborn Guard plugin ships).

This is a portfolio demo for an MCP build + hosting service. It is not a paid product, and it is not the Fireborn product itself.

Tools

ToolWhat it does
estimate_costPrice one request from token counts (model, input/output/cache tokens) in USD at list prices
check_budgetCompare that estimate with a USD cap — over/under and headroom
list_modelsList models with known list prices (USD per million tokens)

No network, no API keys, no uploads. Pure Python standard library.

Run it

python3 server.py

It speaks MCP over stdio (newline-delimited JSON-RPC 2.0). Test it:

python3 test_server.py
# ALL PASS: init + tools/list + estimate $3.00 + over-budget -1.00 + list_models(26 models) + ping

Example: 1M input + 100k output tokens on claude-sonnet-5 ($2/$10) = $3.00.

Run it as a container

docker run -i ghcr.io/6hn68/fireborn-mcp-demo:1.0.0

Use it from an MCP client (stdio)

{
  "mcpServers": {
    "fireborn-bill-check": {
      "command": "python3",
      "args": ["/path/to/fireborn-mcp-demo/server.py"]
    }
  }
}

Registry

Published to the official MCP Registry as io.github.6hn68/fireborn-bill-check (OCI image on GHCR, see server.json). Publishing is automated by .github/workflows/publish.yml (build + push image, then mcp-publisher publish with GitHub Actions OIDC — no human step).

Why this exists

A working demo is the only portfolio an MCP build service has. If you run a SaaS with a public API and no official MCP server, the demo above is the shape of the work: one API → a few tools → hosted, maintained, and listed where AI assistants can find it.

OCI
ghcr.io/6hn68/fireborn-mcp-demo:1.0.0
Install Command
docker pull ghcr.io/6hn68/fireborn-mcp-demo:1.0.0:undefined