Enterprise DNA
M MCP Servers Developer low

wn01011/llm-token-tracker

by Various

Token usage tracker for OpenAI and Claude APIs with MCP support. Pass accurate API costs to your users.

W

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

How to use

Install

npm install llm-token-tracker

Tools exposed

  • GPT-5
  • GPT-4o
  • GPT-4

Tested with

Claude Desktop, ChatGPT

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
Free 27-page guide

Get the free Developer’s Field Guide

A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.

Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.

No spam. Unsubscribe any time.

Running a business, not writing the code? See the MCP servers picked for operators, and get your first one wired up with us.

Operator picks