LocalFree

AI Usage MCP server

MohitBansal321/ai-usage-mcp

Reports real token usage and cost from Claude Code and OpenCode data. Nothing leaves your machine.

1 GitHub stars1,578 npm downloads / month

Install AI Usage in Claude Code

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

Frequently asked questions

What does the AI Usage MCP server do?

Reports real token usage and cost from Claude Code and OpenCode data. Nothing leaves your machine.

Is the AI 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 AI 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 AI Usage to Claude Code?

Run: claude mcp add ai-usage -- npx -y ai-usage-mcp

More ai agents & coding agents MCP servers

View all