McpMux
Back to Registry

Terraform (Docker) MCP Server

Community

Contributed by HashiCorp

Connect to the HashiCorp Terraform ecosystem via Docker. Search the public Terraform Registry for providers, modules, and policies, read documentation, and (with an optional token) interact with HCP Terraform / Terraform Enterprise workspaces and runs in an isolated container.

About the Terraform (Docker) MCP Server

The Terraform (Docker) MCP server is a local (stdio) Model Context Protocol server available in the McpMux registry. Connect to the HashiCorp Terraform ecosystem via Docker. Search the public Terraform Registry for providers, modules, and policies, read documentation, and (with an optional token) interact with HCP Terraform / Terraform Enterprise workspaces and runs in an isolated container. This is a community-contributed MCP server by HashiCorp.

Install the Terraform (Docker) MCP server with one click using McpMux. It works with Cursor, Claude Desktop, Claude Code, VS Code, ChatGPT, Windsurf, JetBrains, and any MCP-compatible AI client. This server requires authentication — McpMux securely stores your credentials with AES-256-GCM encryption.

Transport Configuration

Transport Configuration
{
  "type": "stdio",
  "command": "docker",
  "args": [
    "run",
    "-i",
    "--rm",
    "-e",
    "TFE_TOKEN",
    "-e",
    "TFE_ADDRESS",
    "hashicorp/terraform-mcp-server:latest"
  ],
  "env": {
    "TFE_TOKEN": "${input:TFE_TOKEN}",
    "TFE_ADDRESS": "${input:TFE_ADDRESS}"
  },
  "metadata": {
    "inputs": [
      {
        "id": "TFE_TOKEN",
        "label": "HCP Terraform / Terraform Enterprise API Token",
        "description": "Optional API token for HCP Terraform or Terraform Enterprise. Leave empty to use only the public Terraform Registry. Provide a token to access private registries, workspaces, and runs.",
        "type": "text",
        "required": false,
        "secret": true,
        "placeholder": "<your-hcp-terraform-or-tfe-api-token>",
        "obtain": {
          "url": "https://app.terraform.io/app/settings/tokens",
          "instructions": "1. Sign in to HCP Terraform (or your Terraform Enterprise instance)\n2. Open User Settings > Tokens (or a Team/Organization token)\n3. Create an API token\n4. Copy the token value",
          "button_label": "Create Token"
        }
      },
      {
        "id": "TFE_ADDRESS",
        "label": "HCP Terraform / TFE Address",
        "description": "Optional base URL for HCP Terraform or a self-hosted Terraform Enterprise instance. Defaults to https://app.terraform.io when left empty.",
        "type": "url",
        "required": false,
        "secret": false,
        "placeholder": "https://app.terraform.io",
        "default": "https://app.terraform.io"
      }
    ]
  }
}
Details
TransportLocal (stdio)
Hostinglocal
Authoptional_api_key
Capabilities
ToolsResources

Categories

Tags

terraformhashicorpinfrastructure-as-codeiacregistryhcp-terraformterraform-enterprisedevopsdocker

Supported AI Clients

The Terraform (Docker) MCP server works with all MCP-compatible AI clients through McpMux:

CursorClaude DesktopClaude CodeVS CodeChatGPTWindsurfJetBrainsZedClineGemini CLIAmazon Q

Related MCP Servers

Install Terraform (Docker) with McpMux

One-click install from the McpMux desktop app. Auto-configures for Cursor, Claude, VS Code, ChatGPT, Windsurf, JetBrains, and any MCP-compatible client.