Skip to main content
Glama
mcp-repo-health

mcp-repo-health

by ashwinmridul

mcp-repo-health

MCP server that scores a local git repository the way a recruiter or ghfind-style scanner would: README substance, license, package description, TypeScript config, tests, and GitHub Actions.

It is meant to run inside Cursor / Claude / any MCP host over stdio. Scoring is deterministic and has no GitHub API dependency.

Why this exists

Public GitHub scores overweight empty demos and underweight complete local projects. This server lets an agent inspect a checkout and return a numbered hygiene report before you push.

Related MCP server: codescan-mcp

Tools

Tool

Input

Output

score_repo

{ "root": "/abs/path" }

Human report + JSON (score, maxScore, checks, gaps)

list_hygiene_gaps

{ "root": "/abs/path" }

Failing checks only

Weights (100 points):

  • README ≥ 400 characters — 20

  • LICENSE file or package.json license — 10

  • package.json description — 10

  • .gitignore — 8

  • tsconfig.json — 10

  • Tests (*.test.ts, *.spec.tsx, tests/) — 16

  • .github/workflows/*.yml — 16

  • src/, app/, or lib/ — 10

Install

git clone https://github.com/ashwinmridul/mcp-repo-health.git
cd mcp-repo-health
npm install
npm test
npm run build

Cursor MCP config

Add this to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "repo-health": {
      "command": "node",
      "args": ["/ABS/PATH/mcp-repo-health/dist/index.js"]
    }
  }
}

Then ask the agent: “Score /Users/you/personal/mcp-workbench for repo hygiene.”

Development

npm run typecheck
npm test
npm run dev

npm run dev speaks MCP on stdin/stdout, so run it from an MCP host, not a TTY.

License

MIT

Available Tools

2 tools
list_hygiene_gapsA

Return only the failing hygiene checks for a local repository.

Inputs: root (required).

score_repoB

Score a local repository for README, license, tests, TypeScript, and CI hygiene.

Inputs: root (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 2 tools

    Disambiguation4/5

    The two tools are related but distinct: score_repo provides an overall health score, while list_hygiene_gaps returns only the failing checks. An agent could confuse them if it wants a summary versus details, but the descriptions clarify the difference.

    Naming Consistency4/5

    Both tools use a verb_noun pattern (score_repo, list_hygiene_gaps), which is consistent. The second tool's noun phrase is more descriptive than the first, but the pattern is still predictable.

    Tool Count3/5

    Two tools is on the thin side for a repository health server, but the scope is narrow and the two tools cover the core need. It feels slightly minimal but not unreasonable.

    Completeness3/5

    The server covers scoring and listing gaps, but lacks operations like getting detailed check results, generating reports, or fixing/ignoring specific hygiene issues. The core workflow is present, but there are notable gaps for a health-check domain.

    Maintenance

    ActivityStale
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Scans codebases for TODOs, FIXMEs, code complexity, file stats, and dependencies, generating a health report with a letter grade. Zero configuration required.
      21 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables maintainers to prioritize maintenance across GitHub repositories by converting repository, branch, CI, security, and release signals into deterministic, evidence-backed scores and ranked actions.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Local repository health diagnosis and fix planning for AI-written JavaScript, TypeScript, Python and mixed projects. Its stdio MCP server exposes scans, finding explanations, repair plans, verification, privacy review and DPDP technical readiness checks.
      22 npm
      34
      GPL 3.0