Terraform MCP Server
by hashicorp
Connects AI assistants to Terraform Registry and HCP Terraform for discovery, workspace management, and IaC workflows.
Install Terraform MCP Server
Pick your client, then add it in one click or paste the config.
https://mcp.terraform.io/mcp
Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.
Overview
Use cases
- Discover Terraform providers and modules
- Inspect private Terraform Registry content
- Manage HCP Terraform workspaces
- Review workspace variables, tags, and runs
- Monitor tool calls with OpenTelemetry metrics
Key features
- Terraform Registry provider, module, and policy access
- HCP Terraform and Terraform Enterprise integration
- Workspace, variable, tag, and run management
- Stdio and Streamable HTTP transports
- Approval-gated Terraform operations
- Optional OpenTelemetry metrics
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
ActiveLast checked Today
Recent health check succeeded.
51/51 checks healthy over the last 92d
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
GitHub stars1.6kStargazers on the source repository.
Last commitTodayMost recent push to the default branch.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.
How Terraform MCP Server works
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about Terraform MCP Server
hashicorp/terraform-mcp-server is an MCP server that connects AI assistants to the Terraform Registry, HCP Terraform, and Terraform Enterprise. Its main tools support provider, module, and policy discovery, private registry access, workspace management, variables, tags, and Terraform run operations over stdio or Streamable HTTP.
Install Docker and an MCP-compatible AI assistant, then configure the server for the selected client. The server supports containerized use and can run with stdio by default or Streamable HTTP when `TRANSPORT_MODE=streamable-http` is selected.
Set `TFE_ADDRESS` to the HCP Terraform address, including its protocol, and provide a Terraform API token through `TFE_TOKEN`. Streamable HTTP deployments must use the configured address rather than supplying it through a client header or query parameter.
Yes, Cursor is listed as a supported client. Configure Cursor to launch the server through its MCP settings, using stdio for a local process or the Streamable HTTP endpoint for an HTTP deployment.
Set `ENABLE_TF_OPERATIONS=true` to enable tools that require explicit approval. These tools are disabled by default, so enabling them should be part of a deliberate deployment and review process.
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
Badge Style:
Live Dynamic SVG Preview
Markdown (GitHub README)
[](https://allmcps.com/mcp/hashicorp-terraform-mcp-server)HTML Embed
<a href="https://allmcps.com/mcp/hashicorp-terraform-mcp-server"><img src="https://allmcps.com/api/badge/hashicorp-terraform-mcp-server?style=directory" alt="Terraform MCP Server on AllMCPs" /></a>