Token Counter
Server Details
Counts tokens under OpenAI-compatible (tiktoken) encodings, by model or encoding name.
- Status
- Healthy
- Uptime
- 100.0% over the last 24 hours
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
- ChatGPT
- –
- Claude
- –
TDQS
Scored across 1 tool
With only one tool, there is no ambiguity. An agent cannot confuse it with any other tool, as there are no alternatives.
The single tool 'tokens_count' uses a clear snake_case naming pattern. While there is no other tool to compare, the name is self-consistent and follows a reasonable convention.
One tool is exactly appropriate for a focused token counter server. The tool performs a single, well-defined task that matches the server's purpose.
The tool covers the stated domain of counting tokens for OpenAI-compatible encodings. However it explicitly excludes Claude/Anthropic tokenization, which could be a gap for broader LLM token counting needs.
Available Tools
1 tooltokens_countAInspect
Counts tokens under an OpenAI-compatible (tiktoken) encoding. Provide exactly one of model (e.g. "gpt-4o") or encoding ("o200k_base" or "cl100k_base"). No Claude/Anthropic tokenizer.
Inputs: text (required), model, encoding. Returns: tokens, encoding
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Token counting, RAG chunking, truncation, HTML to Markdown and JSON repair
Count tokens exactly for any text and see if it fits a 128K, 200K or 1M context window.
Count tokens (o200k/cl100k), truncate to a budget, chunk text for RAG and estimate LLM cost.
Exact Claude API cost calc with real cache economics, plus a tiktoken-misuse scanner.
Related MCP Servers
- AlicenseAqualityDmaintenanceEstimates Claude API token counts, per-model cost, and prompt-caching break-even without an API key or network.5MIT
- AlicenseBqualityDmaintenanceToken usage tracker for OpenAI and Claude APIs with MCP (Model Context Protocol) support.6184 npm5MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for deterministic, zero-dependency context-window math, enabling token estimation, text truncation, and budget reporting without a tokenizer.MIT
- AlicenseNot gradedqualityDmaintenanceProvides tools to count tokens, estimate API costs, optimize prompts, and compare AI model pricing for multiple LLMs.95 npmMIT
Glama MCP Gateway
Add one secure layer between your agents and this server.