mcpField
S
spec-score-mcp

spec-score-mcp

Local
github.com/openpoemDeveloper Tools2Updated 24w ago

About spec-score-mcp

spec-score-mcp is an MCP server for evaluating software specifications before implementation with Claude. It scores four dimensions, identifies the weakest area, and produces verdicts and radar charts.

Key features

  1. 01Scores completeness, clarity, constraints, and specificity
  2. 02Calculates a balance score and verdict
  3. 03Generates SVG radar charts
  4. 04Compares two scored specifications
  5. 05Provides tips for improving the weakest axis

Use cases

  1. 01Reviewing a feature spec before asking Claude to build it
  2. 02Finding missing boundaries in a draft spec
  3. 03Comparing a blueprint with an implementation spec

MCP support

Exposes three tools to MCP clients: spec_score, spec_visualize, and spec_compare. The tools score specifications, create radar charts, and compare two specs.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"openpoem-spec-score": {
"command": "npx",
"args": [
"-y",
"spec-score-mcp"
]
}
}
}
Run commandnpx -y spec-score-mcp

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmspec-score-mcp2.0.2

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

Spec Score MCP

Score your specs before Claude builds from them.

A balanced spec produces balanced code. An unbalanced spec produces creative fiction.

The problem

When your spec is detailed on some axes but vague on others, Claude doesn't ask for clarification — it fills in the blanks. The result compiles, the tests pass, but it's not what you meant.

This tool catches that before you start building. It scores your spec on 4 axes, tells you which one is weakest, and gives you a concrete tip to fix it.

4 axes

AxisQuestion it answers
completenessCan Claude understand the full scope of what to build?
clarityIs there only one way to interpret this spec?
constraintsDoes Claude know what NOT to build?
specificityAre there concrete, testable details?

Each axis scores 0.0 to 1.0. The balance score measures how evenly the 4 axes are covered.

Balance matters more than individual scores. A spec scoring 0.50 on all 4 axes (balance: 0.97) will produce better output than one scoring 0.95 / 0.95 / 0.20 / 0.90 (balance: 0.58). Why? That one weak axis — constraints at 0.20 — is exactly where Claude will improvise. You described what to build in detail, but forgot to say what's out of scope. So Claude builds everything you asked for, plus features you didn't.

On the radar chart: an even diamond beats a sharp spike.

Verdicts

VerdictWhat it means
SHIP ITSpec is ready — Claude knows what to build and what not to
ALMOSTOne axis needs a small fix before you start
DRAFTMultiple axes need work, but the structure is there
VAGUEWell-organized but too abstract to act on
UNBOUNDEDClear goal but no boundaries — Claude will over-build
OVER-CONSTRAINEDLots of rules but unclear what the actual goal is
SKETCHStarting point — needs detail on most axes

Not SHIP IT yet? The tool tells you which axis is weakest and what to add. Fix that axis, re-score, repeat. Most specs reach SHIP IT in 2-3 rounds.

Install

git clone https://github.com/openpoem/spec-score-mcp.git
cd spec-score-mcp && npm install && npm run build
claude mcp add spec-score -- node $(pwd)/dist/mcp.js

The 3 tools are now available in every Claude Code session.

Usage

Slash commands

Clone this repo to get the built-in slash commands:

/project:scan my-feature-spec.md

Reads the file, scores it, and writes a my-feature-spec.md.scored.md with scores, verdict, tip, and a radar chart.

/project:compare blueprint.md implementation.md

Scores both files and writes a compared.scored.md with side-by-side radar charts.

Direct tool use

The 3 MCP tools work in any Claude Code conversation:

ToolWhat it does
spec_scoreScores a spec on 4 axes, returns balance score and verdict
spec_visualizeGenerates an SVG radar chart from scores
spec_compareSide-by-side comparison of two scored specs

Ask Claude: "Score this spec", "Show me the radar chart", or "Compare these two specs".

Example: from UNBOUNDED to SHIP IT

This tool scoring its own spec — four rounds, each fixing the weakest axis:

From UNBOUNDED to SHIP IT

Round 1: the idea

Build a spec scoring tool

Round 1: UNBOUNDED (0.12)
UNBOUNDED  0.12  Tip: What does 'scoring' mean? What axes? What output?

One axis is high (clarity — the goal is clear), everything else is near zero. Claude would build... anything. A web app? A CLI? A VS Code extension? No way to know.

Round 2: add context

Build an MCP server that scores specs on 4 axes: completeness, clarity, constraints, specificity. Each axis is 0.0-1.0. Returns a balance score and verdict.

Round 2: ALMOST (0.67)
ALMOST  0.67  Tip: What are the verdicts? What does the tool NOT do?

Now Claude knows what to build. But constraints are still weak — it might add auto-fixing, CI integration, a database.

Round 3: add boundaries

Three tools: spec_score, spec_visualize, spec_compare. Non-goals: no auto-fixing, no CI integration, no storage.

Round 3: SHIP IT (0.84)
SHIP IT  0.84  Tip: Add testable criteria — what balance maps to which verdict?

Crossed the threshold. Claude now knows what to build AND what not to build. Specificity is still the weakest axis.

Round 4: add testable details

Balance = 1 - sqrt(variance)/mean. SHIP IT > 0.75, ALMOST > 0.60, plus pattern-based verdicts. Node.js, MCP SDK, stdio transport.

Round 4: SHIP IT (0.95)
SHIP IT  0.95  Spec is ready for implementation.

Four rounds: 0.12 → 0.67 → 0.84 → 0.95. Each round fixed exactly one thing.

The math

  1. Claude scores each axis (0.0 - 1.0)
  2. Normalize the vector: v / ||v||
  3. Balance: 1 - sqrt(variance) / mean
  4. Verdict: balance threshold + axis pattern matching

The scoring intelligence comes from Claude, not from the algorithm. The algorithm only measures balance.

Project structure

src/
  mcp.ts        # MCP server (3 tools)
  score.ts      # Scoring engine
  visualize.ts  # SVG radar charts
.claude/
  commands/
    scan.md     # /project:scan command
    compare.md  # /project:compare command

OpenPoem — spec-score-mcp

MIT License.

© 2026 OpenPoem. [email protected]

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.