LocalFree

LLM Usage MCP server

zhaoyue722/llm-usage-mcp

Local LLM API cost tracking for Anthropic, OpenAI, Qwen and DeepSeek: SQLite usage ledger, spend queries, provider comparison and CNY to USD conversion.

6 GitHub stars

Install LLM Usage in Claude Code

Claude Code
claude mcp add llm-usage -- uvx llm-usage-mcp
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "llm-usage": {
      "command": "uvx",
      "args": [
        "llm-usage-mcp"
      ]
    }
  }
}

Frequently asked questions

What does the LLM Usage MCP server do?

Local LLM API cost tracking for Anthropic, OpenAI, Qwen and DeepSeek: SQLite usage ledger, spend queries, provider comparison and CNY to USD conversion.

Is the LLM Usage MCP server free?

Yes, most likely. Open source and no paid account or API key is mentioned in the listing. Check the provider for current pricing.

Does LLM Usage run locally or remotely?

Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.

How do I add LLM Usage to Claude Code?

Run: claude mcp add llm-usage -- uvx llm-usage-mcp

More monitoring & observability MCP servers

View all