Back to MCP Servers

Terraform Server

Access Terraform registry providers and modules for infrastructure-as-code workflows

terraformiacdevopsinfrastructurehashicorpcommunity

Installation

npm install -g @hashicorp/mcp-server-terraform

Configuration

{
  "mcpServers": {
    "terraform": {
      "command": "npx",
      "args": ["-y", "@hashicorp/mcp-server-terraform"]
    }
  }
}

How to use

  1. Run the installation command above (if needed)
  2. Open your Claude Code settings file (~/.claude/settings.json)
  3. Add the configuration to the mcpServers section
  4. Restart Claude Code to apply changes