Atlas / MCP servers / thrashr888 / Terraform Registry

Terraform RegistrySAFE

mcp/thrashr888/terraform-registry

Terraform Registry MCP Server

Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
31 31r · 0w · 0d
Transport
stdio
License
MIT
Stars
120
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

A Model Context Protocol (MCP) server that provides tools for interacting with the Terraform Registry API. This server enables AI agents to query provider information, resource details, and module metadata.

[!IMPORTANT] This project was used as a PoC for a new official Terraform MCP server. This repo has been archived in favor of that one.

Installation

Installing in Cursor

To install and use this MCP server in Cursor:

  1. In Cursor, open Settings (⌘+,) and navigate to the "MCP" tab.
  1. Click "+ Add new MCP server."
  1. Enter the following:
  2. Name: terraform-registry
  3. Type: command
  4. Command: npx -y terraform-mcp-server
  1. Click "Add" then scroll to the server and click "Disabled" to enable the server.
  1. Restart Cursor, if needed, to ensure the MCP server is properly loaded.

Installing in Claude Desktop

To install and use this MCP server in Claude Desktop:

  1. In Claude Desktop, open Settings (⌘+,) and navigate to the "Developer" tab.
  1. Click "Edit Config" at the bottom of the window.
  1. Edit the file (~/Library/Application Support/Claude/claude_desktop_config.json) to add the following code, then Save the file.
{
"mcpServers": {
"terraform-registry": {
"command": "npx",
"args": ["-y", "terraform-mcp-server"]
}
}
}
  1. Restart Claude Desktop to ensure the MCP server is properly loaded.

Tools

The following tools are available in this MCP server:

Core Registry Tools

Read from source at commit 993382e18e68OBSERVED · 2026-10-07
02

Connect

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. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add terraform-mcp-server --env ALGOLIA_API_KEY=${ALGOLIA_API_KEY} --env TFC_TOKEN=${TFC_TOKEN} -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "terraform-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "ALGOLIA_API_KEY": "${ALGOLIA_API_KEY}",
        "TFC_TOKEN": "${TFC_TOKEN}"
      }
    }
  }
}
03

Exposed tools (31)

31 read · 0 write · 0 destructive.

ToolRiskDescription
applyRunread
cancelRunread
createRunread
dataSourceLookupreadLookup data sources
explorerQueryread
functionDetailsread
listDataSourcesread
listOrganizationsread
listRunsread
listWorkspaceResourcesread
listWorkspacesread
lockWorkspaceread
moduleDetailsread
moduleRecommendationsreadRecommend Terraform modules
moduleSearchread
policyDetailsread
policySearchread
privateModuleDetailsread
privateModuleSearchread
productionreadProduction environment workspace
providerDetailsread
providerGuidesread
providerLookupreadLookup Terraform provider details
regionreadAWS region
resourceArgumentDetailsread
resourceUsageread
runDetailsread
stagingreadStaging environment workspace
unlockWorkspaceread
vpc_idreadID of the VPC
workspaceDetailsread
04

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (2 observation(s))
Network
declared (1 observation(s))
Shell
none-observed
Dependencies
not all pinned
Secrets in source
none-found

Findings (8)

LOWInventory / provenance · inv.hidden_file · CWE-1104
.prettierignore
.prettierignore
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
.repomixignore
.repomixignore
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/resources/registry.ts:5
import { DEFAULT_NAMESPACE } from "../../config.js";
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/resources/terraform.ts:5
import { TFC_TOKEN } from "../../config.js";
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/tests/prompts/analyze-workspace-runs.test.ts:10
const rootDir = path.resolve(__dirname, "../../.."); // Adjusted path for subdirectory
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/tests/prompts/generate-resource-skeleton.test.ts:10
const rootDir = path.resolve(__dirname, "../../.."); // Adjusted path for subdirectory
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/tests/prompts/list.test.ts:11
const rootDir = path.resolve(__dirname, "../../.."); // Adjusted path for subdirectory
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
abort-controller, debug, diff, glob, minimatch, node-fetch, zod-to-json-schema, @eslint/js
Why it matters. 27 dependency range(s) float
Fix. pin exact versions or ship a lockfile

Gates applied: no_behavioural_pass.

Audited 2026-10-07 · audit v0.4.1 · source sha 993382e18e68full audit observations/trust-audit/mcp-server/thrashr888__terraform-registry.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-07993382e18e68SAFEB89first audit
06

Questions

What is the Terraform Registry MCP server?

Terraform Registry MCP Server

What tools does Terraform Registry expose?

31 in total: 31 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is Terraform Registry safe to connect to an agent?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.

What credentials does Terraform Registry need?

It reads ALGOLIA_API_KEY and TFC_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does Terraform Registry run?

It speaks stdio, so it runs as a local process your client starts. It is published on npm as terraform-mcp-server at 0.13.0.

How current is this page?

The grade is for one exact copy of the source (993382e18e68), read on 2026-10-07. The repository is watched and re-audited when it changes.

Advertisement