Token Diet is an MCP server published by com.clawhard, hosted at tokendiet.clawhard.com. When last checked on 2026-11-23 it was working: it answers and lists its tools. It declares 1 tool, including tokendiet_count_tokens.
Count tokens exactly for any text and see if it fits a 128K, 200K or 1M context window.
84 connections through 4 shared values. Tap any node.
Use 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. Counts are exact for that tokenizer. Example: {"text": "<the text to measure>"}. Not for shortening text.
| Parameter | Type | Description |
|---|---|---|
| text * | string | The text to count (up to 200,000 characters). |
{
"name": "tokendiet_count_tokens",
"title": "Count the exact tokens in a text",
"description": "Use 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. Counts are exact for that tokenizer. Example: {\"text\": \"<the text to measure>\"}. Not for shortening text.",
"inputSchema": {
"type": "object",
"required": [
"text"
],
"properties": {
"text": {
"type": "string",
"description": "The text to count (up to 200,000 characters)."
}
}
},
"annotations": {
"title": "Count the exact tokens in a text",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
Token Diet: Token Diet shrinks what you paste into AI. It shows what a prompt costs in tokens and cuts the junk in one tap (base64 blobs, giant JSON, repeated log lines, stack-trace noise) so you hit your AI usage limit later. Runs in your browser. Use it when your prompts are too long or you keep hitting an AI usage limit. Tools: tokendiet_count_tokens (Count the exact tokens in a text). Results include a link (open_url) that the user can open to see the same result on the website.
Names, descriptions and schemas were written by the server and are shown as data.
Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators.