The Terraform MCP Server is a Model Context Protocol (MCP) server that integrates with Terraform Registry APIs to facilitate automation and interaction for Infrastructure as Code (IaC) development.
From the registry: Generate more accurate Terraform and automate workflows for HCP Terraform and Terraform Enterprise
Please install the `terraform-mcp-server` MCP server into my current AI client (that's you).
Optional prerequisites:
- Docker — Required for containerized deployment (https://www.docker.com/)
- HCP Terraform/TFE token — Required for HCP Terraform and Terraform Enterprise features (https://app.terraform.io)
Canonical MCP server config (stdio transport):
- command: `docker`
- args: ["run","-i","--rm","hashicorp/terraform-mcp-server:latest"]
- optional environment variables:
- `TFE_TOKEN`: Terraform Enterprise / HCP Terraform API token (example: `<your-tfe-token>`)
- `TFE_ADDRESS`: HCP Terraform or TFE address (example: `https://app.terraform.io`)
Note: Official HashiCorp Terraform MCP. Terraform Registry, workspace management, HCP Terraform. Set ENABLE_TF_OPERATIONS=true to enable write operations. Also supports StreamableHTTP transport.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.TFE_TOKENrequiredTerraform Enterprise API tokenTFE_ADDRESSrequiredHCP Terraform or TFE addressAll Azure MCP tools to create a seamless connection between AI agents and Azure services.