Does Terraform MCP work with ChatGPT (Codex)?
Yes. Terraform MCP passed every step of our test in ChatGPT (Codex) on Oct 15, 2026: it installed, connected, its tools were visible, and an agent used it to finish a real task.
Result
Steps
- install OK
- connect OK
- tools visible OK
- agent task: provider version OK
From our own harness run, not the maker’s claims. How we test.
Versions tested
Codex CLI 0.162.0-alpha.17.2 · package version not recorded · connect time not recorded · tested Oct 15, 2026
Server package and resolved dependency versions: not recorded for these runs (our harness records them from Oct 19, 2026 on).
What happened in this run
Install config we used
[mcp_servers.terraform]
command = "terraform-mcp-server"
args = ["stdio"]Connection check
server answered tool calls during the taskTools check
verified via task step: agent saw and called the server's tools
Agent task: provider version
- Tool calls, in order:
terraform:get_latest_provider_version
Raw details from our harness log for this run. Secrets redacted.
Set it up in ChatGPT (Codex)
Copy-paste config for every app is on the Terraform MCP page. Not connecting? ChatGPT (Codex) MCP troubleshooting.
Other apps we tested it in: Claude Code (passed) · Cursor (passed) · Claude Desktop (passed).