Skip to content
MCP server
Registry

culprit MCP Server

Deterministic, offline root-cause analysis and pre-commit fix verification for coding agents.

culprit scores 59 (Fair), licensed MIT and written in Python. It installs as a local process. It declares 10 tools. Filed under Version control. GitHub shows 6 stars. Package registries report about 19 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by noordeen123MITPython6 stars
Trust score
59Fair
Trust score 59 of 100, Fair

Fair trust

59 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 59 comes from

22 + 10 + 3 + 10 + 4 + 10 = 59. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance10 / 20

How recently the repository saw a commit or release.

Maintenance: 10 of 20 points.
Popularity3 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 3 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "noordeen123-culprit": {      "command": "uvx",      "args": [        "culprit"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools10Tool docs quality grade D

All capabilities
  • Call sites of the changed symbol the fix did not touch

  • Bugfix vs feature, with evidence

  • Rank the commits that introduced the bug

  • RCA straight from a stack trace, no diff or PR needed

  • Feature impact: dependents, covering tests, high-risk files

  • Per-commit history of the buggy lines via git log -L

  • The introducing commit's message, linked PR, referenced issues

  • QA gate score (0 to 100, low/medium/high) with contributing factors

  • Minimal test set to run for this change

  • Is this diff safe to commit? complete / partial / risky, plus the missed call sites

About

culprit

Why an agent needs this

An agent can dig through git history to find what broke, and it is good at it. What it will not reliably do is spend a dozen tool calls on that every time, or stop and check whether the helper it just changed has three other callers before it commits. culprit turns both into one deterministic call that returns structured JSON it can act on:

The agent asksculprit answers
"What introduced this bug?"Ranked suspect commits, the author's intent, the releases it shipped in
"Is my fix complete?"verify_fix: missed call sites, whether a test shipped, a risk level
"What could this change break?"Reverse-import dependents, covering tests, high-risk shared modules
  • โšก๏ธ Instant. No test runs, no bisect. Benchmarked at 41% fewer agent tool calls.
  • ๐Ÿ”’ Read-only and offline. Never writes to your repo or PR. No API key, no network.
  • ๐Ÿ”Œ MCP-native. 11 tools over stdio, on the official MCP registry, plus a one-command plugin.
  • ๐Ÿ—ฃ๏ธ Language-agnostic. Suspects work anywhere git does. Blast radius reads 12 language families.

Does it actually work?

Benchmarked against 50 real regressions, 25 from git and 25 from systemd, where the introducing commit is known from each fix's Fixes: trailer (author-verified ground truth). Given only the fix commit, culprit blames the removed lines to rank the commits that introduced the bug.

MetricResult
Introducing commit ranked #150% (25/50)
Introducing commit in the top-5 suspect set66% (33/50)

Deterministic and offline, on large C codebases the engine has never seen. Reproduce with python benchmarks/run.py, which clones the repos and scores every case.

But an agent can run git blame itself

It can, and it is good at it. So the honest question is not whether culprit is accurate, but whether it beats or helps an agent that has git and no culprit. Same 10 regressions, three arms, isolated so no arm can read the answer from the fix commit:

culprit aloneagent aloneagent + culprit
Introducing commit ranked #180%90%90%
Introducing commit in top 590%100%100%
Mean tool calls to get there114.98.8 (-41%)
Mean tokens to get there~055,53447,616 (-14%)

The agent wins on accuracy, and culprit does not make it more accurate. What culprit does is get it there in roughly half the steps for about 8,000 fewer tokens per investigation. Tool calls dropped in 10 of 10 cases, tokens in 7 of 10. On the hardest case the agent needed 42 tool calls and 124k tokens alone, against 16 calls and 84k with culprit.

Those savings are already net of reading culprit's output, which is counted in the third column. culprit's own run is one deterministic call, no model, under a second.

So culprit is an accelerator for an agent, not a replacement for one, and not a smarter blamer than one. Method, caveats (n=10, and this slice is easier than the full 50), and reproduction: benchmarks/agent/.

Quick start

Claude Code plugin (installs the MCP server plus a skill that tells the agent when to use it):

/plugin marketplace add noordeen123/culprit
/plugin install culprit@culprit

Any MCP client (Cursor, Windsurf, VS Code, Codex CLI, Zed, Continue, Cline, Amazon Q, Goose):

{
  "mcpServers": {
    "culprit": {
      "command": "uvx",
      "args": ["--from", "culprit[mcp]", "culprit-mcp"]
    }
  }
}

CLI, no agent required:

uvx culprit                     # run from PyPI on demand
rca --verify-fix patch.diff     # exit 0 if complete, 1 otherwise

Needs Python 3.10+ and uv for the MCP server. The CLI runs on 3.9+.

The tools

ToolWhat it answers
analyzeFull RCA in one call: classify, suspects or blast radius, risk, test impact
verify_fixIs this diff safe to commit? complete / partial / risky, plus the missed call sites
find_suspectsRank the commits that introduced the bug
check_completenessCall sites of the changed symbol the fix did not touch
get_intentThe introducing commit's message, linked PR, referenced issues
get_evolutionPer-commit history of the buggy lines via git log -L
get_risk_scoreQA gate score (0 to 100, low/medium/high) with contributing factors
get_blast_radiusFeature impact: dependents, covering tests, high-risk files
get_test_impactMinimal test set to run for this change
classify_changeBugfix vs feature, with evidence
from_traceRCA straight from a stack trace, no diff or PR needed

verify_fix, the pre-commit gate

The agent runs this on its own diff before committing:

  • verdict: complete when no untouched call site is left behind, partial when one was missed, risky when risk is high. The verdict is the completeness axis; test coverage is the separate confidence axis on risk_level.
  • untouched_references: the exact files that still use the changed symbol. This is the list the agent goes and patches.
  • skipped_symbols, adds_test, notes: what was too widely used to check, whether a test shipped, and what to do next.

Loop until complete, then commit. That is the whole idea.

CLI and CI

rca                            # current branch vs the configured base
rca --last                     # the latest commit only
rca --pr 16786                 # a specific PR (uses the PR's own base)
rca --trace crash.txt          # RCA from a stack trace, no fix or PR needed
rca --verify-fix patch.diff    # check a diff before committing
rca --select-tests             # print the tests to run for this change
rca --html report.html --open  # a single self-contained HTML report
rca --pr 16889 --fail-on high  # exit non-zero when QA risk is high
rca serve --repo /path         # local web UI with a base picker

CI gate: risk via exit code only, no PR comments, no writes. Copy examples/github-actions/culprit-pr.yml into .github/workflows/:

- run: pip install "culprit>=0.3.0"
- env: { GH_TOKEN: "${{ github.token }}" }
  run: rca --pr ${{ github.event.pull_request.number }} --fail-on high

HTML report

--html writes one self-contained file. No CDN, opens offline, attaches to CI. It opens with the verdict: a scored QA risk with the factors behind it, and the prime suspect with how long the bug lived.

Then it reconstructs how the bug got there. Every commit that touched the buggy line, from creation through the commit that broke it (red, with the exact diff) to the fix (green):

vs git bisect

git bisectculprit
InputA reliable failing testThe fix diff (or a stack trace)
MethodChecks out commits and runs the testBlames the fix's lines plus git log -L
SpeedMinutes (about log2(N) test runs)Instant
OutputFirst bad commitSuspect set, intent, lifecycle, completeness, risk
ConfidenceProofStrong heuristic

--bisect "<cmd>" runs a real bisect as an optional confirmation layer, in a throwaway git worktree so your checkout is never touched. When the first failing commit matches the blamed suspect, the report stamps it confirmed by git bisect.

Architecture

One normalized context in, one structured JSON result out. The only non-deterministic step is the optional LLM narrative, isolated behind an adapter so the engine runs with no API key.

Two lanes, one engine. Every module writes one slice of the result, so nothing cares whether the target came from gh, the REST API, local git, or a pasted stack trace. Full module map: docs/ARCHITECTURE.md.

Configuration

The base branch resolves in order: the --base flag, then CULPRIT_BASE, then .culprit.toml (base = "origin/main"), then HEAD~1. --last forces the latest-commit view.

PR titles and labels use the GitHub CLI when present, or the unauthenticated REST API for public repos (set GITHUB_TOKEN or GITLAB_TOKEN to raise limits). Deep links cover GitHub, GitLab, Bitbucket, and Gitea. Blast radius reads imports across JS/TS, Python, Go, Java/Kotlin, Ruby, C/C++, C#, PHP, Rust, Scala, and Swift.

Contributing

pip install -e ".[dev]" && pytest

Module map and data shapes: docs/ARCHITECTURE.md. Publishing the MCP server to the registries: docs/PUBLISHING.md. MIT licensed.

Frequently asked questions

What is culprit MCP Server?

Deterministic, offline root-cause analysis and pre-commit fix verification for coding agents.

How do I install culprit MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. culprit MCP Server runs locally from the PyPI package culprit with the command uvx culprit.

Is culprit MCP Server free and open source?

Yes. culprit MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does culprit MCP Server support remote (HTTP) connections?

No remote endpoint is listed for culprit MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does culprit MCP Server provide?

culprit MCP Server provides 10 tools, including check_completeness, classify_change, find_suspects, and from_trace. See the full tool list for descriptions and parameters.

How is culprit MCP Server's trust score calculated?

culprit MCP Server scores 59 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

โ€”Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server