mcp server
HashiCorp Terraform MCP Server
HashiCorp's MCP server for Terraform Registry providers and modules, plus HCP Terraform and TFE workspaces.
Set up
Runs on your computer. Pick your agent and operating system.
Before you start
- Docker Desktop
{
"mcpServers": {
"terraform": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"TFE_TOKEN",
"-e",
"TFE_ADDRESS",
"-e",
"TRANSPORT_MODE",
"hashicorp/terraform-mcp-server"
]
}
}
}same format Cursor, GitHub Copilot CLI, Junie, JetBrains AI Assistant, Augment (Auggie CLI), Factory Droid, Kiro, Devin CLI +12
Values in angle brackets are placeholders. Restart Claude Desktop after editing its config.Claude Desktop docs
Tools provided
As listed by the project. Your agent asks before calling them, depending on its settings.
search_providersSearch Terraform Registry providersget_provider_detailsGet provider detailslist_workspacesList HCP Terraform workspaces
README
synced Oct 13, 2026HashiCorp Terraform MCP Server
HashiCorp's MCP server for Terraform Registry providers and modules, plus HCP Terraform and TFE workspaces.
Install
docker run -i --rm hashicorp/terraform-mcp-server
Configuration
| Variable | Required | Description |
|---|---|---|
TFE_TOKEN | No | HCP Terraform or Terraform Enterprise API token, for workspace tools |
TFE_ADDRESS | No | HCP Terraform or TFE address including protocol |
TRANSPORT_MODE | No | stdio (default) or streamable-http |
Tools
search_providers— Search Terraform Registry providersget_provider_details— Get provider detailslist_workspaces— List HCP Terraform workspaces
About this listing
Details were gathered from the project's public pages on 2026-10-13 and have not been reviewed by a person yet. Read the project's own documentation before giving it access to anything sensitive.
Sources: