# io.github.rishiatlan/claude-prompt-optimizer (npm · claude-prompt-optimizer-mcp)

Scores, compiles & optimizes prompts for any LLM. Zero AI calls inside. Freemium.

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

## Components

- npm · `claude-prompt-optimizer-mcp`: 59/100 (this document), [markdown](https://verifymcp.io/servers/rishiatlan-claude-prompt-optimizer/claude-prompt-optimizer-mcp.md), [page](https://verifymcp.io/servers/rishiatlan-claude-prompt-optimizer/claude-prompt-optimizer-mcp)

## Channel facts

- Registry: `npm`
- Package: `claude-prompt-optimizer-mcp`
- Version: `2.2.2`
- 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 (95 of 99), 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 (95 of 99), so this covers what we could see, not the whole tree.
- **Provenance & Transparency**: 19/100
  - Repository check failed: the declared repository URL redirects; it must resolve directly.
  - Provenance check failed: no build-provenance attestation is published.
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 152 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 71/100
  - AI-judged instruction clarity (good).
  - Tool/resource definitions use about 656 tokens (~59/item across 11 items; 11 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 rishiatlan-claude-prompt-optimizer -- npx -y claude-prompt-optimizer-mcp
```

### Codex

```bash
codex mcp add rishiatlan-claude-prompt-optimizer -- npx -y claude-prompt-optimizer-mcp
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "rishiatlan-claude-prompt-optimizer": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "claude-prompt-optimizer-mcp"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add rishiatlan-claude-prompt-optimizer --command npx --arg -y --arg claude-prompt-optimizer-mcp
```

### Hermes

```yaml
mcp_servers:
  rishiatlan-claude-prompt-optimizer:
    command: "npx"
    args: ["-y", "claude-prompt-optimizer-mcp"]
```

### Other

```json
{
  "mcpServers": {
    "rishiatlan-claude-prompt-optimizer": {
      "command": "npx",
      "args": [
        "-y",
        "claude-prompt-optimizer-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 59, +43)

- [security regression] Provenance: unverified → fail
- [security improvement] Known CVEs: unverified → partial
- [security improvement] Install scripts: unverified → pass
- [security improvement] Malware scan: unverified → pass
- [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 → good
- [functional] Licence: MIT

### 2026-07-31 (score 16, −2)

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

### 2026-07-30 (score 18, −22)

- [functional regression] Tool coverage: 100 → unverified
- [functional] First check of Schema quality: unverified

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

First indexed and scored.

## MCP tools (11)

### `optimize_prompt` (~93 tokens)

Analyze a raw prompt, detect ambiguities, compile an optimized version, score quality, and estimate cost across providers. Returns a PreviewPack for review.

Input parameters:

- `context` (string): Optional context: repo info, file contents, preferences
- `raw_prompt` (string, required): The raw user prompt to optimize
- `target` (string): Output target: claude (XML), openai (system/user), generic (markdown)

### `refine_prompt` (~85 tokens)

Refine a prompt by answering blocking questions or providing manual edits. Re-runs analysis and returns updated PreviewPack.

Input parameters:

- `answers` (object): Answers to blocking questions: { question_id: answer }
- `edits` (string): Manual edits or additional context to incorporate
- `session_id` (string, required): Session ID from optimize_prompt
- `target` (string): Change output target

### `approve_prompt` (~36 tokens)

Approve the compiled prompt. Returns the final optimized prompt ready for use.

Input parameters:

- `session_id` (string, required): Session ID from optimize_prompt

### `estimate_cost` (~51 tokens)

Estimate token count and cost across providers for any prompt text. No session needed.

Input parameters:

- `prompt_text` (string, required): The prompt text to estimate cost for
- `target` (string): Target platform for model recommendations

### `compress_context` (~57 tokens)

Compress context (code, docs) by removing irrelevant sections. Returns pruned context with token savings.

Input parameters:

- `context` (string, required): The context text to compress
- `intent` (string, required): What the task is about — used to determine relevance

### `check_prompt` (~54 tokens)

Quick pass/fail check of a prompt. Returns score, top issues, and a suggestion. No compilation, no session.

Input parameters:

- `context` (string): Optional context
- `raw_prompt` (string, required): The prompt to check

### `configure_optimizer` (~143 tokens)

Configure optimizer behavior: mode, threshold, strictness, default target, ephemeral mode, session limits.

Input parameters:

- `auto_compile` (boolean): Auto-compile prompts
- `default_target` (string): Default output target
- `ephemeral_mode` (boolean): Ephemeral mode: sessions in-memory only
- `max_session_dir_mb` (number): Max session directory size in MB
- `max_session_size_kb` (number): Max session size in KB
- `max_sessions` (number): Max session count
- `mode` (string): Optimization mode
- `strictness` (string): Strictness level
- `threshold` (number): Quality threshold (0-100)

### `get_usage` (~22 tokens)

Get current usage count, limits, remaining quota, and tier information.

### `prompt_stats` (~41 tokens)

Get aggregated optimization statistics: total count, average score, top task types, estimated savings.

Input parameters:

- `period` (string): Stats period (Phase A: lifetime only)

### `set_license` (~47 tokens)

Activate a Pro or Power license key. Validates the Ed25519 signature offline and unlocks the corresponding tier.

Input parameters:

- `license_key` (string, required): License key string (starts with po_pro_)

### `license_status` (~27 tokens)

Check current license status, tier, and expiry. Returns purchase link if no license is active.

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/rishiatlan-claude-prompt-optimizer/claude-prompt-optimizer-mcp#diagnostics

## Score history

- 2026-08-03: 59
- 2026-08-02: 59
- 2026-08-01: 16
- 2026-07-31: 16
- 2026-07-30: 18
- 2026-07-28: 40
- 2026-07-27: 40

## Links

- npm package: https://www.npmjs.com/package/claude-prompt-optimizer-mcp
- Socket report: https://socket.dev/npm/package/claude-prompt-optimizer-mcp
- Changelog RSS feed: https://verifymcp.io/servers/rishiatlan-claude-prompt-optimizer/claude-prompt-optimizer-mcp/changelog.xml
- Changelog JSON feed: https://verifymcp.io/servers/rishiatlan-claude-prompt-optimizer/claude-prompt-optimizer-mcp/changelog.json
- HTML version of this page: https://verifymcp.io/servers/rishiatlan-claude-prompt-optimizer/claude-prompt-optimizer-mcp
