
Terraform MCP Server
Officialby HashiCorp
Terraform MCP Server
The Terraform MCP Server is a Model Context Protocol (MCP) server that provides seamless integration with Terraform Registry APIs, enabling advanced automation and interaction capabilities for Infrastructure as Code (IaC) development.
Features
- Dual Transport Support: Both Stdio and StreamableHTTP transports with configurable endpoints
- Terraform Registry Integration: Direct integration with public Terraform Registry APIs for providers, modules, and policies
- HCP Terraform & Terraform Enterprise Support: Full workspace management, organization/project listing, and private registry access
- Workspace Operations: Create, update, delete workspaces with support for variables, tags, and run management
- OTel metrics for monitoring tool usage: Track tool-call volume, latency and failures in Streamable HTTP mode
Security Note: Depending on the query, the MCP server may expose certain Terraform data to the MCP client and LLM. Do not use with untrusted MCP clients or LLMs.
Prerequisites
- Docker installed and running (for containerized use)
- An AI assistant that supports the Model Context Protocol (MCP)
Configurable via environment variables for HCP Terraform/Terraform Enterprise address, API token, transport mode (stdio or streamable-http), logging, and CORS settings.
Related servers

n8n
by n8n-io
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

@modelcontextprotocol/server-everything
OfficialMCP server that exercises all the features of the MCP protocol

@modelcontextprotocol/server-filesystem
OfficialMCP server for filesystem access