agent-cost-mcp-server

v0.1.1
io.github.karmendra8386/agent-cost-mcp-server Checked 3 days ago Published 1 month ago

Prices LLM/agent runs per successful task, with spend recording and budget status.

Values you need

VariableWhat it is
AGENT_COST_LEDGER_PATHoptional Optional path for the local spend-ledger file used by record_spend / budget_status.

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add agent-cost-mcp-server -- uvx agent-cost-mcp-server==0.1.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "agent-cost-mcp-server": {
      "args": [
        "agent-cost-mcp-server==0.1.1"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "agent-cost-mcp-server": {
      "args": [
        "agent-cost-mcp-server==0.1.1"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "agent-cost-mcp-server": {
      "args": [
        "agent-cost-mcp-server==0.1.1"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.agent-cost-mcp-server]
command = "uvx"
args = ["agent-cost-mcp-server==0.1.1"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: price_usage, estimate_run_cost, compare_models_for_task, record_spend, budget_status.
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json