Skip to content
Grok

TokenSlim MCP — verifiable token reduction for agents for Grok

io.github.kamalmosadegh/tokenslim-mcp

TokenSlim MCP server: audit, compress, trim and compact LLM context with verifiable token savings.

client:Grok transport:stdio runtime:pypi

Install TokenSlim MCP — verifiable token reduction for agents in Grok

.mcp.json (in your project root)

{
  "mcpServers": {
    "tokenslim-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "tokenslim-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

TokenSlim MCP — verifiable token reduction for agents in other clients