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
The fastest way to get better output from any AI model. 8 dimensions. 5 frameworks. Pre-flight, not post-hoc.
Score, grade, optimize, and compare LLM prompts before they hit any model. Built on PEEM, RAGAS, MT-Bench, G-Eval, and ROUGE.
Install
Claude Desktop
Add to your config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"pqs": {
"command": "npx",
"args": ["pqs-mcp-server"]
}
}
}Smithery
smithery mcp add onchaintel/pqsTools
score_prompt (Free, no API key required)
Score any prompt before it hits any model. Returns grade A-F, score out of 80, and percentile.
Example output:
{
"pqs_version": "1.0",
"prompt": "analyze this wallet",
"vertical": "crypto",
"score": 16,
"out_of": 80,
"grade": "D",
"upgrade": "Get full dimension breakdown and an optimized prompt at /api/score/full",
"powered_by": "PQS, promptqualityscore.com"
}grade_prompt
Fast grade-only check. Returns just the letter grade (A-F) and total score (0-80) without the full 8-dimension breakdown. The cheapest paid PQS tool, ideal for agent quality gating before sending a prompt to an expensive model.
Pricing: $0.001 USDC via x402 if called directly against /api/pqs-grade, or SaaS-billed per tier if using a PQS API key (the path used by this MCP server).
Use cases:
Pre-flight check inside an agent loop before sending a prompt to an expensive model
Cheap quality gate on user-generated prompts in production
Bulk grading a backlog of prompts to prioritize which ones need optimization
Requires: a PQS API key. Get one at promptqualityscore.com, see pricing at promptqualityscore.com/pricing.
optimize_prompt
Score AND optimize any prompt. Returns full 8-dimension breakdown plus an optimized version.
Requires: a PQS API key. SaaS-billed per tier. Get one at promptqualityscore.com, see pricing at promptqualityscore.com/pricing.
compare_models
Compare Claude vs GPT-4o on the same prompt. Judged by a third model. Returns winner, scores, and recommendation.
Requires: a PQS API key. SaaS-billed per tier. Get one at promptqualityscore.com, see pricing at promptqualityscore.com/pricing.
Verticals
Specify the domain context for more accurate scoring:
software: software engineering, code, debuggingcontent: content creation, copywriting, social mediabusiness: business analysis, finance, strategyeducation: education, research, academic writingscience: scientific research, data analysiscrypto: crypto trading, DeFi, onchain analysisgeneral: general purpose (default)
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, vertical: "software" })
});
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 paid endpoints
Per-call USDC payment on Base is also available via the canonical PQS HTTP API (no API key needed, caller settles on-chain). The MCP tools in this package use the SaaS API-key model. 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
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/OnChainAIIntel/pqs-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server