Skip to content
Terraform MCP Server logo

Terraform MCP Server

HashiCorp Terraform MCP server for Infrastructure as Code workflows, including provider and module discovery through the Terraform Registry.

Connect

  1. Copy the MCP config below.
  2. In Cursor, open Settings → MCP and add a new global server, or create .cursor/mcp.json in your project.
  3. Paste the JSON, save, and refresh MCP connections.
  4. If the server needs extra setup, follow the GitHub readme.

MCP config

Paste into Cursor (.cursor/mcp.json) or Claude Desktop

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