Skip to content
MCP server

MCP Cost Optimizer

Local-first LLM cost analysis and model-switch savings estimates for AI agents.

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
0.1.2
Listing updated
5 days ago

About MCP Cost Optimizer

MCP Cost 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 mcp-cost-optimizer -- npx -y mcp-cost-optimizer

Add to claude_desktop_config.json

{
  "mcpServers": {
    "mcp-cost-optimizer": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-cost-optimizer"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "mcp-cost-optimizer": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-cost-optimizer"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "mcp-cost-optimizer": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-cost-optimizer"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-cost-optimizer": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-cost-optimizer"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mcp-cost-optimizer": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-cost-optimizer"
      ]
    }
  }
}

Pricing

Open source

MCP Cost Optimizer FAQ

Is MCP Cost Optimizer free?

Yes. MCP Cost Optimizer is open source, so you can use and self-host it for free.

How do I add MCP Cost Optimizer to Claude Code?

Run this command in your terminal: claude mcp add mcp-cost-optimizer -- npx -y mcp-cost-optimizer