Servers › Cloud & DevOps › Terraform

● MaintainedCloud & DevOps

Terraform MCP Server

The Terraform MCP Server provides seamless integration with Terraform ecosystem, enabling advanced automation and interaction capabilities for Infrastructure as Code (IaC) development.

Install

docker run -i --rm -e TFE_TOKEN=${input:tfe_token} -e TFE_ADDRESS=${input:tfe_address} hashicorp/terraform-mcp-server:1.3.0

Example config (Cursor / Claude Desktop)

{
  "mcpServers": {
    "terraform": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "TFE_TOKEN=${input:tfe_token}",
        "-e",
        "TFE_ADDRESS=${input:tfe_address}",
        "hashicorp/terraform-mcp-server:1.3.0"
      ],
      "env": {
        "TFE_TOKEN": "<your-value>",
        "TF_MCP_SHARED_SECRET": "<your-value>"
      }
    }
  }
}

VS Code uses "servers" instead of "mcpServers" (why). On Windows, wrap npx with cmd /c (fix).

At a glance

Repositoryhashicorp/terraform-mcp-server
GitHub stars1,551
Last commit2026-10-15 (1 days ago)
Statusmaintained
Clients mentioned in READMEClaude Desktop, Claude Code, Cursor, VS Code, Codex
AuthAPI key/token · TFE_TOKEN TF_MCP_SHARED_SECRET
Language / LicenseGo / MPL-2.0
Official MCP registryListed ✓
Weekly MCP digest
New servers, breaking changes, and fresh fixes. One email a week.