Free toolGenerate .mcp.json configs for Claude Code, Cursor & Codex →
Terraform logo

Terraform for AI coding agents

CI/CD & infrastructure · www.terraform.io

Claude Code fit
4/5
Visit site →

Official Anthropic-marketplace plugin with MCP server (no bundled skills).

The Terraform MCP Server provides seamless integration with Terraform ecosystem, enabling advanced automation and interaction capabilities for Infrastructure as Code (IaC) development.

Who Terraform is for

Terraform is the standard way to describe infrastructure as code, and HCP Terraform is the hosted control plane that runs it: remote state, locking, plan and apply runs, policy checks, and audit logs in one place. An agent that can read the registry and your state can propose real infrastructure changes instead of guessing provider syntax. It fits teams that need every change reviewed before it applies.

Not for: a single developer with a handful of resources, or teams that want a fully open source license, since Terraform ships under the Business Source License.

Pricing

Custom / Usage-based pricing - verify on official site.

Pricing could not be verified on the official page on Nov 15, 2026. See the official pricing page.

Setup and integrations

  • Claude Code: /plugin install terraform@claude-plugins-official, an official plugin with an MCP server.
  • Remote MCP server hosted by HashiCorp at https://mcp.terraform.io/mcp, in beta: connect with an HCP Terraform API token, no Docker or binary to run, works on any plan including Free.
  • Local MCP server: Docker image or go install github.com/hashicorp/terraform-mcp-server/cmd/terraform-mcp-server@latest, with TFE_TOKEN set.
  • The remote server exposes registry, private registry, and terraform toolsets, runs no destructive operations, is limited to 5 requests a second, and only connects to HCP Terraform organizations in the United States.
  • HCP Terraform API, the public Terraform Registry, and VCS-driven runs cover the rest. See how to add an MCP server.

Pros and limitations

Pros

  • The de facto infrastructure standard: the largest provider and module registry.
  • The remote MCP server needs no local install and works on the Free tier during the beta.
  • Remote state, locking, and policy checks stop two agents from applying conflicting changes.

Limitations

  • Per-resource billing charges for every resource in state every hour, even idle ones, so a granular estate gets expensive fast.
  • Moving up a tier multiplies the rate on every resource, so Standard costs nearly 5 times Essentials.
  • The remote MCP server is beta, US-only, and cannot run destructive operations, so applies still need another path.

Alternatives

GitHub is the pick if the gap is version control and CI for your Terraform code. GitLab is the pick if you want Terraform runs wired into an all-in-one DevOps pipeline. Buildkite is the pick if you want to run Terraform on your own agents.

Builder's Verdict

Terraform plus its MCP server is the right way to let an agent touch infrastructure: registry-grounded config, reviewed plans, and no local setup on the Free tier. The bill is the thing to watch, because every resource in state is a meter running 24 hours a day. Count your managed resources before you pick a tier.

How Terraform works in each agent

Scores appear only after we verify them, with a source and date. Methodology

AgentScoreMCPRemote / OAuthSkill / pluginVerified
C Claude Code 4/5 Yes Unknown Yes Oct 16, 2026
X OpenAI Codex Not verified.
▲ Cursor Not verified.
G GitHub Copilot Not verified.
A Google Antigravity Not verified.

Setup by agent

Claude Code
/plugin install terraform@claude-plugins-official

Source: https://code.claude.com/docs/en/discover-plugins

Trust: Official Listed in Anthropic's official plugin marketplace

Claude Code support

Plugin
Yes
Official marketplace
Yes
MCP server
Yes
Skills
No