GuardRail MCP v2.0 (Enterprise)
GuardRail MCP v2.0 (Enterprise) is a hybrid multi-language security analysis server that scans code, infrastructure, and dependencies via MCP tools for AI-assisted workflows.
Scan source code for secrets, dangerous APIs, injection patterns, and Python AST/taint issues with optional tree-sitter, custom rules, and plugins.
Scan repositories, git diffs, Dockerfiles, Kubernetes configs, and IaC for misconfigurations, cost estimates, and budget gates.
Inventory dependencies and query OSV for CVEs, with optional pip/npm audit.
Export findings as SARIF 2.1.0, generate CycloneDX/SPDX SBOMs, and suggest fixes (template or LLM-assisted, never auto-applied).
Compute security scores/grades, maintain scan history, and run full pipeline (scan + deps + fixes + SARIF + SBOM).
Use enterprise features: auth/JWT, RBAC, policy packs, compliance reports, audit events, tenant quotas, config reload, and inspect plugins/engine status/health.
Provides tools for auditing container configurations and security checks for Docker and Kubernetes deployments.
Allows scanning of git diffs and repositories for security vulnerabilities.
Integrates with GitHub code scanning by uploading SARIF results and can be run in GitHub Actions CI.
Exposes metrics in Prometheus format for monitoring the MCP server.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GuardRail MCP v2.0 (Enterprise) scan my repository for security vulnerabilities and generate SARIF report"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GuardRail exposes tools that scan source and infrastructure text for high-signal issues (secrets, dangerous APIs, injection patterns, IaC misconfigurations), with optional tree-sitter structural checks, dependency inventory/OSV, SARIF/SBOM export, and an enterprise policy gateway.
Resource | URL |
Website | |
AlphaTech Studio | |
MCPize listing | |
Accuracy policy | |
Security / threat model | |
Examples | |
Performance | |
Test results | |
Enterprise |
Scope (read this)
Does: static analysis of text you provide; redacts many secret-shaped substrings in excerpts.
Does not: execute scanned code; replace commercial SAST/DAST; guarantee zero false positives/negatives; provide SOC2 certification by itself.
Website playground: browser-only demonstration (
docs/ACCURACY.md). Production use = Python MCP/CLI.
Related MCP server: Spotter-SAST
Quick start
Option 1: Fast run with uvx (zero installation)
uvx --from git+https://github.com/SECRET4422/guardrail-mcp.git guardrail-mcpOption 2: Clone and install editable (Cross-platform: Windows, macOS, Linux)
git clone https://github.com/SECRET4422/guardrail-mcp.git
cd guardrail-mcp
pip install -e .
# Run test suite
python -m unittest discover -s tests -v
# Start MCP stdio server
guardrail-mcpMCP client configuration
Add GuardRail to your Claude Desktop or Cursor configuration (claude_desktop_config.json):
{
"mcpServers": {
"guardrail": {
"command": "guardrail-mcp",
"args": ["serve", "--mode", "stdio"]
}
}
}Or when running via direct Python executable in a local virtual environment:
{
"mcpServers": {
"guardrail": {
"command": "python",
"args": ["-m", "guardrail.server", "serve", "--mode", "stdio"],
"cwd": "/absolute/path/to/guardrail-mcp"
}
}
}CLI scan (ground truth)
python - <<'PY'
from pathlib import Path
from guardrail.hybrid_scan import hybrid_scan
r = hybrid_scan(
Path("examples/vulnerable_sample.py").read_text(encoding="utf-8"),
filename="examples/vulnerable_sample.py",
)
print(r["status"], r["security_verdict"], r["issue_count"], r.get("engines"))
PYexamples/ contains intentional insecure fixtures for tests and demos only (labeled in-file). Values are synthetic.
Capabilities
Area | Implementation |
Secrets / high-signal patterns |
|
Python AST + multi-hop taint |
|
Tree-sitter (optional grammars) |
|
Repo / git-diff scan |
|
Dependencies / OSV |
|
SARIF / SBOM |
|
Enterprise auth, RBAC, policy |
|
Custom rules / plugins |
|
Tests
python -m unittest discover -s tests -vOr with pytest:
pytestPublished summary: docs/test-results.md (reproduce with the command above).
Performance
Indicative micro-benchmarks are in docs/PERFORMANCE.md and benchmarks/. Re-run on your machine before relying on numbers.
Enterprise mode
Optional multi-tenant gateway (API keys/JWT, RBAC, path sandbox, audit, rate limits). See docs/ENTERPRISE.md. Do not deploy HTTP enterprise mode without authentication.
Hosted listing
Optional commercial listing: mcpize.com/mcp/guardrail.
Self-hosting the MIT core remains free. Pricing on MCPize is set in that marketplace dashboard.
Security
Threat model: docs/SECURITY_MODEL.md
Vulnerability reporting: SECURITY.md
Claims policy: docs/ACCURACY.md
License
MIT — LICENSE.
Available Tools
23 toolsaudit_cloud_costC
Rough AWS/GCP monthly SKU catalog estimate from IaC text.
Inputs: cloud_provider (required), infrastructure_content (required).
audit_code_safetyA
Hybrid multi-engine scan: secrets regex, Python AST + advanced multi-hop taint, tree-sitter structural sinks, language grids, custom rules/plugins. Returns redacted issues, engines used, risk score, security_verdict.
Inputs: source_code (required), hybrid, use_ast, filename, +5 more.
audit_container_configD
Dockerfile / Kubernetes security heuristics.
Inputs: content (required), filename.
audit_infra_securityC
IaC misconfigs + budget gate on estimated monthly burn.
Inputs: infrastructure_content (required), cloud_provider, budget_limit_usd.
compliance_reportC
Generate a lightweight compliance evidence report for auditors.
Inputs: frameworks.
engine_statusB
Report hybrid engine capabilities (tree-sitter langs, plugins, etc.).
Inputs: no named parameters.
enterprise_healthC
Enterprise health, metrics, and non-secret config status.
Inputs: no named parameters.
enterprise_policy_statusB
Show active policy pack and gate thresholds for the caller tenant.
Inputs: no named parameters.
evaluate_policyC
Run policy pack evaluation against a prior scan result object.
Inputs: result (required), policy_pack.
export_sarifC
Convert issues to SARIF 2.1.0 JSON.
Inputs: issues (required).
full_pipelineD
Repo/diff scan + deps + fixes + SARIF + SBOM.
Inputs: path (required), base, head, mode, +4 more.
generate_sbomC
Generate CycloneDX and/or SPDX SBOM JSON.
Inputs: path (required), format.
issue_access_tokenC
Issue a short-lived JWT (admin). Requires GUARDRAIL_JWT_SECRET.
Inputs: role (required), subject (required), tenant_id (required), ttl_seconds.
list_audit_eventsC
List recent in-memory audit events (operator+).
Inputs: tool, limit.
list_pluginsA
List loaded plugins and custom rule counts.
Inputs: no named parameters.
manage_tenantC
Inspect or update in-memory tenant quota counters (admin).
Inputs: action (required), tenant_id.
reload_enterprise_configC
Reload enterprise YAML/JSON from disk (admin).
Inputs: path.
scan_dependenciesC
Dependency inventory + optional OSV CVE query.
Inputs: path (required), use_network, run_npm_audit, run_pip_audit.
scan_git_diffB
Scan only files changed in a git range (PR/diff) or staged changes.
Inputs: path (required), base, head, staged, +1 more.
scan_historyC
Return recent dashboard scan history from local SQLite.
Inputs: limit, tenant_id.
scan_repositoryB
Parallel recursive repo scan with optional incremental cache.
Inputs: path (required), use_ast, workers, max_files, +1 more.
security_scoreC
Compute security score/grade from an issues list and optionally record history.
Inputs: issues (required), record, tenant_id.
suggest_fixesC
Template or LLM-assisted fix drafts for findings (never auto-applied).
Inputs: issues (required), path, limit, use_llm.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 23 tools
Each tool has a distinct domain (cloud cost, code safety, container, infra, compliance, etc.), but some overlap exists between audit functions (e.g., audit_code_safety vs. audit_infra_security) which could cause confusion. Descriptions are clear enough to differentiate in most cases.
Most tools follow a consistent verb_noun pattern with underscores (e.g., audit_cloud_cost, scan_repository). A few tools like 'full_pipeline' and 'enterprise_health' break the pattern but are still readable. Overall consistent.
23 tools is on the high side for a single server, but each serves a specific purpose in a comprehensive security scanning and management suite. The count feels justified given the breadth of functionality.
The tool set covers scanning, auditing, compliance, reporting, policy management, and admin tasks. Minor gaps exist (e.g., no tool to delete scan history or manage users beyond tenants), but core workflows are complete.
Maintenance
Related MCP Connectors
IaC, CI and dependency security review for coding agents: local scan CLI plus hosted OAuth MCP.
MCP gateway with runtime security policy, tool-call-level control, and audit of agent actions.
An MCP server that provides Javelin Standalone Guardrails
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP security server for AI coding agents. 12 tools: pre-install guardian, vulnerability audit, supply-chain attack detection via static code analysis, and CycloneDX 1.6 SBOM generation. Zero runtime dependencies.1599 npm15Apache 2.0
- AlicenseCqualityDmaintenanceEnterprise-grade MCP server for static application security testing with multi-tool integration, compliance verification, AI-powered remediation, and multi-tenant management.2310MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for AI agent security guardrails. Provides input validation, prompt injection detection, PII redaction, output filtering, policy enforcement, rate limiting, and comprehensive audit logging.111 npm1MIT
- AlicenseNot gradedqualityBmaintenanceDepGuard is an MCP server for real-time dependency safety checks, verifying packages against vulnerability databases, deprecation metadata, and a local cache.MIT