Skip to content
Cursor

ai optimizer for Cursor

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

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

client:Cursor transport:stdio runtime:npm

Install ai optimizer in Cursor

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

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>"
      }
    }
  }
}

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

ai optimizer in other clients