OpenTofu MCP
OpenTofu's server for searching the OpenTofu Registry: providers, versions, resources and modules. Hosted, keyless.
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-15Full result per app: Does it work with Claude Code? · Does it work with Cursor?
Install
claude mcp add opentofu -- npx -y mcp-remote https://mcp.opentofu.org/mcpRun 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
| Date | Check | Result | Version |
|---|---|---|---|
| 2026-10-15 | Protocol (direct stdio) | Protocol: starts, 7 tools listed | 1.0.1 |
| 2026-10-15 | Claude Code | Passed install, connect, tools, agent task | 2.1.296 (Claude Code) |
| 2026-10-15 | Cursor | Passed 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