The Terraform MCP Server provides seamless integration between AI assistants and Terraform infrastructure management systems, exposing tools for interacting with the public Terraform Registry, HCP Terraform, and Terraform Enterprise APIs. It enables capabilities such as querying providers and modules, managing workspaces, handling variables and runs, and accessing private registries while supporting both stdio and HTTP transports with OpenTelemetry monitoring. The server solves the problem of enabling AI-driven Infrastructure as Code automation and interaction by bridging language models with Terraform's ecosystem and management APIs.
claude mcp add --transport stdio hashicorp-terraform-mcp-server uvx terraform-mcp-server