wn01011/llm-token-tracker
by Various
Token usage tracker for OpenAI and Claude APIs with MCP support. Pass accurate API costs to your users.
MCP
wn01011/llm-token-tracker
Added 1 June 2026
Overview
A TypeScript library that tracks token usage for OpenAI and Claude API calls. It integrates with the Model Context Protocol (MCP) to pass accurate cost data to end users.
Best for
Best for
Developers who need basic, accurate token cost tracking for OpenAI and Claude with MCP support
Use cases
- Monitor token consumption across LLM API calls
- Calculate real-time cost for user billing
- Integrate token tracking into MCP-compatible workflows
Notes
A TypeScript library that tracks token usage for OpenAI and Claude API calls. It integrates with the Model Context Protocol (MCP) to pass accurate cost data to end users.
3 stars on GitHub. Last updated 2025-11-17. Licensed MIT.
Use cases
- Monitor token consumption across LLM API calls
- Calculate real-time cost for user billing
- Integrate token tracking into MCP-compatible workflows
Pros
- Lightweight with no unnecessary dependencies
- Supports both OpenAI and Claude APIs
- Simple to add to existing projects
Cons
- Limited to two providers with no planned expansion
- Low community adoption may mean sparse documentation
- Lacks advanced analytics or visualization features
Indexed from awesome-mcp-servers-punkpeye and enriched against its public facts.
Pros
- Lightweight with no unnecessary dependencies
- Supports both OpenAI and Claude APIs
- Simple to add to existing projects
Cons
- Limited to two providers with no planned expansion
- Low community adoption may mean sparse documentation
- Lacks advanced analytics or visualization features
Pairs with
Other entries in the index that connect to this one. Click through to see the chain.