Terraform MCP Server
HashiCorp's MCP server for Terraform.
What it does
HashiCorp's MCP server for Terraform. It connects an AI client to the public Terraform Registry for current provider documentation, modules and Sentinel policies, and, given an HCP Terraform or Terraform Enterprise token, to private registries and workspaces. It can be run locally from a Docker image or binary over stdio or Streamable HTTP, or reached as a remote server that HashiCorp hosts for HCP Terraform users. Workspace tools list, create, update and delete workspaces, projects, variables and tags and start runs; applying, discarding or cancelling runs, destroy runs and deletions stay off unless an operator sets ENABLE_TF_OPERATIONS.
Capabilities
- Look up provider documentation, modules and Sentinel policies in the Terraform Registry
- Search private registries in HCP Terraform or Terraform Enterprise
- Create, update and delete workspaces, variables and tags
- Start runs and read plans, applies and logs
- Apply, discard or cancel runs when explicitly enabled
About
- Publisher
- HashiCorp
- Tool
- Terraform
Install
- Run this to add it to Claude Code:
claude mcp add terraform -s user -t stdio -- docker run -i --rm hashicorp/terraform-mcp-server
- Run this to add it to Claude Code:
claude mcp add terraform -s user -t http \ --header "Authorization: Bearer <<TFE_TOKEN>>" \ https://mcp.terraform.io/mcp
From the project's documentation · Add to a config file with the config builder
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
Details
| Fact | Value | Source |
|---|---|---|
| Type | MCP server | |
| Tool | Terraform | |
| Publisher | HashiCorp | source |
| Official status | OfficialHashiCorp's developer docs document this server and link the repository | source |
| Connection | Local or remote | source |
| Can change data | Yes | source |
| Needs an API key or sign-in | No | source |
| Platforms | Not stated in its documentation | |
| AI clients | Claude Code, Claude Desktop, Cursor, Visual Studio Code, Codex, Gemini CLI | source |
| Licence | MPL-2.0 | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 17, 2026Version 1.4.11,562 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository docker: docker.io/hashicorp/terraform-mcp-server |
More from HashiCorp
2 servers · 16 skills
- Helios Design System MCP server (MCP server)
- azure-verified-modules (Skill)
- new-terraform-provider (Skill)
- provider-actions (Skill)
- provider-configuration (Skill)
- provider-docs (Skill)
Badge for your README
Maintain this project? Add a badge that links to this page.
[](https://kitbay.app/servers/hashicorp-docker-io-hashicorp-terraform-mcp-server/)
Sources
- README (README.md)github.com/hashicorp/terraform-mcp-server · Backs: AI clients, ConnectionNov 12, 2026
- Web pagedeveloper.hashicorp.com · Backs: Can change data, Needs an API key or sign-inNov 12, 2026
- Licence file (LICENSE)github.com/hashicorp/terraform-mcp-server · Backs: LicenceNov 12, 2026
- Web pagedeveloper.hashicorp.com · Backs: Official statusNov 12, 2026
- GitHub repositorygithub.com/hashicorp/terraform-mcp-server · Backs: Publisher, Activity, LicenceNov 18, 2026
- MCP Registry entryio.github.hashicorp/terraform-mcp-server · Backs: ConnectionNov 18, 2026