Short answer: at the commit we checked, hashicorp/terraform-mcp-server scores 96/100 (grade A): 57 of 68 tools carry an MCP safety hint, 11 of 13 destructive-like tools say they change things, and its README has no npx/uvx-style launch line. This is a hygiene grade, not a security audit.
What we checked
| Repository | hashicorp/terraform-mcp-server · MPL-2.0 · Go · about 1,562 GitHub stars |
|---|---|
| Commit checked | 3e38ca6, scanned 14–15 Nov 2026, hand-checked 17 Nov 2026. The repository has had 9 commits since then (as of 26 Nov 2026), so the current code may score differently. |
| Tools the server registers | 68 |
| Tools with any MCP safety hint | 57 of 68 |
| Destructive-like tools (delete, write, run, execute…) | 13, of which 11 carry a hint |
| README install line | has no npx/uvx-style launch line |
| Config findings | none |
How the score adds up
| Start | 100 |
|---|---|
| 2 destructive-like tools with no safety hint (2 each, at most 30) | −4 |
| Score | 96 / 100 → grade A |
Rules in full: methodology. A–F: A 90+, B 80–89, C 70–79, D 60–69, F below 60.
Evidence from the code
- How tools are registered: Same 68 tool names are implemented twice: default mark3labs server (pkg/tools/factories.go map, mcp.NewTool(...)) and an opt-in go-sdk port (pkg/mcp-official/tools/tools.go officialFactories, TF_X_OFFICIAL_SDK_ENABLED=true). Counted names once; annotation/description status taken from the default mark3labs implementation that stdio and HTTP serve unless the experimental env var is set.
- How safety hints are set: inline mcp.With*HintAnnotation options in mark3labs NewTool (57/68 tools); go-sdk port sets Annotations on all 68 (inline struct, plus tool() helper in pkg/mcp-official/tools/search/search.go:51)
pkg/cli/flags.go:114-119 stdio uses mcp-official only when TF_X_OFFICIAL_SDK_ENABLED=true, else mark3labs; pkg/cli/flags.go:152 HTTP always mark3labs (official only mounted at /mcp/official when env set, pkg/mcp-mark3labs/http.go:248-272)pkg/tools/factories.go:23-129 68 mark3labs tool names; pkg/mcp-official/tools/tools.go officialFactories has the identical 68 namespkg/tools/tfe/variable_sets.go:54,106,159,230,275,328 six variable-set tools with no hint optionspkg/tools/tfe/workspace_variables.go:24,83,159 list/create/update_workspace_variable with no hint optionspkg/tools/tfe/workspace_tags.go:22 create_workspace_tags no hints; pkg/tools/tfe/policy_sets.go:32 attach_policy_set_to_workspaces no hintspkg/tools/search/import_tools.go:135-136 verify_import_plan has ReadOnly/Destructive hints; description constant mentions 'speculative Run'pkg/mcp-official/tools/tfe/runs_create_tool.go:110 and every other go-sdk tool function sets Annotations (all 68)Note: mark3labs mcp.NewTool fills library-default hints (readOnly=false, destructive=true) on every tool; not counted, as for all other mcp-go servers on the board
Using it more safely
- Turn on approval for its write and delete tools. 2 of its 13 destructive-like tools don't tell your AI client they change things, so many clients won't ask you first. Set them to "ask every time" in your client's tool settings.
- Give it the least access it needs: a scoped token or a test account, not your admin credentials, and only the folders or projects the task needs.
- Check your own config for unpinned servers, broad folders and hard-coded tokens with the free MCP config checker (runs in your browser).
Shipping an AI agent that uses MCP servers and facing a security review? See how to answer the MCP question, or get your agent reviewed.
Compare with similar servers
Category: Cloud, DevOps & infrastructure MCP servers (all grades side by side, plus the safer setup for this kind of server).
- RekklesNA/ProxmoxMCP-Plus grade A
- cloudflare/mcp-server-cloudflare grade C
- GoogleCloudPlatform/cloud-run-mcp grade D
- googleapis/gcloud-mcp grade F
For the maintainers
Add the badge to your README (it links back to this page, and updates when we re-check):
[](https://aireviewready.in/mcp/servers/hashicorp-terraform-mcp-server/)
Fixed something, or think we got it wrong? Ask for a re-check and name the commit. We reply within 7 days. Code-level security issues are never published here; they're reported privately first.