Best AI Tools for Terraform and Infrastructure as Code 2026
The short answer
For most teams the best AI setup for Terraform is the coding agent you already use plus HashiCorp’s Terraform MCP server, with your IaC platform enforcing policy before apply. Specialised tools win in specific cases. As of December 3, 2026:
- Terraform MCP server (HashiCorp) — best overall. Free, MPL-2.0, gives any MCP client current provider docs, modules and Sentinel policies.
- Pulumi Neo — best if you are on Pulumi Cloud. Agent for code reviews, CLI work and incident response, $3 per million tokens.
- Spacelift Intent — best for self-service, non-critical infrastructure from plain English under policy.
- AWS IaC MCP server — best for CloudFormation and CDK shops: template validation, compliance checks, failed-deployment analysis.
To pick the platform that runs your plans, see HCP Terraform vs Pulumi vs Spacelift vs env zero.
Compared
| Terraform MCP server | Pulumi Neo | Spacelift Intent | AWS IaC MCP server | |
|---|---|---|---|---|
| What it is | MCP server for Terraform registry + HCP Terraform/TFE | Pulumi’s infrastructure agent | Natural-language provisioning through Terraform providers | MCP server for CloudFormation + CDK |
| Works with | Claude Code, Codex, Cursor, VS Code, Gemini, Kiro, OpenCode | Pulumi Cloud, CLI, Slack, MCP | Your LLM via MCP, or Spacelift’s assistant | Any MCP client |
| Price | Free | $3 per 1M tokens (Essentials $40/mo, Pro $400/mo plans) | Open-source edition free; commercial in Spacelift plans | Free |
| Licence | MPL-2.0 | Commercial | Apache-2.0 (OSS edition) | Apache-2.0 |
| Policy | Finds Sentinel policies | Policy packs on Pro | OPA policy on every action | cfn-guard / Control Tower rules |
| Writes code? | Agent writes HCL with correct docs | Yes, and opens PRs for review | No — calls APIs directly, export to code later | Agent writes templates; tool validates |
| Activity (Dec 3, 2026) | v1.4.1 (Oct 23, 2026), ~1,560 stars | GA | Last push Oct 28, 2026 | awslabs/mcp ~10,000 stars, pushed Dec 3 |
Prices from Pulumi’s pricing page and GitHub data read on December 3, 2026.
Notes on each
Terraform MCP server. The cheapest fix for the most common failure of AI-written Terraform: invented or outdated resource arguments. The server searches current provider documentation, module inputs and outputs and Sentinel policies, and with an HCP Terraform or Terraform Enterprise token it can list organizations and workspaces and manage workspaces, variables, tags and runs. Run it locally (stdio, recommended at 127.0.0.1), self-host it for central governance, or use HashiCorp’s remote server (beta, HCP Terraform only). Tool filtering (--toolsets registry,terraform) keeps write tools away from agents that only need docs.
Pulumi Neo. Built into Pulumi Cloud: Neo reviews infrastructure code, works in the CLI and Slack, and Pro adds custom Pulumi Agents for incidents, failed deployments and change preparation. Usage costs $3 per million tokens on Essentials ($40/month, up to 500 managed resources) and Pro ($400/month, up to 2,000). Pulumi also ships skills so Claude Code or Codex can write Pulumi code and preview changes.
Spacelift Intent. Skips HCL entirely: you describe what you need and Intent calls cloud APIs through Terraform providers inside Spacelift’s control plane, checked by OPA policy and fully audited. Spacelift is explicit that it targets prototypes, QA environments and other non-critical workloads, and that existing modules are not supported yet. Use it to stop developers creating shadow infrastructure, not to replace your production IaC.
AWS IaC MCP server. Part of AWS Labs’ MCP collection. Validates CloudFormation with cfn-lint, checks security compliance with cfn-guard and the AWS Guard Rules Registry, analyses failed deployments against 30+ known failure patterns with CloudTrail links, and searches CloudFormation and CDK documentation and samples.
How to choose
- Terraform or OpenTofu, any cloud, any coding agent → Terraform MCP server; keep plan/apply in CI.
- Already on Pulumi Cloud → Pulumi Neo.
- Developers wait days for test environments → Spacelift Intent with strict OPA policies.
- CloudFormation or CDK on AWS → AWS IaC MCP server.
- Troubleshooting live clusters rather than writing IaC → see best AI tools for Kubernetes troubleshooting.
Last verified: December 3, 2026.