MCP server · Org-owned · Audited from source
Terraform MCP server
by hashicorp/terraform-mcp-serverMPL-2.0 licenceAudited 24 Sep 2026 · source d7c1976ec772
Is it safe? With care — CAUTION, grade B (87/100). The tool list is built at runtime, so we cannot read it from the source. The audit recorded 11 findings (0 critical, 0 high, 3 medium, 8 low). Maintainer's description: The Terraform MCP Server provides seamless integration with Terraform ecosystem, enabling advanced automation and interaction capabilities for Infrastructure as Code (IaC) development.
Cite
Cite this page
ModelsAtlas. “Terraform MCP server (hashicorp/terraform-mcp-server)”. Retrieved 24 Sep 2026. https://modelsatlas.com/mcp/hashicorp/terraform
Trust audit
Audit 0.4.1 · full source read 24 Sep 2026
11 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemNone observedNothing seen in the source
- NetworkDeclared7 observations
- ShellNone observedNothing seen in the source
- DependenciesPinnedNothing floats
- SecretsFoundSee the findings
“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.
Five audit layers
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS 3 findings |
L1 Static source | Secrets, path traversal, supply chain | WARN 6 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS 1 finding |
L3 Inventory | Declared tools match the source | PASS 1 finding |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
Provenance & runtime
Who published it, and what the audit could and could not run
Provenance
- Repository owner
hashicorpOrganizationAccount type recorded when we read the repository. - PackageNo packageRuns from a repository checkout or a hosted URL.
- LicenceMPL-2.0From the repository, as read at the audited commit.
- Last pushTodayActivity of the repository when we read it.
- Source commit readd7c1976ec772The audit covers exactly this commit, read on 24 Sep 2026.
Runtime
- Sandbox runNot run yetThis audit read the source only; it did not execute the server.
- Tool inventoryBuilt at runtimeThe source declares no tools; the server lists them when a client connects, so we cannot read them.
Every value here is read from the record's own repository and audit.Suggest a correction
Findings (11)
Sorted by severity
MEDIUMNetwork egressnet.raw_ip · pkg/client/middleware.go:103
strings.HasPrefix(origin, "http://127.0.0.1:") ||
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMNetwork egressnet.raw_ip · pkg/client/middleware.go:104
strings.HasPrefix(origin, "https://127.0.0.1:") ||
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMHard-coded secretssecret.private_key · pkg/client/tls_test.go:36
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · e2e/cors_e2e_test.go:114
{"GET with IPv4 localhost", "GET", "http://127.0.0.1:3000", 200, true},- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · pkg/client/middleware_test.go:68
origin: "http://127.0.0.1:3000",
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · pkg/client/middleware_test.go:254
origin: "http://127.0.0.1:3000",
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWPrompt injectionprompt.transfer_instruction · CHANGELOG.md:50
* 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
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
LOWInventory / provenancemcp.no_tools_extracted · server.json
- Why
- the tool list is enumerated at runtime by tools/list, not declared in source
- Fix
- the page says so rather than showing an empty table
Tools it exposes
None declared in source
The tool list is built at runtime, so we cannot read it from the source.
Install
audited commit d7c1976
Read the findings first. The most severe is Network egress (medium) at pkg/client/middleware.go.
No connect command is recorded for this server yet. Follow the repository's own instructions, and read the findings above first.
Audit history
- !CAUTION B 87 / 100
First audit ·
d7c1976ec772
README badge
For maintainers · updates on every re-audit
[](https://modelsatlas.com/mcp/hashicorp/terraform/)
The badge always shows the latest audit; a maintainer cannot pin an old verdict.
Other ratings
Cited, never blended into our score
No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.
Questions about Terraform MCP server
What is the Terraform MCP server?
Is Terraform safe to connect to an agent?
What credentials does Terraform need?
How does Terraform run?
How current is this page?
Sources
- hashicorp/terraform-mcp-server on GitHub — the source we read, its licence, stars and activityObserved · 24 Sep 2026
- ModelsAtlas trust audit — CAUTION verdict for commit d7c1976ec772Observed · 24 Sep 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the Terraform MCP server?
- Is Terraform safe to connect to an agent?
- What credentials does Terraform need?