MCP server

Terraform

MCP

HashiCorp’s official Terraform MCP.

Provider docs and HCP Terraform workflows from the people who ship Terraform — not a guessed resource block.

latest·MPL-2.0·Updated this quarter·github.com/hashicorp/terraform-mcp-server·Transport: stdio

Claude CodeCursorVS CodeDesktop
ScannedActive

claude_desktop_config.json

{
  "mcpServers": {
    "terraform": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "hashicorp/terraform-mcp-server"
      ]
    }
  }
}

By HashiCorp

Spec

What the server actually exposes.

  • search_providers

    read

    Look up provider resources and args.

  • explain_resource

    read

    Explain a resource against current docs.

  • workspace_info

    read

    HCP Terraform workspace status.

Guardrails

  • Credentials stay in env
  • Read-first unless a write tool is called
  • Official package, not a wrapper

terraform-mcp.mcp/tools

Tools

  • search_providers

    Look up provider resources and args.

    read
  • explain_resource

    Explain a resource against current docs.

    read
  • workspace_info

    HCP Terraform workspace status.

    read

Last call

{ "ok": true,
  "tool": "search_providers",
  "rows": 12 }

Other servers worth installing

Discussion

No notes yet. Be the first hunter to report back.