OM

OpenTofu MCP

OpenTofu's server for searching the OpenTofu Registry: providers, versions, resources and modules. Hosted, keyless.

☁️ Cloud & infrastructureGitHub stars111Updated 2026-09-21By opentofuAuth: NoneGitHub ↗
Best for cloud & infrastructure · provisional · tested 2026-10-15

Returned the latest hashicorp/aws provider version in both Claude Code and Cursor with no key, in 2 calls in total. HashiCorp's Terraform MCP and the archived Terraform Registry MCP also passed both with 2 calls each, so this is a tie on pass and calls; OpenTofu gets the nod for the smaller tool list (7 vs 9 and 10), the same tiebreak used in Browser automation. Terraform MCP also passed in ChatGPT (Codex). Servers that need a cloud account (Cloudflare, AWS, Kubernetes) aren't tested.

Test results

Last passed 2026-10-15
Claude CodePassed2026-10-15 · install, connect, tools, agent task
CursorPassed2026-10-15 · install, connect, tools, agent task
Claude DesktopNot tested yet—
ChatGPT (Codex)Not tested yet—

Full result per app: Does it work with Claude Code? · Does it work with Cursor?

Protocol: starts, 7 tools listed · 2026-10-15

Install

claude mcp add opentofu -- npx -y mcp-remote https://mcp.opentofu.org/mcp

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

{
  "mcpServers": {
    "opentofu": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.opentofu.org/mcp"
      ]
    }
  }
}

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

{
  "mcpServers": {
    "opentofu": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.opentofu.org/mcp"
      ]
    }
  }
}

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

[mcp_servers.opentofu]
command = "npx"
args = ["-y", "mcp-remote", "https://mcp.opentofu.org/mcp"]

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

DateCheckResultVersion
2026-10-15Protocol (direct stdio)Protocol: starts, 7 tools listed1.0.1
2026-10-15Claude CodePassed
install, connect, tools, agent task
2.1.296 (Claude Code)
2026-10-15CursorPassed
install, connect, tools, agent task
2026.10.14-941492e

Tools seen by our harness (7)

search-opentofu-registryget-provider-detailsget-provider-versionsget-module-detailsget-module-versionsget-resource-docsget-datasource-docs
Sponsors