
Mcp Code Sanitizer
io.github.notasandyPublished by GitHub account notasandyv0.1.0Updated Oct 24, 2026
Strict AI code reviewer powered by Groq. Finds bugs and vulnerabilities.
Overview
An MCP server that reviews code for bugs, security issues, and test coverage using Groq-hosted LLMs.
- What you can do
- It exposes tools to analyze code snippets, compare two versions for regressions, explain code at different experience levels, generate tests for pytest, jest, or go test, analyze whole files from disk with parallel chunking, and build HTML reports. Results include a 0–100 score, severity-ranked issues with suggested fixes, and warnings. An in-memory LRU cache with TTL stores prior analyses.
- When to use it
- Use it when you want an assistant to perform strict code review, spot vulnerabilities such as SQL injection, compare a refactor against its previous version, or draft unit tests. It suits individual developers and teams adding automated review to pull requests.
- Requirements
- Runs locally as a Python process, typically launched with uvx or python server.py. Requires a Groq API key supplied through the GROQ_API_KEY environment variable, and network access to the Groq API. Optional settings include GROQ_MODEL, CACHE_TTL, and CACHE_MAX.
Installation
In SourceWeft
- Open Mcp Code Sanitizer in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
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).
[Python] [PyPI] [FastMCP] [Groq] [License]
Features
Example output
Installation
Prerequisite: Get a free Groq API key at console.groq.com/keys — no credit card required.
Claude Code CLI
Claude Desktop
Cursor
Create .cursor/mcp.json in your project (or ~/.cursor/mcp.json globally):
VS Code
Requires VS Code 1.99+ with GitHub Copilot. Create .vscode/mcp.json in your project:
Or add globally via Ctrl+Shift+P → "MCP: Add Server".
Don't have
uvx? Install it withpip install uv, then use the commands above.
Manual install (alternative)
If you prefer cloning the repo:
Then point the client config to:
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.
Add GROQ_API_KEY to your repository secrets → Settings → Secrets → Actions.
The action automatically:
- Reviews only changed files (up to 10 per PR)
- Posts a score and structured issue list as a PR comment
- Fails the check if critical issues are found
Usage in chat
After connecting, just write naturally:
Or call tools explicitly:
Architecture
Configuration
All settings via .env or environment variables:
Available Groq models
Contributing
PRs and Issues are welcome. Most wanted:
- Support for other LLM providers (OpenAI, Anthropic)
- New tools: dependency audit, complexity score, docstring generator
- Prompt improvements and new language support
License
MIT — do whatever you want. A star would be appreciated.
Links
Source: README.md at commit 9fa6a25
Tools
0Version history
1- v0.1.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts