Terraform
Terraform ranks 14 of 21 ranked MCP servers, with a row score of 58.3% (49–67%). Success rate by agent over 20 tasks: Claude Code 68% (49–83%), Codex 10% (2–26%), OpenCode 97% (86–99%). Mean ignore rate 42% (34–51%): the share of should-call trials with no call to the server before the answer. 20 validated tasks (5 held out), 3 trials per task and agent; run 2026-10-29 to 2026-10-30.
Its row
The same row as on the leaderboard. Click a cell to see its outcomes and diagnostics.
| Rank | Server | Domain | Claude Codesuccess rate | Codexsuccess rate | OpenCodesuccess rate | Row scoremean of 3 · 95% interval | Ignore ratemean of 3 |
|---|---|---|---|---|---|---|---|
| 14 | Terraform v1.4.1 | infra-as-code | 58.3%(49–67%) | 42%34–51% |
Results by task shape and harness
Task shape × harness
Success rate for each task shape on each harness. Stronger violet is higher, and a dash means the shape doesn't apply or the harness can't connect.
| Task shape | Claude Code | Codex | OpenCode |
|---|---|---|---|
| Look up by identifier | 73% (39–92%) | 0% (0–27%) | 93% (64–98%) |
| Search or filter | 20% (4–56%) | 0% (0–27%) | 93% (64–98%) |
| Two-step chain | 92% (57–98%) | 0% (0–32%) | 100% (68–100%) |
| Write, then verify | – | – | – |
| Built-in collision | 67% (25–93%) | 0% (0–52%) | 100% (49–100%) |
| Error recovery | 100% (49–100%) | 0% (0–51%) | 100% (49–100%) |
| Should not call | 100% (48–100%) | 100% (49–100%) | 100% (48–100%) |
Why tasks fail
How each harness's scored trials ended. The strongest violet is grounded correct.
- Grounded correct
- Ignored the result
- Answered from memory
- Used a built-in
- Wrong tool or bad args
- False call
- No answer
- Excluded
| Harness | Grounded correct | Ignored the result | Answered from memory | Used a built-in | Wrong tool or bad args | False call | No answer | Excluded (re-run) |
|---|---|---|---|---|---|---|---|---|
| Claude Code | 41 | 0 | 0 | 18 | 0 | 0 | 1 | 0 |
| Codex | 6 | 0 | 0 | 54 | 0 | 0 | 0 | 0 |
| OpenCode | 58 | 1 | 0 | 1 | 0 | 0 | 0 | 0 |
Harness differences on this server
Difference in success between two harnesses on the same tasks, with 95% intervals. Two harnesses can be told apart only when the interval excludes 0 and at least 3 tasks differ in the same direction.
| Comparison | Difference | 95% interval | Tasks |
|---|---|---|---|
| Claude Code − Codex | +58.3 pts | +38.0 to +76.8 pts | 20 |
| Claude Code − OpenCode | −28.3 pts | −47.8 to −12.3 pts | 20 |
| Codex − OpenCode | −86.7 pts | −96.5 to −70.5 pts | 20 |
How we ran it
HashiCorp's Terraform server, run from its release binary with only the registry toolset: 9 keyless tools for providers, modules and Sentinel policies on the public Terraform Registry. The HCP Terraform and private registry tools were off because no token was set. Tasks ask about version-pinned registry data, so the answers stay fixed. Any registry error, a rate limit included, reaches the agent as '404 Not Found' and can't be told apart from a real miss, so those trials are scored, not excluded.
- Package
terraform-mcp-server (release binary, releases.hashicorp.com)@ 1.4.1- Publisher
- HashiCorp
- Links
- GitHub releaseSource
sh \ -c '[ -n "$LEADERBOARD_CACHE_DIR" ] || LEADERBOARD_CACHE_DIR=$HOME/.cache/m3-leaderboard; exec "$LEADERBOARD_CACHE_DIR/bin/terraform-mcp-server-1.4.1" stdio --toolsets registry --log-level error' \ terraform-mcp-server
<…> parts are filled in per trial.
set -e; v=1.4.1; d="$HOME/.cache/m3-leaderboard/bin"; case "$(uname -s)_$(uname -m)" in Darwin_arm64) a=darwin_arm64 h=10e6d49e8437b4099d2d4435d87b95c6896a98ec4ba140bdaa48d0aaadc17f1b;; Darwin_x86_64) a=darwin_amd64 h=5fbcdc8e98ab4f80a4fb2c36ef03a380e1a6e261c05c633393833eb0ac6551bb;; Linux_x86_64) a=linux_amd64 h=8b2526451162e16d803ab014f7070f0f412962cdffffdcf446e70a846362481b;; Linux_aarch64|Linux_arm64) a=linux_arm64 h=02bd809e7225be9cac7d81be610e1082f63de0b134096f1119ef2d2e1524e662;; *) echo "terraform-mcp-server: no pinned build for $(uname -s) $(uname -m)" >&2; exit 1;; esac; t=$(mktemp -d); curl -fsSL -o "$t/m.zip" "https://releases.hashicorp.com/terraform-mcp-server/$v/terraform-mcp-server_${v}_$a.zip"; got=$( (sha256sum "$t/m.zip" 2>/dev/null || shasum -a 256 "$t/m.zip") | cut -d' ' -f1); [ "$got" = "$h" ] || { echo "terraform-mcp-server: sha256 $got != pinned $h" >&2; rm -rf "$t"; exit 1; }; unzip -q -o "$t/m.zip" terraform-mcp-server -d "$t"; mkdir -p "$d"; mv "$t/terraform-mcp-server" "$d/terraform-mcp-server-$v"; rm -rf "$t"; "$d/terraform-mcp-server-$v" --version | grep -q "Version: $v"Tasks
Public vs held-out tasks
−8.1 pts95% interval −28.6 to +15.7 pts
Success on public tasks minus success on held-out tasks, averaged over the harnesses. 5 of the 20 validated tasks are held out, so nobody can tune tool descriptions to their prompts. Their 45 trials are scored, but their prompts and transcripts are never published. The interval crosses 0, so there is no detectable gap.
Task validation
Each task version is validated once, with three checks. The first two run 2 trials per harness, and a third only when those two disagree. Told which tool to use, it must pass 2 trials on at least one harness, so it is solvable. Without the server, it must fail 2 trials on every harness, so it can't be answered from memory. When we swap a value in the server's data, the answer must change with it, so we know the answer came from the server. Tasks that fail a check are rewritten or removed and never scored.
| Task | Shape | Status | Told which tool (passed) | No server (correct) | Reason |
|---|---|---|---|---|---|
| terraform. | Two-step chain | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| terraform. | Two-step chain | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| terraform. | Two-step chain | Validated | Claude Code 2/2, Codex 2/2, OpenCode 3/3 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| terraform. | Built-in collision | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| terraform. | Built-in collision | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| terraform. | Error recovery | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| terraform. | Look up by identifier | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| terraform. | Look up by identifier | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| terraform. | Look up by identifier | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| terraform. | Look up by identifier | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| terraform. | Search or filter | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| terraform. | Search or filter | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| terraform. | Search or filter | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| terraform. | Search or filter | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Claude Code 0/2, Codex 0/2, OpenCode 0/2 | Passed all three checks |
| terraform. | Should not call | Validated | Claude Code 2/2, Codex 2/2, OpenCode 2/2 | Passed all three checks | |
| 5 held-out tasks | 5 validated, 0 dropped. Held-out task names and prompts stay private. | ||||
Run this suite in your CI
This server's tasks are M3 tests in tests/servers/terraform/. The command runs them with the same harness versions and models as this server's cells, on m3 0.3.2, and the workflow runs it on every pull request. Held-out tasks are not included.
m3 test --runtime managed \ --harness claude_code@2.1.312=claude-haiku-5-5 \ --harness codex@0.165.0=gpt-6-luna \ --harness opencode@1.19.5=anthropic/claude-haiku-5-5 \ --trials 3 \ -- tests/servers/terraform
[](https://m3.sineframe.com/leaderboard/server/terraform/)
name: MCP agent tests
on: [pull_request]
jobs:
m3:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
- name: Run the Terraform MCP Agent Usability suite
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
uvx --from sf-m3-cli==0.3.2 m3 test --runtime managed \
--harness claude_code@2.1.312=claude-haiku-5-5 \
--harness codex@0.165.0=gpt-6-luna \
--harness opencode@1.19.5=anthropic/claude-haiku-5-5 \
--trials 3 \
-- tests/servers/terraform