1. Conduid
  2. AI
  3. Prompt Optimizer MCP
MCP server · AI

Prompt Optimizer MCP

The prompt linter for LLM applications. Score, analyze, and standardize prompt quality. Open-source MCP server + Node.js API.

52Fair

Scored 22 hours ago · breakdown

About Prompt Optimizer MCP

Prompt Optimizer MCP is an MCP server published by rishiatlan in the AI category: the prompt linter for LLM applications. Score, analyze, and standardize prompt quality. Open-source MCP server + Node.js API. Conduid read 20 tools from its source: approve_prompt, check_prompt, classify_task, compress_context, configure_optimizer, delete_session and 14 more. No package is published for it, so it installs from a source checkout.

The repository has 2 stars and 0 forks, is licensed MIT, and its last commit was on 30 Nov 2026. The latest release is v5.3.4 (18 Jun 2026): Security release: dependency remediation and audit cleanup.\n\n- Refreshed vulnerable root transitive dependencies behind the MCP SDK, including hono, @hono/node-server,… It follows v5.3.2 (6 Mar 2026), and the 5 most recent releases go back to v5.2.1 (4 Mar 2026). It passes 2 of the 3 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include context-compression, freemium, cost-reduction and lint.

Install

From source
git clone https://github.com/rishiatlan/Prompt-Optimizer-MCP

Tools (20)

approve_promptApprove the compiled prompt. Returns the final optimized prompt ready for use.
ParameterTypeDescription
session_id *stringSession ID from optimize_prompt
check_promptQuick pass/fail check of a prompt. Returns score, top issues, and a suggestion. No compilation, no session.
ParameterTypeDescription
contextstringOptional context
raw_prompt *stringThe prompt to check
classify_taskClassify a prompt by task type, reasoning complexity, risk level, and suggested profile. Free — no metering.
ParameterTypeDescription
contextstringOptional context: repo info, file contents, preferences
prompt *stringThe prompt to classify
compress_contextCompress context (code, docs) by removing irrelevant sections. Returns pruned context with token savings.
ParameterTypeDescription
context *stringThe context text to compress
intent *stringWhat the task is about — used to determine relevance
configure_optimizerConfigure optimizer behavior: mode, threshold, strictness, default target, ephemeral mode, session limits. Supports config locking with passphrase protection.
ParameterTypeDescription
audit_logbooleanEnable append-only JSONL audit trail (default: false)
auto_compilebooleanAuto-compile prompts
default_targetstringDefault output/provider target
ephemeral_modebooleanEphemeral mode: sessions in-memory only
lockbooleanLock config — prevents changes until unlocked with the same secret
lock_secretstringPassphrase to lock/unlock config (min 4 chars). Stored as SHA-256 hash only.
max_session_dir_mbnumberMax session directory size in MB
max_session_size_kbnumberMax session size in KB
max_sessionsnumberMax session count
modestringOptimization mode
policy_modestringPolicy enforcement mode (default: advisory)
session_retention_daysnumberAuto-purge sessions older than N days (undefined = no auto-purge)
strictnessstringStrictness level
thresholdnumberQuality threshold (0-100)
unlockbooleanUnlock config — requires the same secret used to lock
delete_sessionDelete a single optimization session by ID. Returns deleted status. Free tool, not metered.
ParameterTypeDescription
session_id *stringSession ID to delete
estimate_costEstimate token count and cost across providers for any prompt text. No session needed.
ParameterTypeDescription
prompt_text *stringThe prompt text to estimate cost for
targetstringTarget platform for model recommendations
export_sessionExport full session details including raw prompt. Free tool, not metered.
ParameterTypeDescription
session_id *stringSession ID to export
get_usageGet current usage count, limits, remaining quota, and tier information.
license_statusCheck current license status, tier, and expiry. Returns purchase link if no license is active.
list_sessionsList all optimization sessions with metadata (no raw prompts). Free tool, not metered.
ParameterTypeDescription
createdAfternumberOnly sessions created after this Unix timestamp
createdBeforenumberOnly sessions created before this Unix timestamp
limitnumberMaximum number of sessions to return (default: 100, max: 100)
optimize_promptAnalyze a raw prompt, detect ambiguities, compile an optimized version, score quality, and estimate cost across providers. Returns a PreviewPack for review.
ParameterTypeDescription
contextstringOptional context: repo info, file contents, preferences
raw_prompt *stringThe raw user prompt to optimize
targetstringOutput/provider target: claude (XML), openai (system/user), google/perplexity/generic (markdown)
pre_flightFull pre-flight analysis: classify task, assess risk, route model, score quality. Returns complete decision bundle. Metered — counts as 1 optimization use.
ParameterTypeDescription
budgetSensitivitystringBudget sensitivity
contextstringOptional context
latencySensitivitystringLatency sensitivity
profilestringOptimization profile
prompt *stringThe prompt to analyze
targetstringOutput/provider target
prompt_statsGet aggregated optimization statistics: total count, average score, top task types, estimated savings.
ParameterTypeDescription
periodstringStats period (Phase A: lifetime only)
prune_toolsScore and rank MCP tools by relevance to a task intent. Optionally prune low-relevance tools to save context tokens.
ParameterTypeDescription
intent *stringThe task description or user intent to score tools against
modestringrank: score and sort all tools. prune: also mark bottom-M tools for removal
prune_countnumberNumber of lowest-scoring tools to prune (only in prune mode, default 5)
tools *arrayTool name
purge_sessionsPurge optimization sessions by age policy or delete all. Safe-by-default: requires explicit parameters. Free tool, not metered.
ParameterTypeDescription
dry_runbooleanPreview what would be deleted without actually deleting
keep_lastnumberAlways protect the N newest sessions
older_than_daysnumberDelete sessions older than N days
purge_allbooleanExplicit opt-in to delete ALL sessions
refine_promptRefine a prompt by answering blocking questions or providing manual edits. Re-runs analysis and returns updated PreviewPack.
ParameterTypeDescription
answersobjectAnswers to blocking questions: { question_id: answer }
editsstringManual edits or additional context to incorporate
session_id *stringSession ID from optimize_prompt
targetstringChange output/provider target
route_modelRoute to the optimal model based on task complexity, risk, budget, and latency preferences. Returns recommendation with decision_path audit trail. Free — no metering.
ParameterTypeDescription
budgetSensitivitystringBudget sensitivity (default: from profile)
complexitystringReasoning complexity (auto-detected if prompt provided)
contextstringOptional context
latencySensitivitystringLatency sensitivity (default: from profile)
profilestringOptimization profile
promptstringRaw prompt text (for auto-classification and research intent detection)
targetstringOutput/provider target for provider preference
taskTypestringTask type (auto-detected if prompt provided)
save_custom_rulesSave custom governance rules to the local rules file (~/.prompt-control-plane/custom-rules.json). Validates all rules against the product schema, writes to disk, and returns the rule-set hash. Rules take effect on the next optimization. Works with any LLM connected to PCP. Open source for every community user.
ParameterTypeDescription
rulesarraySnake_case rule ID — must start with lowercase letter (a-z), then a-z0-9_ chars
set_licenseRead legacy license metadata. No license key is required; all PCP features are available under Apache-2.0.
ParameterTypeDescription
license_key *stringLicense key string (starts with pcp_)

Security checks

  • ✓README presentThe repository's README runs to about 7.0K words.
  • ✓License declaredThe repository declares the MIT license.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

3 checks have not been run yet.

Releases

v5.3.4v5.3.4 · 18 Jun 2026Security release: dependency remediation and audit cleanup.\n\n- Refreshed vulnerable root transitive dependencies behind the MCP SDK, including hono, @hono/node-server, fast-uri, qs, ip-address, and express-rate-limit.\n- Updated the…
v5.3.2v5.3.2 — Deep Audit & Enterprise Console Fix · 6 Mar 2026What Changed Enterprise Console (`admin.html`) Fixed nav structure to match standard pattern (was using `<ul>/<li>` instead of `<div>/<a>`) Corrected audit file path: `audit.jsonl` → `audit.log` (matches actual `AUDIT_FILENAME` in source)…
v5.3.1v5.3.1 — Accuracy & Docs Audit · 6 Mar 2026What's Changed Bug Fixes Honest cost comparison — Fixed savings display that clamped negative values to 0%. When routing to a pricier model (e.g., Claude Sonnet vs GPT-4o baseline), the CLI and MCP now honestly show "X% more expensive"…
v5.3.0v5.3.0 — CI-First · 6 Mar 2026What's New Three features that make PCP integral for CI workflows: 1. GitHub PR Comment Bot Post prompt quality scores directly on pull requests. Add `comment: 'true'` to the action — uses `<!-- pcp-bot -->` marker for idempotent updates…
v5.2.1v5.2.1 — Stability & polish: CI output format, architecture diagram, docs completeness · 4 Mar 2026What's Fixed Patch release addressing 5 findings from the post-launch audit. 🐛 Bug Fix `--format github` confidence was hardcoded `n/a` in all annotations — now reads the real `r.confidence` from each lint result (`low` / `medium` /…

README

The repository's README runs to about 7.0K words. The original in the repository is authoritative.

Read full README
Questions

About Prompt Optimizer MCP

How do I install Prompt Optimizer MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Prompt Optimizer MCP safe to use with an AI agent?

Its trust score is 52 out of 100 (fair). It passes 2 of the 3 static checks Conduid ran on the repository; it does not pass Scoped permissions. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Prompt Optimizer MCP still maintained?

Yes — the latest release is v5.3.4 (18 Jun 2026), and the last commit was yesterday. The repository has 2 stars.

What tools does Prompt Optimizer MCP provide?

Conduid read 20 tools from the source: approve_prompt, check_prompt, classify_task, compress_context, configure_optimizer, delete_session, estimate_cost, export_session and 12 more. 18 of them publish their parameters, listed under Tools above.

What license is Prompt Optimizer MCP released under?

The repository declares the MIT license. That applies to the latest release, v5.3.4, as well.