AI Optimizer runs on your own machine — the client starts it, so there is no endpoint to ping. 41 installs a week from npm. Last commit 6 Jun 2026.
MCP server that cuts AI coding agent token usage via framework-aware context optimization
We read the source, 3 d ago · rules 995398eba69f
What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.
this.proc = spawn(this.config.command, this.config.args, {
Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.
We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.
This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.
claude mcp add ai-optimizer -- npx -y @ai-optimizer/core
{
"mcpServers": {
"ai-optimizer": {
"command": "npx",
"args": [
"-y",
"@ai-optimizer/core"
]
}
}
}
[mcp_servers.ai-optimizer]
command = "npx"
args = ["-y", "@ai-optimizer/core"]
{
"mcpServers": {
"ai-optimizer": {
"command": "npx",
"args": [
"-y",
"@ai-optimizer/core"
]
}
}
}
{
"servers": {
"ai-optimizer": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@ai-optimizer/core"
]
}
}
}
Optional settings from the registry entry, left out of the block above:
AI_OPTIMIZER_LICENSE (Ed25519 JWT license key. Unlocks Pro/Team packs; free tier needs no key), AI_OPTIMIZER_LSP (Set to 0 to disable the LSP bridge (optimized_diagnostics)), AI_OPTIMIZER_TELEMETRY (Set to 'on' to enable anonymous opt-in telemetry. Off by default).
On-demand, local code-context MCP server for AI coding agents with Tree-sitter AST.
Context-aware code retrieval MCP server — ranked, gated results for AI coding agents
MCP server giving AI coding agents version-pinned API context from your OpenAPI specs.
MCP server quality scoring and optimization for the agent economy.
Code knowledge graph over MCP: token-budgeted context for AI coding agents.
Agent reasoning, memory, and token-optimized context for AI applications.
MCP server that gives AI coding agents Roslyn's compiler view of a .NET solution.
AI health, token usage, LLM cost optimization, BYOK vault, and cleanup audits for MCP agents.
Answers built from our own checks of this server.