Live survey304 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Org-owned · Audited from source

Terraform MCP server

by hashicorp/terraform-mcp-serverMPL-2.0 licenceAudited 24 Sep 2026 · source d7c1976ec772

stdiostreamable-http★ 1,532
!CAUTIONGrade B · 87/100 · 24 Sep 2026 · d7c1976
1,532GitHub stars

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.

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
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

Trust score87/100!CAUTION B
0 critical0 high3 medium8 low0 info

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

LayerWhat we checkResult
L0 ProvenanceRepo owner, licence, archive status, activityPASS 3 findings
L1 Static sourceSecrets, path traversal, supply chainWARN 6 findings
L2 InstructionsPrompt injection and authority framing in docs and tool descriptionsPASS 1 finding
L3 InventoryDeclared tools match the sourcePASS 1 finding
L4 SandboxRun in isolation and watch behaviourSKIPPED

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
F-04 Network egressCWE-200 · CWE-319Layer L1
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
F-04 Network egressCWE-200 · CWE-319Layer L1
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
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
LOWInventory / provenanceinv.hidden_file · .copywrite.hcl
F-13 Inventory / provenanceCWE-1104Layer L0
.copywrite.hcl
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · .go-version
F-13 Inventory / provenanceCWE-1104Layer L0
.go-version
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · helm/terraform-mcp-server/.helmignore
F-13 Inventory / provenanceCWE-1104Layer L0
.helmignore
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWNetwork egressnet.raw_ip · e2e/cors_e2e_test.go:114
F-04 Network egressCWE-200 · CWE-319Layer L1
{"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
F-04 Network egressCWE-200 · CWE-319Layer L1
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
F-04 Network egressCWE-200 · CWE-319Layer L1
origin:         "http://127.0.0.1:3000",
Why
No further detail recorded for this rule.
Fix
—
LOWPrompt injectionprompt.transfer_instruction · CHANGELOG.md:50
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
* 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
F-13 Inventory / provenanceCWE-1104Layer L3
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

  1. !CAUTION B 87 / 100

    First audit · d7c1976ec772

README badge

For maintainers · updates on every re-audit

ModelsAtlas: CAUTION BMODELSATLASCAUTION · B
[![ModelsAtlas: CAUTION B](https://modelsatlas.com/mcp/hashicorp/terraform/badge.svg)](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?
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.

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.