MCP server
Ai Optimizer
MCP server that cuts AI coding agent token usage via framework-aware context optimization
Runs locallyStatus and history
- Pricing
- Open source
- Runs
- Locally
- Version
- 0.1.0
- Listing updated
- 5 days ago
About Ai Optimizer
Ai Optimizer is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Install
Run in a terminal
claude mcp add ai-optimizer --env AI_OPTIMIZER_LICENSE='<AI_OPTIMIZER_LICENSE>' -- npx -y @ai-optimizer/coreAdd to claude_desktop_config.json
{
"mcpServers": {
"ai-optimizer": {
"command": "npx",
"args": [
"-y",
"@ai-optimizer/core"
],
"env": {
"AI_OPTIMIZER_LICENSE": "<AI_OPTIMIZER_LICENSE>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"ai-optimizer": {
"command": "npx",
"args": [
"-y",
"@ai-optimizer/core"
],
"env": {
"AI_OPTIMIZER_LICENSE": "<AI_OPTIMIZER_LICENSE>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"ai-optimizer": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@ai-optimizer/core"
],
"env": {
"AI_OPTIMIZER_LICENSE": "<AI_OPTIMIZER_LICENSE>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"ai-optimizer": {
"command": "npx",
"args": [
"-y",
"@ai-optimizer/core"
],
"env": {
"AI_OPTIMIZER_LICENSE": "<AI_OPTIMIZER_LICENSE>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"ai-optimizer": {
"command": "npx",
"args": [
"-y",
"@ai-optimizer/core"
],
"env": {
"AI_OPTIMIZER_LICENSE": "<AI_OPTIMIZER_LICENSE>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
AI_OPTIMIZER_LICENSEEd25519 JWT license key. Unlocks Pro/Team packs; free tier needs no key.AI_OPTIMIZER_LSPSet to 0 to disable the LSP bridge (optimized_diagnostics).AI_OPTIMIZER_TELEMETRYSet to 'on' to enable anonymous opt-in telemetry. Off by default.
Pricing
Open source
Ai Optimizer FAQ
Is Ai Optimizer free?
Yes. Ai Optimizer is open source, so you can use and self-host it for free.
How do I add Ai Optimizer to Claude Code?
Run this command in your terminal: claude mcp add ai-optimizer --env AI_OPTIMIZER_LICENSE='<AI_OPTIMIZER_LICENSE>' -- npx -y @ai-optimizer/core
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.