OfficialCloud & Infrastructure

Terraform

by HashiCorp

Look up Terraform providers and modules and manage HCP Terraform workspaces from an assistant.

Best for

Infrastructure engineers who write Terraform with an assistant and want provider and module details looked up live rather than guessed.

Connect Terraform

Recommended setup

Local

This server runs on your machine. The publisher's guide has the exact command and settings for your client.

Before you connect

Depending on the query, the server may expose Terraform data to the MCP client and the model. The README says not to use it with untrusted MCP clients or models.

Connection details

Package

Docker image · stdio
docker.io/hashicorp/terraform-mcp-server:1.4.1

Overview

HashiCorp's Terraform MCP Server gives an assistant current information from the public Terraform Registry, covering providers, modules and policies, which helps it write accurate configuration instead of guessing from training data. With an HCP Terraform or Terraform Enterprise token it can also work with organizations, projects and workspaces, including variables, tags and runs. It runs locally from a Docker image over stdio by default, and can serve Streamable HTTP when configured. A setting called ENABLE_TF_OPERATIONS, off by default, controls the tools that require explicit approval.

What it can do

  • Integrates with the public Terraform Registry APIs for providers, modules and policies.
  • Works with HCP Terraform and Terraform Enterprise: workspaces with variables, tags and runs, organization and project listing, and private registry access.
  • Supports stdio and Streamable HTTP transports, with rate limits and CORS settings for HTTP mode.

What you need

Sign-in and credentials

TFE_TOKEN holds an HCP Terraform or Terraform Enterprise API token, and TFE_ADDRESS sets the address for self-managed Terraform Enterprise.

Runs as

Docker image (started with docker)

Sources

MCP Registry
Listed in the MCP Registry as io.github.hashicorp/terraform-mcp-server
Last checked
Oct 31, 2026
Record reviewed
Oct 31, 2026

Statements on this page come from

Why is this labelled Official?

Registry name io.github.hashicorp/terraform-mcp-server. The registry only lets an organization's owners publish under its io.github.<org> namespace (registry authentication docs, read 2026-10-30). The repository is in the hashicorp organization, and its README describes the server as integrating the Terraform Registry and HCP Terraform APIs (read 2026-10-31).

Listing on HistChat is not an endorsement or a security review. MCP servers can access data or perform actions, so review the source and permissions before connecting.

  • Azure MCP Server

    MicrosoftOfficial

    Work across many Azure services from an assistant through one local server that uses your existing Azure sign-in.

    Category
    Cloud & Infrastructure
    Connection
    Local
  • Cloudflare MCP Servers

    CloudflareOfficial

    Cloudflare's product-specific remote servers for docs, containers, Browser Run, DEX and CASB, plus several deprecated ones.

    Category
    Cloud & Infrastructure
    Connection
    Remote
    GitHub stars
    4.4k
  • Cloudflare API

    CloudflareOfficial

    Reach the whole Cloudflare API from an assistant with a few code-mode tools instead of thousands of endpoint tools.

    Category
    Cloud & Infrastructure
    Connection
    Remote
    GitHub stars
    1k
  • Vercel

    VercelOfficial

    Manage Vercel projects and deployments, analyze deployment logs and query Web Analytics from an AI assistant.

    Category
    Cloud & Infrastructure
    Connection
    Remote
  • AWS MCP Server

    Amazon Web ServicesOfficial

    Give an assistant access to AWS services and current AWS documentation through a managed server that runs under your IAM credentials.

    Category
    Cloud & Infrastructure
    Connection
    Remote
  • Kubernetes MCP Server

    Containers communityCommunity

    Operate Kubernetes and OpenShift clusters from an assistant: inspect pods, events and logs, and create or change resources.

    Category
    Cloud & Infrastructure
    Connection
    Local
    GitHub stars
    2.2k