Skip to content
Official MCP RegistryListed

Token Diet

Part ofToken DietMCP server

Count tokens exactly for any text and see if it fits a 128K, 200K or 1M context window.

First seen 2 Nov 2026. Evidence as of 4 Nov 2026.

1
Tools
From an anonymous probe
1
Source listings
Each with its own history
3
Recorded changes
Since first seen

Tools

ToolDescriptionBehaviour
tokendiet_count_tokensUse when the user asks how many tokens a text, prompt, log, document or code paste is, whether it fits a context window (128K, 200K, 1M), or how big something is before they send it to an AI. Returns the exact o200k token count (GPT-4o family and later; Claude and Gemini usually within about 15%), plus words, characters and how much of each window it uses. Language models cannot count their own tokens, so call this instead of estimating. Example: {"text": "<the text to measure>"}. Not for shortening text.Read-only

Change history

  1. server instructions changed (+"Results include a link (open_url) that the user can open" +"see the same result on" +"website.")
  2. Description changed (registry)
  3. Listed (registry)
Source listings
SourceListingFirst seenLast seenVersions
Official MCP Registrycom.clawhard/tokendiet2 Nov 20264 Nov 20262