Skip to content
Cursor

Token Diet for Cursor

com.clawhard/tokendiet

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

client:Cursor transport:streamable-http tools:1

Install Token Diet in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

{
  "mcpServers": {
    "tokendiet": {
      "url": "https://tokendiet.clawhard.com/mcp"
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

What Cursor can do once it is connected

Token Diet in other clients