Back to MCP Servers
🔌

hashicorp/terraform-mcp-server

MPL-2.0API key required

🎖️🏎️☁️ - The official Terraform MCP Server seamlessly integrates with the Terraform ecosystem, enabling provider discovery, module analysis, and direct Registry API integration for advanced Infrastr

GoAPIs

Install

npx -y hashicorp-terraform-mcp-server

Required environment variables

MCP_TLS_KEYSet in your MCP config
PASTE_TFE_TOKENSet in your MCP config

claude_desktop_config.json

claude_desktop_config.json
{
  "mcpServers": {
    "hashicorp-terraform-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "hashicorp-terraform-mcp-server"
      ],
      "env": {
        "MCP_TLS_KEY": "<YOUR_MCP_TLS_KEY>",
        "PASTE_TFE_TOKEN": "<YOUR_PASTE_TFE_TOKEN>"
      }
    }
  }
}

Add this to your Claude Desktop config file. Find it at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS.