SuperAPIAI Directory

guardrail-mcp

github.com · AI developer platforms

GuardRail is a multilingual security analysis tool based on MCP (Model Context Protocol), aimed at AI-assisted development workflows. It provides static scanning capabilities to detect secret leaks, dangerous APIs, injection patterns, and IaC configuration errors in source code and infrastructure text, with optional tree-sitter structural checks, dependency manifests and OSV queries, SARIF/SBOM export, and an enterprise policy gateway. The project is open source under the MIT license, with the core freely self-hostable; an optional commercial listing is also available on the MCPize marketplace, with pricing set by that marketplace's backend. The tool only analyzes text provided by the user, does not execute the scanned code, does not replace commercial SAST/DAST, and does not guarantee zero false positives or zero false negatives.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

GuardRail is a tool that provides multilingual security analysis capabilities to AI-assisted workflows via the MCP protocol. It packages static scanning capabilities as MCP tools for invocation by MCP clients such as Claude Desktop and Cursor, and can also be run directly via CLI.

Purpose and positioning: Perform static analysis on user-provided source code and infrastructure text to identify high-signal issues, including secret-like strings, dangerous APIs, injection patterns, and IaC configuration errors. The project explicitly states its scope: it only analyzes text and does not execute the scanned code; it does not replace commercial SAST/DAST; it does not guarantee zero false positives or zero false negatives; and it does not itself provide SOC2 certification.

Main capabilities: baseline scanning covers secrets, dangerous APIs, injection patterns, and IaC misconfigurations; optional tree-sitter structural checks; dependency manifests and OSV queries; SARIF/SBOM export; enterprise policy gateway. Many substrings resembling secrets are redacted in the excerpted content. The repository also mentions directions such as advanced taint analysis, plugins, policy gates, and dashboards, but the materials do not elaborate on specific implementation details.

Usage: Two installation paths are provided. One is zero-install quick running with uvx; the other is cloning the repository and installing in editable mode, supporting Windows, macOS, and Linux. For MCP client configuration, GuardRail can be added to Claude Desktop or Cursor's claude_desktop_config.json, or run directly via the Python executable in a local virtual environment. CLI scanning can be used as a baseline result. The repository's examples/ directory contains intentionally insecure test samples for testing and demonstration only, and the values therein are all synthetic data. Tests can be run with pytest, with a results summary in docs/test-results.md. Performance micro-benchmarks are in docs/PERFORMANCE.md and benchmarks/; it is recommended to rerun them on your local machine before referring to the numbers.

Enterprise mode: An optional multi-tenant gateway supporting API keys/JWT, RBAC, path sandboxing, auditing, and rate limiting; see docs/ENTERPRISE.md for details. The materials explicitly warn: do not deploy HTTP enterprise mode without authentication enabled.

Applicable scenarios: Suitable for quick security pre-checks in AI coding assistant workflows, high-signal issue screening of code snippets and IaC text, generating SARIF/SBOM for use in downstream processes, and self-hosted deployment in team environments that require policy gates.

Limitations and licensing: MIT license, with the core free to self-host; the commercial listing on MCPize is optional, with pricing set by that marketplace's backend. The website playground is only a browser-side demonstration; production use should rely on the Python MCP/CLI. The threat model is in docs/SECURITY_MODEL.md, the vulnerability reporting process is in SECURITY.md, and the accuracy policy is in docs/ACCURACY.md.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools