TM

Terraform MCP

HashiCorp's official Terraform MCP: provider docs and version lookups for infrastructure-as-code agents.

☁️ Cloud & infrastructureGitHub stars1,562Updated 2026-11-13License: MPL-2.0Auth: none for registry lookups (to verify)GitHub ↗
Runner-up · best for cloud & infrastructure

See the pick for the verdict.

Test results

Last passed 2026-10-19
Claude CodePassed2026-10-13 · install, connect, tools, agent taskTested with Claude Code 2.1.296 · server reported v1.3.0 · connect time not recorded
CursorPassed2026-10-13 · install, connect, tools, agent taskTested with Cursor CLI 2026.10.12-d47ca18 · server reported v1.3.0 · connect time not recorded
Claude DesktopPassed2026-10-19 · install, connect, tools, agent taskTested with Claude Desktop 2.37337.1 (Linux beta, Electron 44.7.0) · package version not recorded · connected in 0.0s
ChatGPT (Codex)Passed2026-10-15 · install, connect, tools, agent taskTested with Codex CLI 0.162.0-alpha.17.2 · package version not recorded · connect time not recorded

Server package and resolved dependency versions: not recorded for these runs (our harness records them from Oct 19, 2026 on).

Full result per app: Does it work with Claude Code? · Does it work with Cursor? · Does it work with Claude Desktop? · Does it work with ChatGPT (Codex)?

Protocol: starts, 9 tools listed · 2026-10-13 · connected in 0.0s
🧪 Test-box note: Docker isn't available on the box (no root); tested with HashiCorp's official 1.3.0 Linux binary from releases.hashicorp.com.

Real test

Passed

One run from our records. When two runs share a date, we show a failure if there is one.

Client
Claude Desktop · Claude Desktop 2.37337.1 (Linux beta, Electron 44.7.0)
Date
Oct 19, 2026
The task we gave
Using only the terraform MCP tools, find the latest version of the hashicorp/aws Terraform provider and reply with the version number.
What it promised
details not recorded for this run
What happened

2 tool calls recorded. The names were not stored on this run.

Tool result

{"content": [{"type": "text", "text": "6.69.1"}]}

Agent reply

The latest version of the hashicorp/aws Terraform provider is 6.69.1.
Verdict
Passed

Install

claude mcp add terraform -- terraform-mcp-server stdio

Run in your terminal. This exact command is what our harness runs in Claude Code; see the results above.

{
  "mcpServers": {
    "terraform": {
      "command": "terraform-mcp-server",
      "args": [
        "stdio"
      ]
    }
  }
}

Save as .cursor/mcp.json. This exact config is what our harness runs in Cursor; see the results above.

{
  "mcpServers": {
    "terraform": {
      "command": "terraform-mcp-server",
      "args": [
        "stdio"
      ]
    }
  }
}

Add to claude_desktop_config.json and restart Claude Desktop. Tested on the Linux beta; see the results above.

[mcp_servers.terraform]
command = "terraform-mcp-server"
args = ["stdio"]

Add to ~/.codex/config.toml (shared by the ChatGPT (Codex) CLI and the ChatGPT desktop app; Codex runs inside the ChatGPT desktop app). Tested with the ChatGPT (Codex) CLI bundled in the ChatGPT desktop app; see the results above.

Not connecting? Troubleshooting: Claude Code · Cursor · Claude Desktop · ChatGPT (Codex)

Test history

DateCheckResultVersions tested
2026-10-19Claude DesktopPassed
install, connect, tools, agent task
Claude Desktop 2.37337.1 (Linux beta, Electron 44.7.0) · package version not recorded
2026-10-15ChatGPT (Codex)Passed
install, connect, tools, agent task
Codex CLI 0.162.0-alpha.17.2 · package version not recorded
2026-10-13Protocol (direct stdio)Protocol: starts, 9 tools listedserver reported v1.3.0
2026-10-13Claude CodePassed
install, connect, tools, agent task
Claude Code 2.1.296 · server reported v1.3.0
2026-10-13CursorPassed
install, connect, tools, agent task
Cursor CLI 2026.10.12-d47ca18 · server reported v1.3.0

Tested on ToolPassed badge

ToolPassed: passed Claude Code, Cursor, Claude Desktop, ChatGPT (Codex)

Maker of Terraform MCP? It passed in Claude Code, Cursor, Claude Desktop, ChatGPT (Codex) on 2026-10-19. Add this free badge to your README; it links back to this listing. Free, no strings: the badge never changes a result.

[![Tested on ToolPassed](https://toolpassed.com/badge/mcp/terraform.svg)](https://toolpassed.com/mcp/terraform/)

Tools seen by our harness (9)

get_latest_module_versionget_latest_provider_versionget_module_detailsget_policy_detailsget_provider_capabilitiesget_provider_detailssearch_modulessearch_policiessearch_providers
Featured