OM

OpenTofu MCP

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

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

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. Confirmed Oct 20, 2026: a second run in Claude Code and Cursor passed again (returned hashicorp/aws 6.69.1).

Test results

Last passed 2026-10-20
Claude CodePassed2026-10-20 · install, connect, tools, agent taskTested with Claude Code 2.1.296 · mcp-remote 0.15.1 · connected in 3.2s
CursorPassed2026-10-20 · install, connect, tools, agent taskTested with Cursor CLI 2026.10.19-6bbf2c4 · mcp-remote 0.15.1 · connected in 1.9s
Claude DesktopPassed2026-10-19 · install, connect, tools, agent taskTested with Claude Desktop 2.37337.1 (Linux beta, Electron 44.7.0) · mcp-remote 0.15.1 · connected in 5.1s
ChatGPT (Codex)Passed2026-10-19 · install, connect, tools, agent taskTested with Codex CLI 0.162.0-alpha.17.2 · mcp-remote 0.15.1 · connect time not recorded

Server package tested: mcp-remote 0.15.1 (npm, Node v20.19.2; resolved 2026-10-20)

Direct and key dependencies as resolved: express 4.22.3 · open 10.2.0 · strict-url-sanitise 0.0.1 · undici 7.30.1

All 79 resolved dependencies
accepts==1.3.8
array-flatten==1.1.1
body-parser==1.20.8
bundle-name==4.1.1
bytes==3.1.2
call-bind-apply-helpers==1.0.2
call-bound==1.0.4
content-disposition==0.5.4
content-type==1.0.5
cookie==0.7.2
cookie-signature==1.0.7
debug==2.6.9
default-browser==5.5.1
default-browser-id==5.0.1
define-lazy-prop==3.0.0
depd==2.0.0
destroy==1.2.0
dunder-proto==1.0.1
ee-first==1.1.1
encodeurl==2.0.0
es-define-property==1.0.1
es-errors==1.3.0
es-object-atoms==1.1.2
escape-html==1.0.3
etag==1.8.1
express==4.22.3
finalhandler==1.3.2
forwarded==0.2.0
fresh==0.5.2
function-bind==1.1.2
get-intrinsic==1.3.0
get-proto==1.0.1
gopd==1.2.0
has-symbols==1.1.0
hasown==2.0.4
http-errors==2.0.1
iconv-lite==0.4.24
inherits==2.0.4
ipaddr.js==1.9.1
is-docker==3.0.0
is-inside-container==1.0.0
is-wsl==3.1.1
math-intrinsics==1.1.0
media-typer==0.3.0
merge-descriptors==1.0.3
methods==1.1.2
mime==1.6.0
mime-db==1.52.0
mime-types==2.1.35
ms==2.0.0, 2.1.3
negotiator==0.6.3
object-inspect==1.13.4
on-finished==2.4.1
open==10.2.0
parseurl==1.3.3
path-to-regexp==0.1.13
proxy-addr==2.0.8
qs==6.16.1
range-parser==1.2.1
raw-body==2.5.3
run-applescript==7.1.0
safe-buffer==5.2.1
safer-buffer==2.1.2
send==0.19.2
serve-static==1.16.3
setprototypeof==1.2.0
side-channel==1.1.1
side-channel-list==1.0.1
side-channel-map==1.0.1
side-channel-weakmap==1.0.2
statuses==2.0.2
strict-url-sanitise==0.0.1
toidentifier==1.0.1
type-is==1.6.18
undici==7.30.1
unpipe==1.0.0
utils-merge==1.0.1
vary==1.1.2
wsl-utils==0.1.0

Captured with: npm ls --all --json in the npx env.

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, 7 tools listed · 2026-10-15 · connected in 1.4s

Real test

Passed

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

Client
Cursor · Cursor CLI 2026.10.19-6bbf2c4
Date
Oct 20, 2026
The task we gave
Using only the opentofu 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

Tool calls:

opentofu:get-provider-versions

Other calls recorded:

getMcpToolsToolCall

Tool result

{"success": {"content": [{"text": {"text": "## Versions for hashicorp/aws\n\n**Latest Version**: v6.69.1\n\n- v6.69.1 (published: 2026-10-15T19:35:47Z)\n- v6.69.0 (published: 2026-10-14T17:42:15Z)\n- v6.68.0 (published: 2026-10-07T19:08:14Z)\n- v6.67.0 (published: 2026-09-30T19:33:54Z)\n- v6.66.0 (published: 2026-09-21T10:06:54Z)\n- v6.65.0 (published: 2026-09-16T19:16:59Z)\n- v6.64.0 (published: 2026-09-09T18:59:52Z)\n- v6.63.0 (published: 2026-09-03T13:52:41Z)\n- v6.62.0 (published: 2026-08-26T18:21:34Z)\n- v6.61.0 (published: 2026-08-19T20:37:23Z)\n- v6.60.0 (published: 2026-08-13T17:15:35Z)\n- v6.59.0 (published: 2026-08-12T17:48:37Z)\n- v6.58.0 (published: 2026-08-05T12:01:28Z)\n- v6.57.1 (published: 2026-07-29T18:55:45Z)\n- v6.57.0 (published: 2026-07-29T07:52:05Z)\n- v6.56.0 (published: 2026-07-22T19:34:04Z)\n- v6.55.0 (published: 2026-07-15T16:19:02Z)\n- v6.54.0 (published: 2026-07-08T19:03:55Z)\n- v6.53.0 (published: 2026-07-01T16:02:36Z)\n- v6.52.0 (published: 2026-06-24T17:24:48Z)\n- v6.51.0 (published: 2026-06-17T19:10:38Z)\n- v6.50.0 (published: 2026-06-10T18:57:10Z)\n- v6.49.0 (published: 2026-06-04T21:43:22Z)\n- v6.48.0 (published: 2026-06-03T20:00:15Z)\n- v6.47.0 (published: 2026-05-27T22:14:09Z)\n- v6.46.0 (published: 2026-05-20T19:14:49Z)\n- v6.45.0 (published: 2026-05-13T18:31:04Z)\n- v6.44.0 (published: 2026-05-06T19:39:25Z)\n- v6.43.0 (published: 2026-04-29T21:53:23Z)\n- v6.42.0 (published: 2026-04-22T22:29:44Z)\n- v6.41.0 (published: 2026-04-15T18:10:01Z

Agent reply

I’ll query the OpenTofu registry MCP directly and return just the latest `hashicorp/aws` provider version.`v6.69.1`
Verdict
Passed

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

DateCheckResultVersions tested
2026-10-20Claude CodePassed
install, connect, tools, agent task
Claude Code 2.1.296 · mcp-remote 0.15.1
2026-10-20CursorPassed
install, connect, tools, agent task
Cursor CLI 2026.10.19-6bbf2c4 · mcp-remote 0.15.1
2026-10-19Claude DesktopPassed
install, connect, tools, agent task
Claude Desktop 2.37337.1 (Linux beta, Electron 44.7.0) · mcp-remote 0.15.1
2026-10-19ChatGPT (Codex)Passed
install, connect, tools, agent task
Codex CLI 0.162.0-alpha.17.2 · mcp-remote 0.15.1
2026-10-15Protocol (direct stdio)Protocol: starts, 7 tools listedserver reported v1.0.1
2026-10-15CursorPassed
install, connect, tools, agent task
Cursor CLI 2026.10.14-941492e · package version not recorded
2026-10-15Claude CodePassed
install, connect, tools, agent task
Claude Code 2.1.296 · package version not recorded

Tested on ToolPassed badge

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

Maker of OpenTofu MCP? It passed in Claude Code, Cursor, Claude Desktop, ChatGPT (Codex) on 2026-10-20. 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/opentofu.svg)](https://toolpassed.com/mcp/opentofu/)

Tools seen by our harness (7)

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