MCP Server & REST API Documentation

Connect coding agents (Claude Code, Cursor, Windsurf, Antigravity) or production scripts directly to live LLM pricing data.

Streamable HTTP MCP Config

Endpoint: https://llm.lhblabs.com/mcp · Exposes 4 live tools: search_llm_models, compare_llm_pricing, estimate_agent_cost, list_recent_price_changes.

{
  "mcpServers": {
    "tokenledger": {
      "url": "https://llm.lhblabs.com/mcp"
    }
  }
}

REST API Endpoints

  • GET /api/v1/health — status, model count, last sync timestamp
  • GET /api/v1/models?q=claude&reasoning=1&sort=value&limit=20
  • GET /api/v1/models/anthropic-claude-fable-5-2 — full specs + 5 cheaper alternatives
  • GET /api/v1/compare?a=anthropic-claude-fable-5-2&b=... — side-by-side comparison
  • POST /api/v1/estimate — monthly cost & cache savings across models
  • GET /api/v1/changelog — latest price cuts & model launches