TerraformCAUTION
The Terraform MCP Server provides seamless integration with Terraform ecosystem, enabling advanced automation and interaction capabilities for Infrastructure as Code (IaC) development.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
The Terraform MCP Server is a Model Context Protocol (MCP) server that integrates seamlessly with Terraform Registry and HCP Terraform APIs, enabling advanced automation and interaction capabilities for Infrastructure as Code (IaC) development.
Table of Contents
Get started Client integrations Build and run
Features Prerequisites Command Line Options Instructions
Installation Visual Studio Code Cursor Claude Desktop, Amazon Q Developer, and Kiro CLI Claude Code Codex CLI Gemini extensions Bob IDE and Shell
Install from source Building the Docker Image locally Transport Support Stdio Transport StreamableHTTP Transport
Server capabilities
d7c1976ec772OBSERVED · 2026-09-24Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add terraform-mcp-server:1.3.0 -- docker run -i --rm docker.io/hashicorp/terraform-mcp-server:1.3.0:None
Trust audit
CAUTIONgrade B · trust 87/100 Install with care. The audit found things worth knowing before you trust its output.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | WARN |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (7 observation(s))
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- found
Findings (11)
strings.HasPrefix(origin, "http://127.0.0.1:") ||
strings.HasPrefix(origin, "https://127.0.0.1:") ||
keyPEM = `-----BEGIN PRIVATE KEY-----
.copywrite.hcl
.go-version
.helmignore
{"GET with IPv4 localhost", "GET", "http://127.0.0.1:3000", 200, true},origin: "http://127.0.0.1:3000",
origin: "http://127.0.0.1:3000",
* Add `TF_MCP_SHARED_SECRET` to send an `X-Tf-Mcp-Secret` header on requests to HCP Terraform / TFE, allowing the backend to identify requests from a trusted MCP deployment [392](https://github.com/ha
Gates applied: no_behavioural_pass.
d7c1976ec772full audit observations/trust-audit/mcp-server/hashicorp__terraform.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-09-24 | d7c1976ec772 | CAUTION | B | 87 | first audit |
Questions
What is the Terraform MCP server?
The Terraform MCP Server provides seamless integration with Terraform ecosystem, enabling advanced automation and interaction capabilities for Infrastructure as Code (IaC) development.
Is Terraform safe to connect to an agent?
With care. The audit graded it B (87/100) and found 11 things worth knowing before you trust this server, listed below with the exact line each was found on.
What credentials does Terraform need?
No credential environment variables were found in its source, so it appears to need none.
How does Terraform run?
It speaks stdio and streamable-http, so it runs as a local process your client starts.
How current is this page?
The grade is for one exact copy of the source (d7c1976ec772), read on 2026-09-24. The repository is watched and re-audited when it changes.