PQS - Prompt Quality Score
OfficialPQS (Prompt Quality Score) is an MCP server that lets you score, optimize, and compare LLM prompts before sending them to any AI model.
Score any prompt for free (
score_prompt): Get a quality grade (A–F), a score out of 40, and a percentile ranking — no API key or payment required. Supports domain-specific scoring across verticals like software, crypto, education, business, content, science, and general.Optimize prompts (
optimize_prompt): For $0.025 USDC, receive a full 8-dimension quality breakdown (based on PEEM, RAGAS, G-Eval, and MT-Bench frameworks) plus an improved version of your prompt. Requires a free PQS API key.Compare Claude vs GPT-4o (
compare_models): For $0.50 USDC, run a head-to-head comparison judged by a third model, returning a winner, scores, and a recommendation on which model suits that prompt type. Requires a free PQS API key.Use as a quality gate: Block low-quality prompts (grade D or below, < 28/40) before they consume inference spend, ensuring only high-quality prompts reach your LLM.
Available as a GitHub Marketplace action (PQS Check) for integrating prompt quality scoring into GitHub workflows and CI/CD pipelines.
PQS MCP Server
Score prompt quality before it reaches any AI model. An MCP server for PQS.
Score and optimize LLM prompts before they hit any model. Built on PEEM, RAGAS, MT-Bench, G-Eval, and ROUGE.
Install
Claude Desktop (stdio)
Add to your config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"pqs": {
"command": "npx",
"args": ["-y", "pqs-mcp-server"]
}
}
}Remote (HTTP)
Use this when your MCP client supports streamable-HTTP transport (no local npm install required):
{
"mcpServers": {
"pqs": {
"url": "https://promptqualityscore.com/api/mcp"
}
}
}Smithery
smithery mcp add onchaintel/pqsRelated MCP server: aipaygen-mcp
Tools
score_prompt (Free, no API key required)
Returns a 0-80 score, A-F grade, full 8-dimension breakdown (clarity, specificity, context, constraints, output_format, role_definition, examples, cot_structure), and the weakest dimension. Rate-limited per IP: 5/min, 10/day, 100/month.
Low- and mid-band scores also include a structured suggestion field with a message, a next_tool pointer to optimize_prompt, and a subscribe URL the consuming LLM can paraphrase back to the user.
Example output (low-band score, suggestion attached):
{
"pqs_version": "2.0",
"prompt": "analyze this wallet",
"score": 9,
"out_of": 80,
"grade": "F",
"dimensions": {
"clarity": 2,
"specificity": 1,
"context": 1,
"constraints": 1,
"output_format": 1,
"role_definition": 1,
"examples": 1,
"cot_structure": 1
},
"weakest_dimension": "specificity",
"powered_by": "PQS — promptqualityscore.com",
"suggestion": {
"message": "This prompt scored 9/80 (F) — significant room to improve. The optimize_prompt tool rewrites it and shows side-by-side outputs from a frontier model, so you can see the impact. optimize_prompt is part of PQS Pro ($19.99/mo, 1,000 calls/mo). Subscribe at https://promptqualityscore.com/pricing?utm_source=mcp&utm_medium=suggestion_v140&utm_campaign=2026-05-mcp-tools-v140.",
"next_tool": "optimize_prompt",
"subscribe_url": "https://promptqualityscore.com/pricing?utm_source=mcp&utm_medium=suggestion_v140&utm_campaign=2026-05-mcp-tools-v140"
}
}If the per-IP rate limit is hit, the response is a structured rate_limit_exceeded payload with subscribe and account URLs.
optimize_prompt (Pro subscription required)
Rewrites a prompt to score higher and runs both versions through a frontier model so the user can see the before/after output. Returns the optimized prompt, before/after dimension scores (with totals), improvement_pct, and side-by-side sample outputs.
Pro subscription required ($19.99/mo, 1,000 calls/mo, includes batch + A/B comparison). Subscribe at promptqualityscore.com/pricing.
If the API key is missing, invalid, or on the Free tier, the tool returns a structured error pointing the user at the right URL. No silent failures, no inventing keys. Errors emitted:
api_key_required: noapi_keyargument was sentapi_key_invalid: key not recognizedsubscription_required: key is valid but Free tier (subscribe to upgrade)rate_limited: per-minute burst limit reached (Pro is rate-limited per minute, not per month) or temporary upstream capacity issueservice_unavailable: upstream 5xx
Quality Gate Pattern
Use PQS as a pre-inference quality gate:
const score = await fetch("https://promptqualityscore.com/api/score/free", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ prompt: userPrompt })
});
const { score: pqsScore } = await score.json();
if (pqsScore < 56) throw new Error("Prompt quality too low. Improve and retry.");Grade D or below (under 56/80) means the prompt will waste inference spend.
x402 (legacy pay-per-call)
The MCP tools in this package use the SaaS API-key model. A separate x402-native pay-per-call path is available via the canonical PQS HTTP API (no API key, caller settles USDC on Base on-chain). For x402 integration, see the canonical pricing and discovery artifacts at promptqualityscore.com.
Self-hosting
Override the PQS backend URL with the PQS_BASE environment variable:
PQS_BASE=https://your-pqs-host.example.com npx pqs-mcp-serverDefaults to https://promptqualityscore.com.
Built by
OnChainIntel, @OnChainAIIntel promptqualityscore.com
Available Tools
2 toolsoptimize_promptAInspect
Rewrite a prompt to score higher on the PQS rubric, AND show before/after output comparisons so the user can see the impact. Returns the optimized prompt, the original PQS score, the optimized PQS score, and side-by-side sample outputs from a frontier model using both versions.
USE WHEN:
The user got a low score from score_prompt and asks how to improve.
The user explicitly asks to "improve" / "rewrite" / "fix" / "optimize" a prompt they pasted.
The user is dissatisfied with output quality from a previous prompt and asks how to get better results.
score_prompt returned a suggestion to invoke this tool.
DO NOT USE WHEN:
The user just asked for a score (use score_prompt only — don't double up).
The user wants you to write a new prompt from scratch (write it directly).
REQUIRES: A PQS API key from a Pro subscription ($19.99/month, 1,000 calls/mo, includes batch + A/B comparison). If the user has not provided one, the tool returns a clear subscription URL — pass that response to the user verbatim. Do not invent or guess API keys. There is no free trial of this tool; the user must subscribe before the first call.
COST: Counted against your Pro subscription's monthly call quota.
LATENCY: ~6-8 seconds.
Inputs: prompt (required), api_key.
score_promptAInspect
Score a prompt's quality across 8 dimensions BEFORE sending it to an expensive model. Returns a 0-80 score, an A-F grade, the per-dimension breakdown (clarity, specificity, context, constraints, output_format, role_definition, examples, cot_structure), and the weakest dimension.
USE WHEN:
The user is workshopping a prompt and asks "is this good?" / "will this work?" / "should I add more detail?"
The user is about to send a long or expensive prompt to GPT-4, Claude Opus, or any frontier model, especially in a batch or automation context where rework is costly.
The user mentions iterating on a prompt that produced poor output and wants to diagnose what's missing.
The user pastes a prompt and asks for feedback on it.
DO NOT USE WHEN:
The user is asking you to write a prompt for them (write it yourself first, then optionally call score_prompt to verify).
The prompt is conversational chat (this scores task-shaped prompts).
COST: Free, no API key required. Rate-limited per IP: 5/min, 10/day, 100/month. If the user exceeds the limit, the response will include a structured upgrade path with subscribe and account URLs.
LATENCY: ~2 seconds.
Inputs: prompt (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: one scores a prompt, the other optimizes it. Their use cases and prerequisites are well-defined, so an agent cannot confuse them.
Both tool names follow a consistent verb_noun pattern: 'score_prompt' and 'optimize_prompt'. The naming is uniform and predictable.
With only two tools, the set is narrowly scoped to prompt scoring and optimization. While this is appropriate for the domain, slightly more tools (e.g., subscription management or rubric access) could enhance completeness without bloat.
The server covers the core workflow of scoring and optimizing prompts. However, it lacks tools for subscription management, retrieving the rubric, or performing batch operations, which are minor gaps given the stated dependencies and cost structure.
Maintenance
Related MCP Connectors
MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.
Hosted MCP server for LLM cost estimation, model comparison, and budget-aware routing.
Generate contextual prompts and reusable agent skills, evaluate prompts with the 16-dimension Prompt Score, and manage saved work in PromptDrive. Twelve MCP tools also provide authorized access to private Memory for source-grounded answers. Connect over Streamable HTTP using OAuth 2.1 and PKCE. Generation consumes account quota and automatically saves successful results; Memory access follows account permissions and plan limits.
Free, no-key MCP server: token estimates, JSON Schema conversion, MCP configs, tool search.
Related MCP Servers
- AlicenseBqualityDmaintenanceDynamic MCP server — 30+ tools across fact verification, agent memory, Indian NLP, contract risk, security threat modelling, sales call intelligence and more. x402/USDC micropayments on Base.33MIT
- AlicenseNot gradedqualityCmaintenance250+ AI-powered MCP tools: research, write, code, translate, scrape, sentiment, vision, RAG, agent memory, marketplace, trading signals, and more. 15 models across 7 providers. Pay-per-use via API key or x402 USDC micropayments.MIT
- AlicenseBqualityDmaintenanceAn MCP server providing 22 pay-per-call utility tools for AI agents (scrape, validate, embed, store, moderate, notify, convert, prevent loops) without accounts or API keys, using USDC payments via the x402 protocol.1756 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to call 16 small, deterministic, read-only tools over a free, no-auth remote streamable HTTP MCP endpoint, covering business idea scoring, price headroom, hotel OTA commissions, open-source SaaS swaps, ads policy notice risk, App Store 4.2 prechecks, and Japan trip planning. Each tool is also exposed as a plain JSON API with OpenAPI docs.MIT