SAST MCP Server
Static Application Security Testing (SAST) for AI agents. A production-ready MCP server that gives any AI agent the ability to scan code for security vulnerabilities.
Supports 11 industry-standard scanners:
| Scanner | Languages / Scope | Type |
|---|---|---|
| Bandit | Python | Security linter |
| njsscan | JavaScript, Node.js | Static analysis |
| Bearer | Python, JS, Ruby, Java, Go, PHP | Data-flow SAST |
| Semgrep | 30+ languages | Rule-based SAST |
| Trivy | All (CVEs, Secrets, IaC, images) | Multi-scanner |
| CodeQL | Python, JS, Java, Go, C/C++, C#, Ruby, Swift | Semantic SAST |
| Checkov | Terraform, K8s, Docker, CloudFormation | IaC policy scanner |
| Gitleaks | All (.git history) | Deep secret scanning |
| OSV-Scanner | Multiple (lockfiles, sboms) | SCA |
| Grype | Containers, OS packages, lockfiles, SBOMs | SCA / image scanning |
| OWASP ZAP | RUNTIME | Dynamic (DAST) via Docker |
Works with any MCP-compatible agent: Gemini CLI, Claude Desktop, OpenAI Agents, Cursor, Windsurf, and more.
Features
- 🔍 11 SAST/SCA/DAST scanners with a unified output format
- 🌳 AST-aware context — shows the full enclosing function, not just a line number
- 📊 Severity & confidence filtering — focus on what matters
- 🔀 Git diff mode — scan only modified files for incremental reviews
- 🙈 Ignore management — suppress false positives with audit trail
- 📄 Pagination — handle large codebases without overwhelming the agent
- 🌐 Dual transport — stdio (local) or Streamable HTTP (remote deployments)
- 🔐 JWT & API key authentication — secure remote deployments
- 📦 One command install —
pip install sast-mcp-server - 🚀 Multi-scanner mode — run all installed scanners in parallel with deduplication
- 📋 SARIF export — CI/CD integration with GitHub, GitLab, Azure DevOps
- 🏗️ IaC scanning — Terraform, Kubernetes, Docker security policies
- 🔑 Secret detection — find hardcoded API keys, tokens, and passwords in code and git history
- 📦 SCA / dependency CVEs — scan lock files for known vulnerabilities against the OSV database
- 🕷️ DAST — dynamic baseline scans of running apps via OWASP ZAP + Docker
- 📈 Baselines & trend tracking — cache scans and diff against a saved baseline
- 🤖 MCP Prompts & Resources — pre-built security workflows and live dashboards for agents
- 📤 Dashboard integrations — push SARIF results to DefectDojo or GitHub Code Scanning
- 🩹 AI-assisted remediation — generate fix prompts and apply agent-written patches via
git apply






