Terraform MCP
HashiCorp's official MCP server for Terraform Registry and IaC workflows
Last verified: August 17, 2026
How to Install Terraform MCP
$npx -y terraform-mcp-serverRequires Claude Desktop, Cursor, Windsurf, or another MCP-compatible client.
About Terraform MCP
HashiCorp's official Terraform MCP server lets AI assistants search the Terraform Registry, read provider and module documentation, and reason about infrastructure-as-code without hallucinating resource arguments. It resolves provider schemas on demand, which dramatically improves the accuracy of generated Terraform configuration. Deployable locally or in a remote environment for team use.
Terraform MCP is a Developer Tools MCP server designed for professional engineers and engineering teams. It enables wiring AI assistants into the inner loop of writing and shipping code by exposing Git, package, build, and CLI operations as MCP tools. Key capabilities include git and github operations (status, blame, prs), package and dependency inspection, build and test runner integration, and structured tool calls that work cleanly inside an LLM context. It integrates with Git, GitHub, GitLab, npm, pnpm, Docker, and common build systems, and is best suited for professional engineers and engineering teams who need reviewing diffs and opening prs from chat.
Key Features
- terraform
- iac
- devops
- hashicorp
- infrastructure
Pricing
- Core MCP server
- Community support
- Works with any MCP client
- Everything in Free
- Higher usage limits
- Priority support
- Everything in Pro
- SLA & SSO
- Dedicated support
Tier details are indicative — visit the Terraform MCP website for current pricing.
Pros & Cons
Pros
- Acts more like a pair programmer with real tools
- Tight scoping (one repo, dry-run) limits blast radius
- Keeps flow inside the editor
Cons
- Write operations require explicit guardrails
- Quality of output depends on repo hygiene
- Larger monorepos may need extra filtering
Best For
- Reviewing diffs and opening PRs from chat
- Triaging CI failures
- Scaffolding new packages or modules
- Repo-wide refactors with verification
Screenshots
Screenshots coming soon —
Submit yours →Our Take on Terraform MCP
The single biggest accuracy upgrade for AI-written Terraform. Vendor-maintained and stable enough for production use.