Skip to content
Grok

AI Usage for Grok

io.github.mohitbansal321/ai-usage-mcp

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

client:Grok transport:stdio runtime:npm

Install AI Usage in Grok

.mcp.json (in your project root)

{
  "mcpServers": {
    "ai-usage-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ai-usage-mcp"
      ]
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

AI Usage in other clients