io.github.hashicorp/terraform-mcp-server
Official HashiCorp Terraform MCP server for Terraform Registry, HCP Terraform, and Terraform Enterprise.
Configure your installation and copy the command below. Uses add-mcp to install the server into your agent of choice.
Optional HCP Terraform or Terraform Enterprise address.
Optional Terraform Enterprise API token.
npx add-mcp@latest hashicorp/terraform-mcp-server:0.5.0 --env TFE_ADDRESS=<TFE_ADDRESS> --env TFE_TOKEN=<TFE_TOKEN>