SuperAPI AI Directory

mcp-code-sanitizer

Code review via Groq: finds bugs, vulnerabilities and SQL injections, compares and explains code, generates tests and HTML reports.

Open website

About this tool

Purpose

mcp-code-sanitizer is a strict AI code review MCP server powered by Groq. It is aimed at clients such as Claude Desktop, Cursor, VS Code, and Claude Code CLI, and is used to find bugs, vulnerabilities, and security issues in code.

Main Capabilities

  • Find bugs, vulnerabilities, and security issues in code (including SQL injection).
  • Compare and explain code.
  • Generate tests and HTML reports.
  • Automated PR review via GitHub Action: add AI code review to any repository in 5 lines, with each PR posting structured comments including a score, issues, and fix suggestions.

Usage

Prerequisites

Get a free Groq API key at console.groq.com/keys, no credit card required.

Client Configuration

  • Claude Code CLI: Create .cursor/mcp.json(project-level) or ~/.cursor/mcp.json(global).
  • VS Code: Requires VS Code 1.99+ and GitHub Copilot. Create .vscode/mcp.jsonin the project, or add it globally via Ctrl+Shift+P → "MCP: Add Server".
  • If there is no uvx, install it with pip install uv , then use the above command.

Manual Installation (Alternative)

If you prefer to clone the repository, then point the client configuration to the corresponding path.

GitHub Action — Automated PR Review

Add GROQ_API_KEYin the repository secrets (Settings → Secrets → Actions). The action will automatically:

  • Review only changed files (up to 10 per PR).
  • Post the score and a structured issue list as a PR comment.
  • Fail the check if serious issues are found.

Usage

Once connected, you can write in natural language, or explicitly call tools. All settings are done via .env or environment variables.

Use Cases

  • Developers performing automated code review before committing code.
  • Teams integrating AI code review into their PR workflow.
  • Scenarios that require quickly finding security vulnerabilities and code quality issues.

Limitations

  • Depends on the Groq API (free), and an API key must be obtained.
  • Currently only Groq models are supported; support for other LLM providers (OpenAI, Anthropic) is still planned.
  • The GitHub Action reviews at most 10 changed files per PR.
  • Other features such as dependency auditing, complexity scoring, and docstring generation are pending development.

Available Groq Models

The materials do not list specific model names, so none are provided for now.

License

MIT License.