terraform — Claude Code plugin: Terraform MCP server
Adds the Terraform MCP server to Claude, so the agent can work with Terraform configs and Infrastructure as Code without leaving the chat.
/plugin install terraform@claude-plugins-official
/plugin marketplace add anthropics/claude-plugins-officialWhat terraform does
terraform is a HashiCorp plugin that wires the Terraform MCP server into Claude. The agent gets access to the Terraform ecosystem and can read, explain and write Infrastructure as Code configs from the chat window.
Under the hood it is an MCP server — a separate process Claude talks to over the MCP protocol. The plugin ships through the official marketplace anthropics/claude-plugins-official under Apache-2.0. Install takes two commands: add the marketplace, then install the plugin.
Nothing here is Terraform-specific beyond Terraform itself, so on a repo with no .tf files the server just sits idle. If your project does use Terraform, this is worth a look before you keep pasting config chunks into the chat by hand.
What it helps with
- read and explain existing Terraform configs in a repo
- write a new resource or module from a description
- figure out what a legacy
*.tffile actually provisions - check Terraform details without leaving Claude
Example prompts for the agent
- read my Terraform configs and explain what this module creates
- add an S3 bucket resource with versioning to
main.tf - check
variables.tfand list the variables nothing uses
How to install terraform
Plugin marketplace
/plugin install terraform@claude-plugins-official/plugin marketplace add anthropics/claude-plugins-officialStep by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own
Questions about terraform
How do I install terraform in Claude?
Add the marketplace first: /plugin marketplace add anthropics/claude-plugins-official. Then install the plugin: /plugin install terraform@claude-plugins-official.
What does the terraform plugin do?
It runs the Terraform MCP server and gives Claude access to the Terraform ecosystem, so the agent can work with Infrastructure as Code configs in the chat.
Who maintains the terraform plugin?
HashiCorp. It lives in the anthropics/claude-plugins-official repository and is licensed under Apache-2.0.
Source text
terraform · Apache-2.0
The Terraform MCP Server provides seamless integration with Terraform ecosystem, enabling advanced automation and interaction capabilities for Infrastructure as Code (IaC) development.
© HashiCorp · Apache-2.0 · anthropics/claude-plugins-official