mcp-savings

pichu2707/mcp-savings
★ 0 stars TypeScript AI/LLM Updated 2d ago
Measure what your MCP servers actually cost: per-server tool-schema weight in bytes and tokens, for AI coding agents.
View on GitHub → 🔍 Audit Wallet Slippage →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "mcp-savings": {
      "command": "npx",
      "args": [
        "-y",
        "pichu2707/mcp-savings"
      ]
    }
  }
}

README Excerpt

Measures the token cost/savings of MCP servers in AI coding agents. - **Token usage is real and measured.** It comes straight from the model provider's own usage accounting, forwarded by the host (e.g. OpenCode's `AssistantMessage.tokens`). Nothing here estimates or guesses tokens. - **Tool "schema weight" is a local, non-tokenized measure.** It's