Skip to content

Terraform MCP

This guide adds Terraform MCP Server to the local unified gateway stack.

Enable Terraform MCP

Terraform MCP is available at:

  • http://127.0.0.1:8811/mcp

Start the stack:

just mcp-up

Optional HCP Terraform/TFE credentials

Set the following environment variables when you want HCP Terraform/TFE tools:

  • TFE_ADDRESS (default upstream value is https://app.terraform.io)
  • TFE_TOKEN

The server still works without these values for public Terraform Registry tools.

Validate end-to-end

Run the normal MCP validation flow:

just mcp-e2e
just mcp-smoke

If you changed stack wiring, also run:

just test
just build
just pre-commit