Are you the author? Sign in to claim
AI code review agent MCP server. Reviews code like a kernel maintainer: blunt, technical, no sugarcoating. Detects bugs
AI code review agent that doesn't sugarcoat. If your code is bad, it tells you. Bluntly.
An AI-powered MCP (Model Context Protocol) server that reviews your code the way experienced maintainers review patches on serious projects: technically, directly, without diplomacy.
CRITICAL, MAJOR, MINOR, NIT, CLEANMost AI code reviewers are trained to be polite. They preface criticism with "great work but...", they hedge with "you might want to consider...", they soften findings with "this could potentially be an issue".
That's not how serious code review works. On real projects (Linux kernel, PostgreSQL, Redis, SQLite), maintainers review patches directly. They find problems and call them out clearly. They don't exist to make the author feel good — they exist to make the code better.
This MCP encodes that tradition. The personality IS the product.
LLMs are RLHF-trained to be polite. This AI agent fights that with three layers:
| Tool | Description |
|---|---|
review_code | Review a code snippet |
review_file | Review a file from disk (sandboxed) |
review_diff | Review a git diff |
review_commit | Review a git commit (git show <ref>) |
list_severities | List severity labels with definitions |
| Level | Behavior |
|---|---|
gentle | Softens language slightly. Still reports all findings. |
standard | Default blunt review. Direct, technical, no diplomacy. |
brutal | No softening. "This is wrong." not "This should be changed." |
kernel-maintainer | Maximum bluntness. Short sentences. Imperative voice. |
pip install code-review-agent-mcp
Or with uv:
uv pip install code-review-agent-mcp
Add to claude_desktop_config.json:
{
"mcpServers": {
"code-review-agent": {
"command": "python",
"args": ["-m", "blunt_codereview.server"]
}
}
}
Or if installed via pip:
{
"mcpServers": {
"code-review-agent": {
"command": "blunt-codereview-mcp"
}
}
}
Add to .cursor/mcp.json:
{
"mcpServers": {
"code-review-agent": {
"command": "python",
"args": ["-m", "blunt_codereview.server"]
}
}
}
User: Review this code for me
def get_user(username):
import sqlite3
conn = sqlite3.connect("users.db")
cursor = conn.cursor()
query = f"SELECT * FROM users WHERE username = '{username}'"
cursor.execute(query)
return cursor.fetchone()
MCP response:
## Code Review: snippet
### Findings
**CRITICAL** `snippet:7` — SQL injection
The query uses an f-string with user input, allowing SQL injection. Use parameterized queries: `cursor.execute("SELECT * FROM users WHERE username = ?", (username,))`.
### Verdict
Do not merge until CRITICAL is fixed.
User: Review src/auth.py
MCP calls review_file with file_path="src/auth.py"
Returns blunt review with line citations.
User: Review the last commit
MCP calls review_commit with commit_ref="HEAD"
Returns blunt review of the diff.
| Label | When to use |
|---|---|
| CRITICAL | Security vulnerability, data loss, deadlock, RCE, anything that ships broken |
| MAJOR | Logic error, race condition, resource leak, broken edge case, wrong abstraction |
| MINOR | Style, naming, missing test, redundant code, brittle assumption |
| NIT | Cosmetic, formatting, comment wording |
| CLEAN | Explicitly state when a section is fine. Prevents invented-bug bias. |
This MCP server implements security sandboxing:
.ssh, .aws, .env, /etc/passwd, etc.) are refusedshell=False and disable global git configSee SECURITY.md for the full threat model.
# Install in development mode
pip install -e ".[dev]"
# Run tests
pytest
# Run tests with coverage
pytest --cov=blunt_codereview
The benchmarks/ directory contains 5 regression snippets that verify the reviewer:
The clean code benchmark is the most important — it catches hallucination. If the reviewer invents bugs in correct code, the anti-RLHF system is broken.
MIT
This project encodes the kernel maintainer tradition of code review — a methodology practiced by many senior engineers across many projects (Linux kernel, PostgreSQL, Redis, SQLite, and others). We cite the tradition, not any single practitioner.
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases
Official GitHub integration for repos, issues, PRs, and CI/CD workflows