io.github.hashicorp

terraform-mcp-server

Terraform

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

stdioofficialservice

Package Details

docker.io/hashicorp/terraform-mcp-server:0.3.3

Transportstdio
Runtimedocker

Runtime Arguments

Positional
Position 0
run
env_var_name
TFE_ADDRESSEnvironment variable name
env_var_name
TFE_TOKENEnvironment variable name
env_var_name
ENABLE_TF_OPERATIONSEnvironment variable name
image_name
hashicorp/terraform-mcp-server:0.3.3The container image to run
Named
--rm
-i
-e
Set an environment variable in the runtime
-e
Set an environment variable in the runtime
-e
Set an environment variable in the runtime

Environment Variables

TFE_ADDRESS
Default:https://app.terraform.io

HCP Terraform or Terraform Enterprise base URL.

TFE_TOKEN
Secret

HCP Terraform or Terraform Enterprise API token used to authenticate requests.

ENABLE_TF_OPERATIONS(bool)
Default:false

Set to true to enable tools that execute Terraform operations requiring explicit approval.