MCP server that cuts AI coding agent token usage via framework-aware context optimization
Connect Runs on your machine
claude mcp add ai-optimizer -e AI_OPTIMIZER_LICENSE=<AI_OPTIMIZER_LICENSE> -e AI_OPTIMIZER_LSP=<AI_OPTIMIZER_LSP> -e AI_OPTIMIZER_TELEMETRY=<AI_OPTIMIZER_TELEMETRY> -- npx -y @ai-optimizer/[email protected]
{
"mcpServers": {
"ai-optimizer": {
"command": "npx",
"args": [
"-y",
"@ai-optimizer/[email protected]"
],
"env": {
"AI_OPTIMIZER_LICENSE": "<AI_OPTIMIZER_LICENSE>",
"AI_OPTIMIZER_LSP": "<AI_OPTIMIZER_LSP>",
"AI_OPTIMIZER_TELEMETRY": "<AI_OPTIMIZER_TELEMETRY>"
}
}
}
}
{
"mcpServers": {
"ai-optimizer": {
"command": "npx",
"args": [
"-y",
"@ai-optimizer/[email protected]"
],
"env": {
"AI_OPTIMIZER_LICENSE": "<AI_OPTIMIZER_LICENSE>",
"AI_OPTIMIZER_LSP": "<AI_OPTIMIZER_LSP>",
"AI_OPTIMIZER_TELEMETRY": "<AI_OPTIMIZER_TELEMETRY>"
}
}
}
}
{
"servers": {
"ai-optimizer": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@ai-optimizer/[email protected]"
],
"env": {
"AI_OPTIMIZER_LICENSE": "<AI_OPTIMIZER_LICENSE>",
"AI_OPTIMIZER_LSP": "<AI_OPTIMIZER_LSP>",
"AI_OPTIMIZER_TELEMETRY": "<AI_OPTIMIZER_TELEMETRY>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
AI_OPTIMIZER_LICENSEOptional, secret | Ed25519 JWT license key. Unlocks Pro/Team packs; free tier needs no key. |
AI_OPTIMIZER_LSPOptional | Set to 0 to disable the LSP bridge (optimized_diagnostics). |
AI_OPTIMIZER_TELEMETRYOptional | Set to 'on' to enable anonymous opt-in telemetry. Off by default. |
Details
| Package | @ai-optimizer/[email protected] (NPM, stdio) |
| First published | 6 Jun 2026 |
| Last updated | 6 Jun 2026 |
| Registry name | io.github.shivam-app-developers/ai-optimizer |
More developer tools servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
