Back to directory
TM

Terraform MCP Server

Official HashiCorp server for Terraform Registry and Cloud data.
Last updated July 18, 2026
Cloud & InfrastructureLocal · stdioGo1.5k

Overview

HashiCorp's official Terraform MCP server gives an agent tools to search the Terraform Registry for providers and modules, retrieve documentation, and query Terraform Cloud workspace data.

Use cases

Look up the correct resource arguments for a Terraform provider without leaving the editor.
Search the Terraform Registry for a module that fits a specific use case.
Query a Terraform Cloud workspace's run status or state.

Install

{
  "mcpServers": {
    "terraform": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "TFE_ADDRESS=<<PASTE_TFE_ADDRESS_HERE>>",
        "-e",
        "TFE_TOKEN=<<PASTE_TFE_TOKEN_HERE>>",
        "hashicorp/terraform-mcp-server:1.1.0"
      ]
    }
  }
}

FAQ

Only for the Terraform Cloud/Enterprise integration features — Registry search and documentation lookup work without one.