Mmcp.market

MCP Cost Optimizer MCP server

by petrovicistefan·io.github.petrovicistefan/mcp-cost-optimizer·v0.1.1

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

A92/100grade A
What users say
No reviews yet
Be the first
Safety scan
A92/100

full report

Adoption
New

0 stars

Reviews

Write one

Nobody has reviewed MCP Cost Optimizer yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

MCP Cost Optimizer tools

No tool declarations could be read from the package source. They show once the server is installed.

Public scan report

scanner v0.1.10 · 2026-10-09 · same rubric, same numbers if you re-run it

no findings
  • Code scan6 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 0 days ago15/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Overall 92/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

Install MCP Cost Optimizer in Claude Code, Cursor or VS Code

Runs npx -y mcp-cost-optimizer on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add mcp-cost-optimizer -- npx -y mcp-cost-optimizer
Add to Cursor

What the publisher says

From the MCP Cost Optimizer repository's README, as published. We do not edit it. Read it on GitHub

MCP Cost Optimizer

Local-first LLM/API cost analysis for AI agents, developers and teams. MIT licensed. Version 0.1.0 MVP.

Install in your AI client

Works with any MCP client over stdio; no account or API key needed for the local server.

Claude Code

claude mcp add cost-optimizer -- npx -y mcp-cost-optimizer

Codex CLI

codex mcp add cost-optimizer -- npx -y mcp-cost-optimizer

Claude Desktop, Cursor, Windsurf, Cline, Gemini CLI — add to the client's MCP config (claudedesktopconfig.json, ~/.cursor/mcp.json, ~/.codeium/windsurf/mcp_config.json, Cline MCP settings, ~/.gemini/settings.json):

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

VS Code / GitHub Copilot — .vscode/mcp.json:

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

Zed — settings.json:

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

Status

Core calculations and CLI tested. MCP SDK integration test is provided but could not be executed in the authoring environment because npm registry access is blocked. Run the full validation below before publishing. Package is not yet published to npm. No lockfile is included; generate and commit one after installing in your environment, then use npm ci in CI.

Quick start from source

Requires Node.js 20+.

npm install --ignore-scripts
npm run check
npm test
node test/mcp.integration.js
node src/index.js analyze examples/usage.jsonl examples/rates.json demo-budget

The CLI and core have no external dependencies. The MCP server uses the official TypeScript SDK v1 and Zod. No compilation is needed.

Configure your MCP host with an absolute path:

{
  "mcpServers": {
    "cost-optimizer": {
      "command": "node",
      "args": ["/absolute/path/mcp-cost-optimizer/src/index.js"]
    }
  }
}

Tools

Ask your agent: “Analyze these normalized usage records with my supplied rates. Identify unknown models and repeated requests, then compare a cheaper model. Explain assumptions and do not change production routing.”

Data contract

record: model, inputTokens, outputTokens, optional cachedInputTokens and requestHash. Input includes cached tokens; counts must be nonnegative safe integers. Usage must be normalized before import. OpenAI-style prompt_tokens and Anthropic cache fields are not accepted directly. Do not blindly map Anthropic input counts: sum ordinary input, cache-read and cache-write tokens first; cache-write pricing needs separate treatment and is unsupported in this MVP.

rates: three-letter currency, optional asOf, and models keyed by exact model name. Each model supplies inputPerMillion, outputPerMillion and optional cachedInputPerMillion. All models share the same supplied currency. Missing cache price falls back to normal input price. Real provider prices and currency conversion are deliberately not bundled; example rates are fictional. Unknown model costs are excluded and the report is marked incomplete; comparisons reject incomplete baselines.

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

MCP Cost Optimizer: common questions

Is MCP Cost Optimizer MCP server safe?
Yes, by our scan: it is graded A (92/100). Read the MCP Cost Optimizer safety report
How do I install MCP Cost Optimizer?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does MCP Cost Optimizer need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is MCP Cost Optimizer maintained?
The last commit was 4 days ago (2026-10-09). The latest release is v0.1.1.
What can I use instead of MCP Cost Optimizer?
Servers from other publishers that do the same job: Basic Memory MCP server, MCP Server for WinDbg Crash Analysis and Agent-Native Chat MCP server. Compare all MCP Cost Optimizer alternatives.

Alternatives to MCP Cost Optimizer

Same job from other publishers: the closest match first, then the best rated.

All MCP Cost Optimizer alternatives →
  • Basic Memory
    Local-first knowledge management with bi-directional LLM sync via Markdown files.
    C
  • MCP Server for WinDbg Crash Analysis
    A Model Context Protocol server for Windows crash dump analysis using WinDbg/CDB
    A
  • Agent-Native Chat
    Minimal chat-first app with durable threads, actions, and the app-agent loop
    A
  • Stata
    Let LLM help you achieve your regression analysis with Stata
    C
  • Agent Recall
    Correction-first agent memory. Precision KPI tracks if agents heed warnings. 5 layers, local-only.
    A

More from petrovicistefan →