terraform
The Terraform MCP Server provides seamless integration with Terraform ecosystem, enabling advanced automation and interaction capabilities for Infrastructure as Code (IaC) development.
Summary
The Terraform MCP Server integrates Terraform into Claude Code, enabling you to manage infrastructure as code directly from your chat interface.
- It automates Terraform operations like planning, applying, and destroying resources, making IaC workflows faster and more interactive.
Install & Usage
~/.claude.jsonAdd the configuration to "mcpServers": { "terraform": { "command": "...", "args": [] } }
/mcpUse Cases
Usage Examples
/terraform plan --out=tfplan to generate and review a plan file
/terraform apply tfplan to apply the reviewed plan to your infrastructure
/terraform validate to check the syntax and structure of your Terraform files
Security Audits
Frequently Asked Questions
What is terraform?
The Terraform MCP Server integrates Terraform into Claude Code, enabling you to manage infrastructure as code directly from your chat interface. It automates Terraform operations like planning, applying, and destroying resources, making IaC workflows faster and more interactive.
How to install terraform?
To install terraform: open your mcp config (~/.claude.json), then add the config to "mcpServers": { "terraform": { "command": "...", "args": [] } }. Finally, /mcp in Claude Code.
What is terraform best for?
terraform is a mcp categorized under Development. It is designed for: mcp. Created by HashiCorp.
What can I use terraform for?
terraform is useful for: Review and approve a Terraform plan before applying changes to production infrastructure.; Automatically generate Terraform configuration files for a new AWS EC2 instance based on natural language requirements.; Run terraform destroy to clean up temporary development environments after testing.; Validate Terraform code syntax and formatting without leaving the chat interface.; Fetch the current state of a Terraform-managed resource to troubleshoot configuration drift.; Execute a targeted terraform apply on a specific module to update only a subset of infrastructure..