Skip to content
Try CosmosGet Started

Terraform

Remote MCP·Local·STDIO

Official HashiCorp Terraform MCP for Terraform Registry provider documentation, module discovery, and infrastructure-as-code authoring context.

Good for:IaC authoringProvider docsModule lookup

Installation path

Open Augment→Go to Configuration→Select MCP Registry→Click "Add Server"

Install the Terraform MCP server with Go, then choose Add Server, select Local MCP, point the command to the terraform-mcp-server binary, and pass stdio as the argument.

Setup steps

  1. 01

    Install the binary

    Run

    go install github.com/hashicorp/terraform-mcp-server/cmd/terraform-mcp-server@latest
  2. 02

    Open Add Server

    Configuration → MCP Registry → Add Server in Cosmos.

  3. 03

    Pick the Local MCP tab

  4. 04

    Set the command

    Command

    terraform-mcp-server
  5. 05

    Add the arguments

    Args

    stdio
  6. 06

    Click Add, then enable

    Toggle on Cosmos Agent or CLI.

Local command

Suggested name: terraform

go install github.com/hashicorp/terraform-mcp-server/cmd/terraform-mcp-server@latest

After installation, configure the MCP command as the resulting terraform-mcp-server binary with args ["stdio"].

Authentication

None: uses public Terraform Registry data.

Official documentation →