Code Sanitizer MCP server
io.github.notasandy/mcp-code-sanitizer·v0.1.0·2 starsStrict AI code reviewer powered by Groq. Finds bugs and vulnerabilities.
2 stars18 downloads/wk
Reviews
Write oneNobody has reviewed Code Sanitizer yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Code Sanitizer tools
No tool declarations could be read from the package source. They show once the server is installed.
Public scan report
scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it
- Code scan16 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 135 days ago8/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Code Sanitizer compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 72/100
- higher than 38% of 48,255 servers
- GitHub stars
- 2
- more than 75% of 28,688 servers
- Downloads a week
- 18
- more than 5% of 12,191 servers with a package
Install Code Sanitizer in Claude Code, Cursor or VS Code
claude mcp add mcp-code-sanitizer -- uvx mcp-code-sanitizer
What the publisher says
From the Code Sanitizer repository's README, as published. We do not edit it. Read it on GitHub
<!-- mcp-name: io.github.notasandy/mcp-code-sanitizer -->
mcp-code-sanitizer
Strict AI-powered code reviewer for Claude Desktop, Cursor, VS Code, and Claude Code CLI.
Finds bugs, vulnerabilities, and security issues — powered by Groq (free API).
Claude / Cursor / VS Code ──MCP──► code-sanitizer ──REST──► Groq API
(server.py) (llama-3.3-70b)Features
Example output
{
"summary": "Critical SQL injection and secret exposed in logs",
"score": 23,
"issues": [
{
"severity": "critical",
"line": 2,
"title": "SQL Injection",
"description": "f-string directly interpolates user_id into query",
"fix": "cursor.execute('SELECT * FROM users WHERE id = %s', (user_id,))"
}
],
"warnings": [{"title": "No exception handling", "description": "..."}],
"suggestions": ["Consider using an ORM instead of raw SQL"]
}Installation
Prerequisite: Get a free Groq API key at console.groq.com/keys — no credit card required.
Claude Code CLI
claude mcp add code-sanitizer -e GROQ_API_KEY=gsk_your_key -- uvx mcp-code-sanitizerClaude Desktop
{
"mcpServers": {
"code-sanitizer": {
"command": "uvx",
"args": ["mcp-code-sanitizer"],
"env": {
"GROQ_API_KEY": "gsk_your_key_here"
}
}
}
}Cursor
Create .cursor/mcp.json in your project (or ~/.cursor/mcp.json globally):
{
"mcpServers": {
"code-sanitizer": {
"command": "uvx",
"args": ["mcp-code-sanitizer"],
"env": {
"GROQ_API_KEY": "gsk_your_key_here"
}
}
}
}VS Code
Requires VS Code 1.99+ with GitHub Copilot. Create .vscode/mcp.json in your project:
{
"servers": {
"code-sanitizer": {
"command": "uvx",
"args": ["mcp-code-sanitizer"],
"env": {
"GROQ_API_KEY": "gsk_your_key_here"
}
}
}
}Or add globally via Ctrl+Shift+P → "MCP: Add Server".
Don't have uvx? Install it with pip install uv, then use the commands above.
Manual install (alternative)
If you prefer cloning the repo:
git clone https://github.com/notasandy/mcp-code-sanitizer
cd mcp-code-sanitizer
pip install -r requirements.txt
cp .env.example .env # add your GROQ_API_KEY
python server.pyThen point the client config to:
{
"command": "python",
"args": ["/full/path/to/server.py"],
"env": { "GROQ_API_KEY": "gsk_your_key_here" }
}GitHub Action — automatic PR review
Add AI code review to any repository in 5 lines. The action posts a structured comment on every PR with score, issues, and fix suggestions.
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Code Sanitizer: common questions
- Is Code Sanitizer MCP server safe?
- Mostly: it is graded B (72/100). Read the Code Sanitizer safety report
- How do I install Code Sanitizer?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Code Sanitizer need an API key?
- Yes. The registry entry asks for
GROQ_API_KEY. - Is Code Sanitizer maintained?
- The last commit was 173 days ago (2026-05-15). The latest release is v0.1.0.
- How does Code Sanitizer compare with other MCP servers?
- safety score 72/100 (higher than 38% of 48,255 servers); github stars 2 (more than 75% of 28,688 servers); downloads a week 18 (more than 5% of 12,191 servers with a package). Full comparison.