Skip to content
Claude Code

Token Counter for Claude Code

com.apished/token-counter

Counts tokens under OpenAI-compatible (tiktoken) encodings, by model or encoding name.

client:Claude Code transport:streamable-http tools:1

Install Token Counter in Claude Code

run in your project directory

claude mcp add --transport http token-counter https://apished.com/mcp/v1/tokens

Adds it for this project only. Append --scope user to make it available everywhere. Claude Code docs

What Claude Code can do once it is connected

Token Counter in other clients