Security Review
MCP server for AI-assisted security code review: your AI assistant (VS Code / Copilot, Claude) or a CI/CD agent reviews the code for vulnerabilities and misconfigurations. It provides review prompts, checklists, a pattern scan, taint analysis with OpenGrep on the Controller server, an offline dependency analysis and a report database (SQLite or PostgreSQL) usable in pipelines.
📖 Full documentation: https://cyr-ius.github.io/security-review/
Capabilities
| Prompts | security-review, api-security-review, configuration-review, codebase-review, dependency-review, triage-report, development-standards |
| Tools | checklists, scan_code, scan_dependencies, start_codebase_scan (the agent has the whole repository, code and dependencies, scanned by the Controller server without reading it nor needing a ci token), saving and reading of reports with their checklist coverage (grouped by a normalized project name), status proposals (propose_finding_status: an agent never closes a finding; in local mode, decide_finding_status applies the decision of the developer once confirmed in the host), OpenGrep rule proposals (propose_opengrep_rule, installed once a person approves them), project posture and gate, SARIF export, Markdown findings report (SECURITY_REPORT.md), trends, rule management |
| CLI | security-review-mcp (MCP server: serve, local for the local mode) and security-review-controller (serve, db, advisories, rules, opengrep, token, user, audit), exit codes 0 / 1 / 2 |
| Pipelines | security-review-ci (gate, sarif, trend, scan-code, scan-deps, which store their reports through the API): lightweight client of the REST API for Jenkins, GitLab or GitHub, with a ci token restricted to the selected projects, no database driver, installed alone without Python (uv tool install security-review-ci, or from the Controller server without PyPI); on a workstation (commit hook), with a personal ci token |
| Rules | More than 200 rules and more than 120 checklist items: Python, Java, Go, C#, Rust, TypeScript / Node.js backend, Angular, Docker, Kubernetes, configuration, GitLab CI, Jenkins, Spring, FastAPI, prompt injection aimed at AI assistants (hidden characters, injected instructions; read guard security-review-ci guard, a hook for Claude Code, Copilot or Codex), copied into the database at first start, plus your own rules and checklists (TOML import/export from the CLI or the web interface); OpenGrep YAML rules run by scan-code (binary included in the -opengrep Docker image), with 147 default rules (taint analysis from the request to SQL, commands, files, URLs...) installed at start-up by the -opengrep image or by security-review-controller opengrep install |
| Development standards | conventions by technology managed in the web interface (TOML import/export) and handed to the AI assistant before it codes (prompt, get_development_standards / list_development_standards tools, resources) |
| Vulnerabilities | manifests, lockfiles and CycloneDX SBOMs checked against an OSV database (PyPI, npm, Maven, Go, crates.io, NuGet) imported offline or updated every day by the Controller server, optional proxy |
| Transport | HTTP (shared mode) or stdio (local mode), with Bearer tokens stored in the database (token CLI) with expiry and rotation, and TLS (optionally mutual) |
| Audit and metrics | audit log of triage decisions, tokens and project requests, and Prometheus metrics on /metrics (metrics token) |
| Connectors | findings sent to other tools: Jira and ServiceNow built in, third-party connectors for any other system (vulnerability register, GRC...); each connector switched on in the web interface, by hand or automatically above a severity threshold, one record per issue |
| Deployment | MCP server and Controller server (REST API, web interface) separated on a shared database, Alembic migrations, Docker Compose and Kubernetes examples; one Docker image started with controller or mcp (HTTP or stdio with SECREVIEW_TRANSPORT); optional scan engines (security-review-scan-engine) that take the code scans off the Controller server, enrolled with it and without database access |
| Enrollment | an MCP client without a token is told to create a personal MCP token in the web interface; then the request_project MCP tool creates the project of the review, or requests it (or the access to an existing project) for an administrator to approve, which gives the user access to it; a refused token gets a 401 that says how to get a new one |
| OAuth login | optional, turned on from the web interface: the MCP host needs no token, it signs in through the browser (OAuth 2.1 with PKCE, the Controller server as authorization server) and acts as a personal MCP token of the user |
| Web interface | in English, French or Spanish: dashboard, triage by a person (approver of the accepted risks and false positives, reason and expiry of the accepted risks, several findings at once), risk acceptances to renew or remove, with append-only comments, per-project list of open findings for an expert review, management of rules, checklists, tokens (per project or for all projects), general settings (report language, Controller server address), outgoing proxy (OSV and OIDC) and OSV updates, local or OIDC user accounts, the only ones to open the interface (tokens are for machines: MCP agents, pipelines, scripts; personal or role API tokens for the REST API and Swagger, personal MCP tokens on the projects of the user, unless SECREVIEW_PERSONAL_TOKENS_ENABLED=false; initial admin account in the logs), optional OpenID Connect OIDC login, configurable in the interface, with accounts created on the fly, and roles and permissions (roles on the whole server and projects of each account with their own per-project permissions, project search and multiple selection, and OIDC mappings of the identity provider groups) |
Details: how a review works (rules, checklists, standards, AGENTS.md),
prompts and tools,
whole codebase analysis,
dependencies,
gate,
SARIF,
trends.
Quick start
The product runs as three services: the MCP server (security-review-mcp), used by the
agents, the Controller server (security-review-controller), used by people (web interface,
REST API, tokens and accounts), on one shared database, and the pipeline client
(security-review-ci). See
three services, three roles.
In an empty folder, this block starts PostgreSQL, the Controller server and the MCP server
with Docker Compose and resets the password of the admin account:
mkdir secreview && cd secreview
curl -fsSLO https://raw.githubusercontent.com/cyr-ius/security-review/master/examples/docker/docker-compose.yml
(umask 077 && printf 'POSTGRES_PASSWORD=%s\nSECREVIEW_SECRET_KEY=%s\n' "$(openssl rand -hex 24)" "$(openssl rand -hex 32)" > .env)
docker compose up -d --wait
docker compose exec controller security-review-controller user reset-password admin # password shown once
# web interface: http://127.0.0.1:8080/ui/ MCP endpoint: http://127.0.0.1:8000/mcp
Log in to the web interface as admin. On the General page, enter http://127.0.0.1:8080
as Public URL of the Controller server; on the Tokens page, enter
http://127.0.0.1:8000/mcp as MCP endpoint and turn on Enable OAuth login
(OAuth login of MCP clients). Declare the server in
.mcp.json at the root of the repository (VS Code, GitHub Copilot, Claude Code), without a
token: at the first connection, the host opens the browser to sign in. These 127.0.0.1 URLs
in plain HTTP are for a test on the same machine, but the ports are open on every interface: for
the team, enable HTTPS.
{
"mcpServers": {
"security-review": {
"type": "http",
"url": "http://127.0.0.1:8000/mcp"
}
}
}
Step by step: deploying the server,
connecting the host (VS Code, Claude, enrollment).
Other cases: without containers,
offline installation,
local mode (stdio),
Bearer tokens, TLS,
Docker images (ghcr.io/cyr-ius/security-review, docker.io/cyrius44/security-review) and Docker Compose with PostgreSQL,
architecture and Kubernetes,
SECREVIEW_* variables.
Limits
With the OpenGrep engine (-opengrep image), the scan is a static analysis (SAST) that follows the data flow within a file, across its functions
(OWASP Benchmark results); without it, the pattern scan
only produces leads, with false positives. Neither follows a flow from one file to another: the AI review and a human review
cover the rest. It is not a full SCA analysis. See
security and limits.
Contributing
uv sync --extra dev && uv run pytest && uv run ruff check .
Development happens on dev; a version (vX.Y.Z tag on master) is created by Release Please.
See the contribution guide and
AGENTS.md (instructions for AI agents).
Security and license
Report a vulnerability privately, as described in SECURITY.md. The project is
distributed under the Apache 2.0 license.
Metadata
Release files for security-review 12.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| security_review-12.3.0.tar.gz | 1.9 MB | With provenance | Details for security_review-12.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| security_review-12.3.0-py3-none-any.whl | Python 3 | none | any | Details for security_review-12.3.0-py3-none-any.whl |
Total release size: 3.8 MB
Release files / security_review-12.3.0.tar.gz
| Download URL | security_review-12.3.0.tar.gz |
|---|---|
| Size | 1.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f7f99bc1f0f36933477a7718209159b678f96dfca5274b32baa219830880711
|
|
BLAKE2b-256 checksum How to use checksums |
b8bfcda1a1bc406008fc7658e487e22bee3aba8db55c79172d7d30f749844ad2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logRelease files / security_review-12.3.0-py3-none-any.whl
| Download URL | security_review-12.3.0-py3-none-any.whl |
|---|---|
| Size | 1.9 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
69b865a4a121dc7541192c0450b65cef818caaac887e5171733f36dfaff8304c
|
|
BLAKE2b-256 checksum How to use checksums |
e8160617be81bc02af1e75ce71f0e1eacb822c003013dd61ee2f537e4d755b81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logSecurity for security-review 12.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for security_review-12.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.