DEV · Dev Tools · Official server
Terraform
Terraform Registry lookups for providers and modules, plus HCP Terraform workflows.
- Transport
- Local (stdio)
- Status
- Official · HashiCorp
- Auth method
- None for public Registry; TFE_TOKEN for HCP Terraform / Enterprise
- Scopes / permissions
- Not documented
- Last verified
- Oct 15, 2026
- Tools listed
- 03
§1What it does
HashiCorp's Terraform MCP server gives agents accurate provider and module documentation from the Terraform Registry so they generate correct infrastructure code.
§2Setup
claude mcp add terraform -s user -t stdio -- docker run -i --rm hashicorp/terraform-mcp-serverSnippets adapted from the official documentation. Check the official page for current options and auth requirements.
§3Prompts to try
- “Write Terraform for an S3 bucket with versioning using the latest AWS provider.”
- “Find a registry module for a VPC.”