Skip to content
AgentAtlas

Official server by HashiCorp

Terraform MCP server

Look up providers and modules in the Terraform Registry and work with HCP Terraform workspaces.

Install

Pick your agent and copy one line. Remote servers ask you to sign in on first use.

claude mcp add terraform -- docker run -i --rm docker.io/hashicorp/terraform-mcp-server:1.4.1
Full steps for Claude Code →

What it can do

From HashiCorp's own MCP documentation.

Sign in

TFE_TOKEN env var (HCP Terraform or Terraform Enterprise API token), with optional TFE_ADDRESS. In HTTP mode a token can also go in an Authorization: Bearer header.

Tools (45)

search_providersget_provider_detailsget_provider_capabilitiesget_latest_provider_versionsearch_modulesget_module_detailsget_latest_module_versionsearch_policiesget_policy_detailslist_terraform_orgslist_terraform_projectslist_workspacesget_workspace_detailscreate_workspaceupdate_workspacedelete_workspace_safelylist_runsget_run_detailscreate_runaction_runsearch_private_modulesget_private_module_detailslist_variable_setslist_stacksget_stack_details

Options

  • --toolsets: registry (default), registry-private, terraform, all
  • --tools picks single tools. It cannot be combined with --toolsets.
  • TRANSPORT_MODE=streamable-http for HTTP. Default is stdio.
  • ENABLE_TF_OPERATIONS=true unlocks destructive tools. It is false by default.
  • --organization-allowlist (or MCP_ORGANIZATION_ALLOWLIST) limits which orgs HTTP mode serves

Good to know

  • Vendor warns not to use it with untrusted MCP clients or LLMs
  • create_workspace, update_workspace, delete_workspace_safely and action_run need ENABLE_TF_OPERATIONS=true
  • Default rate limits: 10 req/s burst 20 globally, 5 req/s burst 10 per session
  • Tokens in query parameters are rejected. TFE_ADDRESS cannot be set by clients over HTTP.
  • Self hosted only. Default HTTP endpoint is 127.0.0.1 port 8080 at /mcp.

Details

Registry name
io.github.hashicorp/terraform-mcp-server
Latest version
1.4.1 (updated 2026-10-23)
Packages

docker.io/hashicorp/terraform-mcp-server:1.4.1 (oci)

Links
HashiCorp docsSource

More in Cloud & infrastructure

Reviewed Oct 21, 2026. Official means published under HashiCorp's namespace in the MCP registry. It is not a security audit.

Built an MCP server? Get it listed everywhere →

Shipping an Android app? Google Play needs 12 testers for 14 days first. Get them with Tester Exchange →