# pqs-mcp-server MCP server

PQS scores any prompt before the model runs. 8 dimensions. 5 frameworks. Pre-flight, not post-hoc.

## Links
- Registry page: https://www.getdrio.com/mcp/io-github-onchainaiintel-pqs-mcp-server
- Repository: https://github.com/OnChainAIIntel/pqs-mcp-server
- Website: https://promptqualityscore.com

## Install
- Command: `npx -y pqs-mcp-server`
- Endpoint: https://promptqualityscore.com/api/mcp
- Auth: Not captured

## Setup notes
- Package: Npm pqs-mcp-server v1.4.0
- Environment variable: PQS_API_KEY (secret)
- Remote endpoint: https://promptqualityscore.com/api/mcp

## Tools
- score_prompt - 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. Endpoint: https://promptqualityscore.com/api/mcp
- optimize_prompt - 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. Endpoint: https://promptqualityscore.com/api/mcp

## Resources
Not captured

## Prompts
Not captured

## Metadata
- Owner: io.github.OnChainAIIntel
- Version: 1.4.0
- Runtime: Npm
- Transports: STDIO, HTTP
- License: Not captured
- Language: Not captured
- Stars: Not captured
- Updated: May 27, 2026
- Source: https://registry.modelcontextprotocol.io
