AI Index

Terraform

Official HashiCorp Cloud

Generate more accurate Terraform and automate workflows for HCP Terraform and Terraform Enterprise

Official

Published from the GitHub organization hashicorp, whose domain GitHub verified.

Registry name
io.github.hashicorp/terraform-mcp-server
Version
1.0.0
Transports
stdio
Packages
oci docker.io/hashicorp/terraform-mcp-server:1.0.0
Repository
github.com/hashicorp/terraform-mcp-server
First published
Jun 10, 2026
Updated
Jun 10, 2026

GitHub stars · Downloads

as of Oct 4, 2026
GitHub stars
1,542

Add it to a client

Commands and config follow each client’s own MCP docs. Some servers also need an API key or environment variables; see the server’s documentation.

claude mcp add terraform -- docker run -i --rm docker.io/hashicorp/terraform-mcp-server:1.0.0
Format from Claude Code’s docs
Codex
codex mcp add terraform -- docker run -i --rm docker.io/hashicorp/terraform-mcp-server:1.0.0
Format from Codex’s docs
Cursor mcp.json
{
  "mcpServers": {
    "terraform": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/hashicorp/terraform-mcp-server:1.0.0"
      ]
    }
  }
}
Format from Cursor’s docs
Gemini CLI settings.json
{
  "mcpServers": {
    "terraform": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/hashicorp/terraform-mcp-server:1.0.0"
      ]
    }
  }
}
Format from Gemini CLI’s docs
VS Code .vscode/mcp.json
{
  "servers": {
    "terraform": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/hashicorp/terraform-mcp-server:1.0.0"
      ]
    }
  }
}
Format from VS Code’s docs

Client compatibility

By transport: whether the client’s docs list a transport this server offers. It doesn’t cover sign-in or other requirements.

Sources

This data comes from the Official MCP Registry.