Back to MCP Servers

Llm Token Tracker

Token usage tracker for OpenAI and Claude APIs with MCP support, real-time session tracking, and accurate pricing for 2025 models

developer-toolsapiaillm

Installation

npx -y llm-token-tracker

Configuration

{
  "mcpServers": {
    "llm-token-tracker": {
      "command": "npx",
      "args": ["-y", "llm-token-tracker"]
    }
  }
}

How to use

  1. Run the installation command above (if needed)
  2. Open your Claude Code settings file (~/.claude/settings.json)
  3. Add the configuration to the mcpServers section
  4. Restart Claude Code to apply changes
View source on GitHub