Skip to content
Windsurf

Token Diet for Windsurf

com.clawhard/tokendiet

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

client:Windsurf transport:streamable-http tools:1

Install Token Diet in Windsurf

~/.codeium/windsurf/mcp_config.json · windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json

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

Global only — Windsurf has no per-project MCP config. Refresh Cascade after saving. Windsurf docs

What Windsurf can do once it is connected

Token Diet in other clients