Does OpenTofu MCP work with Claude Code?

Yes. OpenTofu MCP passed every step of our test in Claude Code on Oct 15, 2026: it installed, connected, its tools were visible, and an agent used it to finish a real task.

Result

ResultPassed
Date testedOct 15, 2026
Plan tested onClaude Pro
App version2.1.296 (Claude Code)
Modelhaiku

Steps

  1. install OK
  2. connected OK
  3. tools visible OK
  4. agent task: provider version OK

From our own harness run, not the maker’s claims. How we test.

What happened in this run

Install config we used

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

Connection check

opentofu: npx -y mcp-remote https://mcp.opentofu.org/mcp - ✔ Connected

Tools check

verified via task step: agent saw and called the server's tools

Agent task: provider version

  • Tool calls, in order: mcp__opentofu__get-provider-versions

Raw details from our harness log for this run. Secrets redacted.

Set it up in Claude Code

Copy-paste config for every app is on the OpenTofu MCP page. Not connecting? Claude Code MCP troubleshooting.

Other apps we tested it in: Cursor (passed).

All MCP servers tested in Claude Code

Sponsors