Terraform
Official HashiCorp Terraform MCP for Terraform Registry provider documentation, module discovery, and infrastructure-as-code authoring context.
Installation path
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
- 01
Install the binary
Run
go install github.com/hashicorp/terraform-mcp-server/cmd/terraform-mcp-server@latest - 02
Open Add Server
Configuration → MCP Registry → Add Server in Cosmos.
- 03
Pick the Local MCP tab
- 04
Set the command
Command
terraform-mcp-server - 05
Add the arguments
Args
stdio - 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@latestAfter installation, configure the MCP command as the resulting terraform-mcp-server binary with args ["stdio"].
Authentication
None: uses public Terraform Registry data.