← Explore all mcp servers

INFRASTRUCTURE DEVELOPMENT / HashiCorp

Terraform MCP Server

Looks up Terraform Registry documentation and can manage HCP Terraform or Terraform Enterprise workspaces and runs.

“Terraform MCP Server”

01 / THE REASONING

Why this made the selection.

  • Combines provider/module documentation with separately credentialed workspace operations.
  • Offers tool/toolset filters and an organization allowlist for scoped deployments.

02 / THE REVIEW RECORD

What we actually inspected.

Source review has boundaries.
A clear record is more useful than a “safe” badge.

Material inspected

  • README.md (installation, capability and permission sections)
  • go.mod
  • cmd/terraform-mcp-server/main.go
  • LICENSE

Our findings

  • The implementation defaults to stdio and supports Streamable HTTP bound to loopback by default.
  • MPL-2.0 covers this server; it is not a statement about every Terraform product’s licence.

Not established by this review

  • Server startup, authentication and tool execution were not tested.

The review applies to the material and revision named here. A newer upstream release can change its behavior.

03 / PUT IT TO WORK

Connect a server deliberately.

Upstream setup instructions ↗

DOCUMENTED COMMAND

docker run -i --rm hashicorp/terraform-mcp-server

Copying does not execute this command. It may retrieve a newer version than the reviewed source.

  1. Use the container as the MCP client’s stdio command.
  2. For HCP/TFE operations, configure TFE_ADDRESS/TFE_TOKEN and restrict toolsets and organizations.

Before you start

  • Docker; HCP Terraform or Terraform Enterprise access only for account operations.

04 / FOLLOW THE EVIDENCE

The source trail.

Our notes are separate from the original resource.
Check upstream before adopting a new version.

  1. Official documentation ↗Checked

    https://github.com/hashicorp/terraform-mcp-server/blob/e2481878ee40560a91f07c38c09a478ede9fb87a/README.md

    Supports: summary, whySelected, bestFor, limitations, install, access, compatibility, transports

  2. https://github.com/hashicorp/terraform-mcp-server/blob/e2481878ee40560a91f07c38c09a478ede9fb87a/LICENSE

    Supports: license

  3. Implementation: go.mod ↗Checked

    https://github.com/hashicorp/terraform-mcp-server/blob/e2481878ee40560a91f07c38c09a478ede9fb87a/go.mod

    Supports: language, review

  4. https://github.com/hashicorp/terraform-mcp-server/blob/e2481878ee40560a91f07c38c09a478ede9fb87a/cmd/terraform-mcp-server/main.go

    Supports: language, review