Terraform MCP Server
Terraform Registry documentation, provider schemas, and module context for infrastructure agents.
Overview
HashiCorp's Terraform MCP server gives agents access to Registry documentation, provider schemas, and module information. It is primarily a knowledge and schema interface for writing correct Terraform, not a general-purpose cloud control plane. Still, generated infrastructure changes must go through normal review, planning, and approval.
Capabilities
- Registry search
- Provider schemas
- Module metadata
- Policy context
- Infrastructure documentation
Connection profile
- Transports
- stdio
- Authentication
- None for public Registry data; HCP token for private context (feature-dependent)
- License
- MPL-2.0
- Vendor
- HashiCorp
Client format support is reviewed against official client documentation. It is not a claim that this specific server was tested with every client.
Configuration starting point
A documented preset is available for this server. It contains placeholders, not real credentials. Generate a client-correct file or review the raw values below.
docker run -i --rm hashicorp/terraform-mcp-server
Security notes
- Do not let generated Terraform apply directly without plan review and human approval.
- Private modules and providers may require credentials; scope tokens and avoid exposing registry access broadly.
- Terraform plans can reveal infrastructure details; review logs before sharing.
The catalog records source evidence, not a security audit. Review the server's permissions, recent releases, and the data it can access before connecting it to a real account.
Related failure modes
Sources & evidence
- github.com/hashicorp/terraform-mcp-serverRepository · checked Oct 23, 2026 · documented
HashiCorp's official repository documents the Terraform MCP server, installation, and Registry tools.