Skip to content
Grok

Token Diet for Grok

io.github.evozim/token-diet

LLM token optimization gateway implementing semantic pruning.

client:Grok transport:sse

Install Token Diet in Grok

.mcp.json (in your project root)

{
  "mcpServers": {
    "token-diet": {
      "type": "sse",
      "url": "https://token-diet-mcp.vercel.app/api/mcp"
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

Token Diet in other clients