Skip to content
Kitbay
MCP server

terraform-guardrail

Runs locallyBUSL-1.1Updated on Jun 11, 20266GitHub stars

TerraGuard, published as terraform-guardrail on PyPI, is a governance tool that checks Terraform code against platform rules outside Terraform itself.

What it does

TerraGuard, published as terraform-guardrail on PyPI, is a governance tool that checks Terraform code against platform rules outside Terraform itself. It can be used as a CLI, REST API, web interface, CI gate or a stdio server started with terraform-guardrail mcp. The README brands MCP as Multi-Cloud Policy and lists scanning, provider metadata lookup and snippet generation as the server's tools. The wider project includes a catalog of built-in rules, OPA policy bundles, secret checks across .tf, .tfvars and state files, pass, warn or block decisions for several CI systems, and remediation guidance.

Capabilities

  • Scan Terraform files against guardrail rules
  • Look up provider metadata from the Terraform Registry
  • Generate Terraform resource snippets
  • Find secrets in Terraform and state files