# io.github.karmendra8386/agent-cost-mcp-server (pypi · agent-cost-mcp-server)

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

- Trust score: 78/100 (medium)
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-11-05

## Components

- pypi · `agent-cost-mcp-server`: 78/100 (this document), [markdown](https://verifymcp.io/servers/karmendra8386-agent-cost-mcp-server/agent-cost-mcp-server.md), [page](https://verifymcp.io/servers/karmendra8386-agent-cost-mcp-server/agent-cost-mcp-server)

## Channel facts

- Registry: `pypi`
- Package: `agent-cost-mcp-server`
- Version: `0.1.1`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-11-05.

- **Supply Chain Security**: 100/100
  - No malware found by supply-chain analysis.
  - No known CVEs affecting this package version or its production dependencies.
  - Runs hatchling.build at install time, a recognised build step with no custom scripting around it.
  - 0 of 28 dependencies flagged as unhealthy.
- **Provenance & Transparency**: 97/100
  - Source repository is publicly reachable at the declared URL.
  - Cryptographically verified build provenance (signed, bound to karmendra8386/agent-cost-mcp-server).
  - Clear OSI-approved license (Apache-2.0).
  - Actively maintained (last published 2 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 73/100
  - AI-judged instruction clarity (good).
  - Tool/resource definitions use about 585 tokens (~117/item across 5 items; 5 tools + 0 resources), lean.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 0/100
  - Stability not yet verified: not enough scan history yet (needs a 30-day window).
- **Tool Coverage**: 67/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 0% of tool parameters carry a description.
- **Tool Safety**: 100/100
  - No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.
  - We read all 5 captured tool definition(s), and no name or description among them implies an irreversible operation.
  - An AI judge read all 5 captured unit(s) of tool text and found none that tries to manipulate the model reading it.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

**Unverified: 1 category.** A category scored 0 because we could not verify it: a data source with nothing on this package, evidence we could not reach, or a check we could not run. We only credit what we can confirm.

## Install

### How do I install the io.github.karmendra8386/agent-cost-mcp-server server?

io.github.karmendra8386/agent-cost-mcp-server runs locally as a PyPI package, launched with uvx agent-cost-mcp-server. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.

### Claude

```bash
claude mcp add karmendra8386-agent-cost-mcp-server -- uvx agent-cost-mcp-server
```

### Cursor

```json
{
  "mcpServers": {
    "karmendra8386-agent-cost-mcp-server": {
      "command": "uvx",
      "args": [
        "agent-cost-mcp-server"
      ]
    }
  }
}
```

### VS Code

```json
{
  "servers": {
    "karmendra8386-agent-cost-mcp-server": {
      "command": "uvx",
      "args": [
        "agent-cost-mcp-server"
      ]
    }
  }
}
```

### Codex

```bash
codex mcp add karmendra8386-agent-cost-mcp-server -- uvx agent-cost-mcp-server
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "karmendra8386-agent-cost-mcp-server": {
      "type": "local",
      "command": [
        "uvx",
        "agent-cost-mcp-server"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add karmendra8386-agent-cost-mcp-server --command uvx --arg agent-cost-mcp-server
```

### Hermes

```yaml
mcp_servers:
  karmendra8386-agent-cost-mcp-server:
    command: "uvx"
    args: ["agent-cost-mcp-server"]
```

### Netclaw

```json
{
  "McpServers": {
    "karmendra8386-agent-cost-mcp-server": {
      "Transport": "stdio",
      "Command": "uvx",
      "Arguments": [
        "agent-cost-mcp-server"
      ]
    }
  }
}
```

### Vellum

```bash
assistant mcp add karmendra8386-agent-cost-mcp-server -t stdio -c uvx -a agent-cost-mcp-server
```

### Other

```json
{
  "mcpServers": {
    "karmendra8386-agent-cost-mcp-server": {
      "command": "uvx",
      "args": [
        "agent-cost-mcp-server"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-11-03 (score 78)

First indexed and scored.

## MCP tools (5)

### `price_usage` (~116 tokens)

Price a concrete usage record at a model's list rates.

Args:
    model_id: Model identifier from the pricing snapshot, e.g.
        "anthropic.claude-sonnet-4-5" or "openai.gpt-5-mini".
    input_tokens: Input (prompt) tokens consumed.
    output_tokens: Output (completion) tokens consumed.

Returns the input/output/total cost in USD.

Input parameters:

- `input_tokens` (integer, required)
- `model_id` (string, required)
- `output_tokens` (integer, required)

### `estimate_run_cost` (~103 tokens)

Estimate what one run of a workload will cost on a model.

Args:
    model_id: Model to price the workload on.
    input_tokens: Expected input tokens for one run.
    output_tokens: Expected output tokens for one run.

Returns the model's cost plus the same workload priced on every
other model in the snapshot, cheapest first.

Input parameters:

- `input_tokens` (integer, required)
- `model_id` (string, required)
- `output_tokens` (integer, required)

### `compare_models_for_task` (~153 tokens)

Rank models for a task by expected cost per successful task.

Cost per token is the wrong ranking for agent work: a cheap model
that fails half its tasks costs more per success than a pricier,
reliable one. Pass measured success rates (0-1 per model_id) if you
have them; models without a supplied rate are ranked on raw cost.

Args:
    input_tokens: Input tokens for one attempt at the task.
    output_tokens: Output tokens for one attempt at the task.
    success_rates: Optional map of model_id to success rate in (0, 1].

Input parameters:

- `input_tokens` (integer, required)
- `output_tokens` (integer, required)
- `success_rates`

### `record_spend` (~111 tokens)

Record a run's actual token usage in the local per-task ledger.

Args:
    task_id: Caller-chosen identifier grouping one task's runs.
    model_id: Model the run used.
    input_tokens: Actual input tokens consumed.
    output_tokens: Actual output tokens consumed.

Returns the recorded entry, priced at the model's list rates.

Input parameters:

- `input_tokens` (integer, required)
- `model_id` (string, required)
- `output_tokens` (integer, required)
- `task_id` (string, required)

### `budget_status` (~102 tokens)

Check a task's recorded spend against a budget.

Args:
    task_id: The task identifier used with record_spend.
    budget_usd: The budget for the task, in USD.

Returns spent, remaining, call count, and whether the task is over
budget. This server supplies the numbers; enforcing the budget
(stopping a run) belongs to the agent framework.

Input parameters:

- `budget_usd` (number, required)
- `task_id` (string, required)

## Diagnostics

Captured diagnostic sections: Provenance, Install scripts, Dependencies. The full working is on the page: https://verifymcp.io/servers/karmendra8386-agent-cost-mcp-server/agent-cost-mcp-server#diagnostics

## Score history

- 2026-11-05: 78
- 2026-11-04: 78
- 2026-11-03: 78

## Common questions

### What is the io.github.karmendra8386/agent-cost-mcp-server server?

io.github.karmendra8386/agent-cost-mcp-server is listed in the public MCP registry as io.github.karmendra8386/agent-cost-mcp-server. Prices LLM/agent runs per successful task, with spend recording and budget status. This page covers its PyPI package (agent-cost-mcp-server).

### Is the io.github.karmendra8386/agent-cost-mcp-server server safe to use?

io.github.karmendra8386/agent-cost-mcp-server scores 78 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 5 November 2026. Its build provenance is signed and verified. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.

### What tools does the io.github.karmendra8386/agent-cost-mcp-server server expose?

io.github.karmendra8386/agent-cost-mcp-server exposes 5 tools: price_usage, estimate_run_cost, compare_models_for_task, record_spend, budget_status. Their descriptions and schemas cost roughly 585 tokens of context every time the server is loaded.

### Is the io.github.karmendra8386/agent-cost-mcp-server server still maintained?

io.github.karmendra8386/agent-cost-mcp-server is still listed as active in the MCP registry. We last reached this channel on 5 November 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.

### What licence is the io.github.karmendra8386/agent-cost-mcp-server server under?

io.github.karmendra8386/agent-cost-mcp-server declares the Apache-2.0 licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.

## Links

- PyPI project: https://pypi.org/project/agent-cost-mcp-server/
- Socket report: https://socket.dev/pypi/package/agent-cost-mcp-server
- Repository: https://github.com/karmendra8386/agent-cost-mcp-server
- Changelog RSS feed: https://verifymcp.io/servers/karmendra8386-agent-cost-mcp-server/agent-cost-mcp-server.xml
- Changelog JSON feed: https://verifymcp.io/servers/karmendra8386-agent-cost-mcp-server/agent-cost-mcp-server.json
- HTML version of this page: https://verifymcp.io/servers/karmendra8386-agent-cost-mcp-server/agent-cost-mcp-server
