# io.github.waqarulwahab/llm-cost-estimator (npm · llm-cost-estimator-mcp)

Token counting & multi-model LLM cost estimates: GPT-4o, Claude, Gemini, 25+. No API key.

- Trust score: 66/100 (medium)
- Change this week: +20
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-08-03

## Components

- npm · `llm-cost-estimator-mcp`: 66/100 (this document), [markdown](https://verifymcp.io/servers/waqarulwahab-llm-cost-estimator/llm-cost-estimator-mcp.md), [page](https://verifymcp.io/servers/waqarulwahab-llm-cost-estimator/llm-cost-estimator-mcp)

## Channel facts

- Registry: `npm`
- Package: `llm-cost-estimator-mcp`
- Version: `0.3.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-08-03.

- **Supply Chain Security**: 87/100
  - No malware found by supply-chain analysis.
  - Only part of the dependency tree could be resolved (97 of 101), so this covers what we could see, not the whole tree.
  - No install/post-install scripts declared.
  - Only part of the dependency tree could be resolved (97 of 101), so this covers what we could see, not the whole tree.
- **Provenance & Transparency**: 45/100
  - Source repository is publicly reachable at the declared URL.
  - Provenance check failed: no build-provenance attestation is published.
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 42 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 77/100
  - AI-judged instruction clarity (excellent).
  - Tool/resource definitions use about 291 tokens (~97/item across 3 items; 3 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**: 100/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 100% of tool parameters carry a description.
- **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

### Claude

```bash
claude mcp add waqarulwahab-llm-cost-estimator -- npx -y llm-cost-estimator-mcp
```

### Codex

```bash
codex mcp add waqarulwahab-llm-cost-estimator -- npx -y llm-cost-estimator-mcp
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "waqarulwahab-llm-cost-estimator": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "llm-cost-estimator-mcp"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add waqarulwahab-llm-cost-estimator --command npx --arg -y --arg llm-cost-estimator-mcp
```

### Hermes

```yaml
mcp_servers:
  waqarulwahab-llm-cost-estimator:
    command: "npx"
    args: ["-y", "llm-cost-estimator-mcp"]
```

### Other

```json
{
  "mcpServers": {
    "waqarulwahab-llm-cost-estimator": {
      "command": "npx",
      "args": [
        "-y",
        "llm-cost-estimator-mcp"
      ]
    }
  }
}
```

## 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-08-02 (score 66, +46)

- [security regression] Provenance: unverified → fail
- [security improvement] Install scripts: unverified → pass
- [security improvement] Known CVEs: unverified → partial
- [security] Stability: Stability not yet verified: not enough scan history yet (needs a 30-day window).
- [functional regression] Security disclosure: fail → unverified
- [functional improvement] License: unverified → pass
- [functional improvement] Dependency health: unverified → partial
- [functional improvement] Maintenance: unverified → pass
- [functional improvement] MCP protocol: unverified → pass
- [functional improvement] Schema quality: unverified → excellent
- [functional improvement] Tool coverage: unverified → 100
- [functional] Licence: MIT

### 2026-08-01 (score 20, +15)

- [security improvement] Malware scan: unverified → pass

### 2026-07-31 (score 5, −41)

- [functional] We updated how we score, so this day's move reflects our rubric, not a change to the server

### 2026-07-27 (score 46)

First indexed and scored.

## MCP tools (3)

### `estimate_cost` (~178 tokens)

Estimate LLM cost

Count tokens and estimate the cost of a prompt/text across multiple LLM models (GPT-4o, Claude, Gemini, DeepSeek, Mistral, Llama, Grok, and more). OpenAI token counts are exact (tiktoken); other providers are approximations and are flagged. Returns a Markdown comparison table plus structured JSON.

Input parameters:

- `currency` (string): Currency label (default USD; display only).
- `models` (array): Model keys to compare (e.g. gpt-4o, claude-sonnet, gemini-2.5-pro). Omit for a sensible default set. Call list_models to see all keys.
- `outputTokens` (integer): Assumed output/completion tokens used for the total cost (default 500).
- `text` (string, required): The prompt or text to measure.

### `count_tokens` (~72 tokens)

Count tokens

Count the tokens in a text for one model. OpenAI is exact (tiktoken); other providers are approximated via an OpenAI encoding and flagged as estimates.

Input parameters:

- `model` (string): Model key (default gpt-4o). See list_models.
- `text` (string, required): Text to tokenize.

### `list_models` (~41 tokens)

List models

List every available model key with provider, prices (USD per 1M tokens), and context window. Note: prices are representative placeholders — verify with each provider.

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/waqarulwahab-llm-cost-estimator/llm-cost-estimator-mcp#diagnostics

## Score history

- 2026-08-03: 66
- 2026-08-02: 66
- 2026-08-01: 20
- 2026-07-31: 5
- 2026-07-30: 46
- 2026-07-28: 46
- 2026-07-27: 46

## Links

- npm package: https://www.npmjs.com/package/llm-cost-estimator-mcp
- Socket report: https://socket.dev/npm/package/llm-cost-estimator-mcp
- Repository: https://github.com/waqarulwahab/llm-cost-estimator
- Changelog RSS feed: https://verifymcp.io/servers/waqarulwahab-llm-cost-estimator/llm-cost-estimator-mcp/changelog.xml
- Changelog JSON feed: https://verifymcp.io/servers/waqarulwahab-llm-cost-estimator/llm-cost-estimator-mcp/changelog.json
- HTML version of this page: https://verifymcp.io/servers/waqarulwahab-llm-cost-estimator/llm-cost-estimator-mcp
