Skip to content
Grok

ai optimizer for Grok

io.github.shivam-app-developers/ai-optimizer

MCP server that cuts AI coding agent token usage via framework-aware context optimization

client:Grok transport:stdio runtime:npm

Install ai optimizer in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "ai-optimizer": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ai-optimizer/core"
      ],
      "env": {
        "AI_OPTIMIZER_LICENSE": "<AI_OPTIMIZER_LICENSE>",
        "AI_OPTIMIZER_LSP": "<AI_OPTIMIZER_LSP>",
        "AI_OPTIMIZER_TELEMETRY": "<AI_OPTIMIZER_TELEMETRY>"
      }
    }
  }
}

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

ai optimizer in other clients