DevOpsVerifiedGo

terraform-mcp-server

Generate more accurate Terraform and automate workflows for HCP Terraform and Terraform Enterprise

Free
N/A rating (0 reviews)0 installs1,299 GitHub stars

The Terraform MCP Server is a Model Context Protocol (MCP) server that facilitates direct integration with public Terraform Registry APIs, allowing users to manage providers, modules, and policies efficiently. It supports dual transport modes, including Stdio and StreamableHTTP, with configurable endpoints to enhance flexibility in deployment. With comprehensive workspace management features, users can create, update, and delete workspaces while managing variables, tags, and run operations seamlessly. Additionally, the server incorporates OpenTelemetry metrics for monitoring tool usage, enabling users to track call volumes, latency, and failures in Streamable HTTP mode. However, it is important to note that the MCP server is intended for local use only, and users should take necessary precautions to secure their environment against potential vulnerabilities.

Compatible with

Claude DesktopCursor

Install

Claude Desktop

Add to your claude_desktop_config.json:

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

Config File Location

Mac: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Linux: ~/.config/claude/claude_desktop_config.json

Some servers require additional setup - check the GitHub README for specific instructions.

Permissions

ok0
ok1
terraform-mcp-server MCP Server — MCPNest