Cloud Infrastructure
Verified
Trust: 54/100 (Fair)Terraform MCP Guide
Plan and apply Terraform configurations. Inspect state, manage workspaces, and validate infrastructure code.
512 stars 19,800 downloadsby HashiCorp
Quick Start
Install
npx @mcp/terraformClaude Desktop Configuration
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"terraform-mcp": {
"command": "npx",
"args": [
"@mcp/terraform"
]
}
}
}What Terraform MCP Can Do
plan
Generate Terraform plans
apply
Apply infrastructure changes
inspect_state
View current state
Permissions Required
Terraform MCP requires the following permissions. Review the risk levels before granting access.
| Permission | Description | Risk |
|---|---|---|
terraform.read | Read Terraform state | low |
terraform.write | Apply infrastructure changes | critical |
Platform Compatibility
| Platform | Status |
|---|---|
| Claude Desktop | Supported |
| Cursor | Supported |
| LangChain | Supported |