Skip to main content
Glama
GuardRail MCP v2.0 (Enterprise)

GuardRail MCP v2.0 (Enterprise)


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.

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-mcp

Option 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-mcp

MCP 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"))
PY

examples/ contains intentional insecure fixtures for tests and demos only (labeled in-file). Values are synthetic.

Capabilities

Area

Implementation

Secrets / high-signal patterns

rules.py, language grids

Python AST + multi-hop taint

ast_engine.py, taint.py

Tree-sitter (optional grammars)

treesitter_engine.py

Repo / git-diff scan

repo_scan.py, git_scan.py

Dependencies / OSV

deps.py (network optional)

SARIF / SBOM

sarif_export.py, sbom.py

Enterprise auth, RBAC, policy

guardrail/enterprise/

Custom rules / plugins

rule_engine.py, plugins.py

Tests

python -m unittest discover -s tests -v

Or with pytest:

pytest

Published 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

License

MIT — LICENSE.

Available Tools

23 tools
audit_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

    C2.7/5.0

    Scored across 23 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count4/5

    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.

    Completeness4/5

    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

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      MCP 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.
      15
      99 npm
      15
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      DepGuard is an MCP server for real-time dependency safety checks, verifying packages against vulnerability databases, deprecation metadata, and a local cache.
      MIT