LLM Usage MCP server
io.github.zhaoyue722/llm-usage-mcp·v0.1.3·4 starsLocal-first, multi-provider tool that captures LLM API spend and exposes it to coding agents via MCP
4 stars27 downloads/wk
Reviews
Write oneNobody has reviewed LLM Usage yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
LLM Usage tools (7)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
compare_providersProject the cost of a hypothetical workload across providers/models.
get_pricingReturn current pricing for one model, one provider, or all models.
list_providersList every provider we know about, with their models and OpenAI-compat flag.
query_spendReturn spending broken down by a chosen axis over a time window.
recommend_providerRecommend the cheapest priced model that fits the workload + budget.
record_usageRecord a single LLM API call with token counts.
usage_summaryReturn a one-shot summary of usage over a named calendar period.
Public scan report
scanner v0.1.9 · 2026-09-24 · same rubric, same numbers if you re-run it
- Code scan39 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 3 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How LLM Usage compares
Against every graded AI and agents MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 92/100
- higher than 90% of 4,460 AI and agents servers
- Tools
- 7
- the typical AI and agents server has 6
- Tools that change things
- 0%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 4
- more than 77% of 2,711 AI and agents servers
- Downloads a week
- 27
- more than 13% of 1,538 AI and agents servers with a package
What its tools let an agent do: 7 read
Install LLM Usage in Claude Code, Cursor or VS Code
claude mcp add llm-usage-mcp -- uvx llm-usage-mcp
What the publisher says
From the LLM Usage repository's README, as published. We do not edit it. Read it on GitHub
<!-- mcp-name: io.github.zhaoyue722/llm-usage-mcp -->
llm-usage-mcp
LLM Usage & Cost Tracker — your local-first spend watchdog
English | 中文
Stop treating your LLM API bills like a scary horror movie you only look at through your fingers at the end of the month. Know what your LLM calls actually cost — across every provider, in one place, on your own machine. Ask your coding agent (MCP) or type a command (CLI).
It's a cost meter, not a router: it tells you what you spent and which provider fits a workload — it never changes your calls. Pairs happily alongside a router or a model-leaderboard tool.
Or straight from the terminal — your week's spend, broken down by provider, and a cross-provider cost comparison before you commit to a model:
Why you'd want this
You're calling LLMs from a handful of providers — Claude, GPT, plus Chinese models like Qwen and DeepSeek. Each one bills in its own dashboard, in its own currency, with its own rules for what a "cached token" costs. So the simplest possible question — how much am I spending, and on what? — turns into four browser logins, looking up exchange rates for RMB to USD, and trying to decipher what a "cached context token discount" actually means in midnight math. Most people just cross their fingers and let the bill be a surprise at the end of the month.
llm-usage-mcp captures every call you make into one local store, costs it correctly per provider at the moment it happens, and hands the answer back two ways:
- Ask your coding agent. It's an MCP server, so Claude Code, Cursor, or any MCP client can answer "how much did I spend on Claude this week?" or "which provider is cheapest for a 10k-in / 2k-out call?" in plain English.
- Or type a command. It's also a CLI — llm-usage spend, llm-usage compare, llm-usage recommend — for when you'd rather not round-trip through an agent.
And it stays out of your way:
- Local-first. No SaaS, no signup, no telemetry. Just a SQLite file at ~/.llm-usage/usage.db. Privacy is a feature, not a setting.
- Multi-provider, Chinese models included. Anthropic, OpenAI, DeepSeek, Qwen — streaming and non-streaming for all four. DeepSeek and Qwen run the same capture path as Anthropic and OpenAI, not a bolted-on afterthought. More providers (Gemini, Bedrock, Moonshot, …) are on the way.
Quickstart
Two minutes from git clone to your first captured call. This part is about capture — getting calls recorded. Reading the data back comes next.
1. Install
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
LLM Usage: common questions
- Is LLM Usage MCP server safe?
- Yes, by our scan: it is graded A (92/100). Read the LLM Usage safety report
- How do I install LLM Usage?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does LLM Usage need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is LLM Usage maintained?
- The last commit was 44 days ago (2026-09-21). The latest release is v0.1.3.
- What can I use instead of LLM Usage?
- Servers from other publishers that do the same job: three.ws Brain MCP server, Serena MCP: the IDE for your agent MCP server and Figma Context MCP server.
- How does LLM Usage compare with other AI and agents MCP servers?
- safety score 92/100 (higher than 90% of 4,460 AI and agents servers); tools 7 (the typical AI and agents server has 6); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to LLM Usage
Same job from other publishers: the closest match first, then the best rated.
- three.ws BrainList LLM providers and run chat completions through the three.ws multi-provider router.not reviewedEstablishedB
- Serena MCP: the IDE for your agentA powerful toolkit for coding, providing semantic retrieval and editing capabilities.not reviewedWidely usedC
- Figma ContextGive your coding agent access to your Figma data. Implement designs in any framework in one-shot.not reviewedWidely usedB
- Basic MemoryLocal-first knowledge management with bi-directional LLM sync via Markdown files.not reviewedWidely usedB
- HOL GuardLocal-first AI agent security evidence and approval workflows through HOL Guard's stdio MCP server.not reviewedEstablishedA