terraform-mcp-server

hashicorp/terraform-mcp-server
★ 1,275 stars Go 🔌 API Integration Updated 1mo ago
The Terraform MCP Server provides seamless integration with Terraform ecosystem, enabling advanced automation and interaction capabilities for Infrastructure as Code (IaC) development.
View on GitHub →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "terraform-mcp-server": {
      "command": "go",
      "args": [
        "run",
        "github.com/hashicorp/terraform-mcp-server@latest"
      ]
    }
  }
}

README Excerpt

The Terraform MCP Server is a [Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction) server that provides seamless integration with Terraform Registry APIs, enabling advanced automation and interaction capabilities for Infrastructure as Code (IaC) development. - **Dual Transport Support**: Both Stdio and StreamableHTTP transports with configurable endpoints

Tools (20)

ENABLE_TF_OPERATIONSLOG_FORMATLOG_LEVELMCP_ALLOWED_ORIGINSMCP_CORS_MODEMCP_ENDPOINTMCP_KEEP_ALIVEMCP_RATE_LIMIT_GLOBALMCP_RATE_LIMIT_SESSIONMCP_SESSION_MODEMCP_TLS_CERT_FILEMCP_TLS_KEY_FILETFE_ADDRESSTFE_SKIP_TLS_VERIFYTFE_TOKENTRANSPORT_HOSTTRANSPORT_MODETRANSPORT_PORTinfostateful