Overview of Terraform MCP Server
mainThe Terraform MCP Server is a Model Context Protocol (MCP) server that integrates with Terraform Registry APIs. It enables advanced automation and interaction for Infrastructure as Code (IaC) development by providing tools for:
- Terraform Registry Integration: Accessing public providers, modules, and policies.
- HCP Terraform & Terraform Enterprise Support: Managing workspaces, listing organizations/projects, and accessing private registries.
- Workspace Operations: Creating, updating, and deleting workspaces, including managing variables, tags, and runs.
- Dual Transport Support: Operating in either
stdioorstreamable-httpmodes. - Observability: Providing OpenTelemetry (OTel) metrics for tool-call volume, latency, and failures in
streamable-httpmode.
Security Warning: The MCP server may expose Terraform data to the MCP client and LLM. Do not use it with untrusted clients or LLMs.