Skip to content
Verified official

Token Diet MCP

v1.1.0

com.clawhard/tokendiet

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

transport:streamable-http tools:1

Target client

run in your project directory

claude mcp add --transport http tokendiet https://tokendiet.clawhard.com/mcp

setup guides: Claude Code Claude Desktop Cursor VS Code Zed Windsurf Cline Gemini CLI Grok ChatGPT Claude.ai LangChain

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

tokendiet_count_tokens

tokendiet count tokens

All 1 tools, one page each

1 prompt you invoke yourself

2 resources you attach as context

Mutating and Read-only are read off each tool's name, not its schema — a hint, not a guarantee. Check the server's own documentation before granting access.