MCP Server Policy

TERRAFORM MCP POLICY

Enforce policies on every tool call to the Terraform MCP Server. 10 tools listed, categorised, and ready for rules.

0 read 10 write 10 tools total
terraform cloud

GET STARTED

Download this policy scaffold and add your rules. Intercept enforces them on every tool call before it reaches Terraform.

terminal

# Download policy scaffold

curl -o terraform.yaml https://raw.githubusercontent.com/policylayer/intercept/main/policies/terraform.yaml

# Run with Intercept

intercept --policy terraform.yaml -- npx -y @

Server documentation: https://github.com/hashicorp/terraform-mcp-server

OTHER TOOLS

10

POLICY YAML

This scaffold lists every tool with empty rules. Add conditions — rate limits, argument validation, deny rules — then deploy with Intercept.

terraform.yaml
version: "1"
description: "Policy for "
default: "allow"
tools:
    functionDetails:
        rules: []
    listDataSources:
        rules: []
    moduleDetails:
        rules: []
    moduleSearch:
        rules: []
    policyDetails:
        rules: []
    policySearch:
        rules: []
    providerDetails:
        rules: []
    providerGuides:
        rules: []
    resourceArgumentDetails:
        rules: []
    resourceUsage:
        rules: []

RELATED POLICIES

FREQUENTLY ASKED QUESTIONS

What tools does the Terraform MCP server expose?

The Terraform MCP Server exposes 10 tools across 1 categories: Other. Each tool can be individually controlled with Intercept policies.

How do I enforce policies on Terraform?

Download the policy scaffold, add rules (rate limits, argument validation, deny rules), then run Intercept as a proxy in front of the Terraform MCP server. Every tool call is evaluated against your YAML policy before execution.

Is the Terraform policy free to use?

Yes. All Intercept policies are open source under the Apache 2.0 licence. Download, modify, and deploy without restrictions.

ENFORCE POLICIES ON TERRAFORM

Open source. One binary. Zero dependencies.