Terraform MCP Server enables AI assistants to manage infrastructure as code through natural language. Create resources, manage state, and deploy infrastructure across any cloud provider conversationally.
65% of deployments fail due to configuration errors. Complex HCL syntax, state management, drift detection - infrastructure shouldn't be this fragile.
Terraform MCP makes infrastructure conversational. Provision resources, manage state, and ensure consistency naturally. Your AI becomes your DevOps engineer.
Deploy to AWS, Azure, GCP, and 100+ providers seamlessly.
Automatic state handling with drift detection and recovery.
Create reusable modules with best practices built-in.
Enforce compliance and security policies automatically.
Install Terraform MCP
npm install -g terraform-mcp-server
Configure cloud credentials
Set up AWS, Azure, or GCP credentials
Configure Claude Desktop
{
"mcpServers": {
"terraform": {
"command": "terraform-mcp",
"args": ["--workspace", "/path/to/workspace"]
}
}
}
Start provisioning!
Try: "Create a VPC with public and private subnets"
Migrate infrastructure to cloud providers.
Deploy across multiple cloud providers.
Enforce policies and compliance rules.
Resource creation:
"Create an EC2 instance with auto-scaling"
Network setup:
"Set up a VPC with public and private subnets"
State management:
"Show infrastructure drift and fix it"
Module creation:
"Create a reusable module for RDS setup"
Supports 100+ providers including AWS, Azure, GCP, Kubernetes, and more.
Yes! Import existing resources and manage them with Terraform.
Full state management with remote backends and locking support.
Complete GitOps workflow with plan, review, and apply cycles.
Automatic drift detection with remediation suggestions.