Token Diet for Claude Code
com.clawhard/tokendiet
Count tokens exactly for any text and see if it fits a 128K, 200K or 1M context window.
client:Claude Code
transport:streamable-http
tools:1
Install Token Diet in Claude Code
run in your project directory
claude mcp add --transport http tokendiet https://tokendiet.clawhard.com/mcp
Adds it for this project only. Append --scope user to make it available everywhere. Claude Code docs