Submit

Prompt Quality Score

@OnChainAIIntel

PQS is the fastest way to get better output from any AI model. Score any prompt before it hits the model. Get a grade (A-F), score out of 80, percentile, and 8-dimension breakdown across clarity, specificity, context, constraints, output format, role definition, examples, and chain-of-thought structure. Built on PEEM, RAGAS, MT-Bench, G-Eval, and ROUGE frameworks. Pre-flight, not post-hoc. The AI input quality problem is real. PQS solves it. MCP Tools: - score_prompt: Free. Returns grade (A-F), score out of 80, percentile, and full 8-dimension breakdown. No API key needed. - optimize_prompt: $0.025 USDC via x402. Returns a rewritten, higher-scoring version of your prompt with before/after dimension deltas. Requires API key from promptqualityscore.com. HTTP API (x402-native on Base): - /api/score/free: Free. Grade, percentile, and 8-dimension breakdown. No payment required. - /api/score: $0.025 USDC. Single score, pay-per-call. - /api/score/full: $0.125 USDC. Grade, percentile, dimension breakdown, and rewrite. - /api/score/batch: $0.25 USDC. Score multiple prompts in a single call. - /api/preflight: $0.05 USDC. Lightweight pre-flight quality check. Paste a prompt. Get an optimized version. Ship better work. Cheaper than one bad prompt. https://promptqualityscore.com
Overview

smithery badge GitHub Marketplace pqs-mcp-server MCP server

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/pqs

Tools

score_prompt (Free, no API key required)

Returns grade (A-F), score out of 80, and full 8-dimension breakdown across clarity, specificity, context, constraints, output_format, role_definition, examples, and cot_structure.

Example output:

{
  "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",
  "upgrade": "Get top_fixes and a rewritten prompt at /api/v1/optimize for $0.025 USDC via x402 — promptqualityscore.com",
  "powered_by": "PQS — promptqualityscore.com"
}

optimize_prompt

Returns a rewritten, higher-scoring version of your prompt with before/after dimension deltas. $0.025 USDC via x402. Requires API key from promptqualityscore.com.

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 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-server

Defaults to https://promptqualityscore.com.

Built by

OnChainIntel, @OnChainAIIntel promptqualityscore.com

Server Config

{
  "mcpServers": {
    "pqs": {
      "url": "https://promptqualityscore.com/api/mcp"
    },
    "pqs-local": {
      "command": "npx",
      "args": [
        "-y",
        "pqs-mcp-server@latest"
      ]
    }
  }
}
© 2025 MCP.so. All rights reserved.

Build with ShipAny.