Skip to content
verify mcp Beta VerifyMCP is currently in beta. If you notice any issues, email [email protected] and we’ll put it right.

io.github.RajeevSirohi/mcp-server-terraform

NPM · @RAJSIR/MCP-SERVER-TERRAFORM · SCANNED AUG 3

Safety-first Terraform: confirmation-gated apply/destroy, risk & cost analysis, drift detection

+45 this week 71 Trust /100
Trust breakdown (6 categories)

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score →

Supply Chain Security87
  • No malware found by supply-chain analysis.Pass
  • Only part of the dependency tree could be resolved (95 of 99), so this covers what we could see, not the whole tree.Partial
  • No install/post-install scripts declared.Pass
  • Only part of the dependency tree could be resolved (95 of 99), so this covers what we could see, not the whole tree. View diagnostics → Partial
Provenance & Transparency45
Schema Quality & AI Usability84
  • 100% of prompts and resources have a non-trivial description (not blank, and not just the item's name).Pass
  • AI-judged instruction clarity (excellent).Pass
  • Context-footprint check failed: tool/resource definitions use about 1339 tokens (~121/item across 11 items; 11 tools + 0 resources), over budget; trim descriptions and params. See how to fix → Fail
  • Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management27
  • Stability observed for 8 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
Tool Coverage100
  • 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
  • 100% of tool parameters carry a description.Pass
Capabilities100
  • Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
Install

Add this component to your MCP client. Where a client-specific snippet is available, pick your client below and copy it straight into your config; otherwise use the connection detail shown.

npm · @rajsir/mcp-server-terraform

# add to Claude Code
claude mcp add rajeevsirohi-mcp-server-terraform -- npx -y @rajsir/mcp-server-terraform
# add to Codex CLI
codex mcp add rajeevsirohi-mcp-server-terraform -- npx -y @rajsir/mcp-server-terraform
// opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "rajeevsirohi-mcp-server-terraform": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@rajsir/mcp-server-terraform"
      ],
      "enabled": true
    }
  }
}
# add to OpenClaw
openclaw mcp add rajeevsirohi-mcp-server-terraform --command npx --arg -y --arg @rajsir/mcp-server-terraform
# ~/.hermes/config.yaml
mcp_servers:
  rajeevsirohi-mcp-server-terraform:
    command: "npx"
    args: ["-y", "@rajsir/mcp-server-terraform"]
// mcp.json
{
  "mcpServers": {
    "rajeevsirohi-mcp-server-terraform": {
      "command": "npx",
      "args": [
        "-y",
        "@rajsir/mcp-server-terraform"
      ]
    }
  }
}
Changelog

Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.

  • 3 Aug 26 +1

    No change was recorded against any check on this day. Stability & Change Management went from 23 to 27. That category is still filling its 30-day observation window: 7 days of observed history at the previous scan, 8 at this one. The score rises as the window fills, whether or not the server changes.

  • 2 Aug 26 +44
    • Provenance: unverified → fail security
    • Known CVEs: unverified → partial security
    • Install scripts: unverified → pass security
    • Malware scan: unverified → pass security
    • Tool coverage: 100 → unverified functional
    • Schema quality: 100 → unverified functional
    • Stability: unverified → 0.23 functional
    • MCP protocol: unverified → pass functional
    • Maintenance: unverified → pass functional
    • Dependency health: unverified → partial functional
    • License: unverified → pass functional
    • Schema quality: unverified → excellent functional
    • Licence: MIT functional
  • 31 Jul 26 −26
    • We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
  • 28 Jul 26 +26
    • Dependency health: partial → unverified functional
    • Schema quality: unverified → 100 functional
    • Tool coverage: unverified → 100 functional
    • First check of Tool coverage: 100 functional
    • First check of Schema quality: unverified functional
    • First check of Schema quality: fail functional
    • First check of Schema quality: fail functional
  • 27 Jul 26 26

    First indexed and scored.

Diagnostics

Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.

Captured 3 Aug 2026 · Analysed npm/@rajsir/[email protected]

Provenance none

Ecosystem: npm · Outcome: none

Dependencies 95 packages

95 packages in the resolved dependency tree · 95 deprecated · 29 stale.

The dependency tree was only partially resolved, so these counts may be incomplete.

MCP tools — 11 exposed · ~1,339 tokens

The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability.

Tool Tokens
tf_apply ~216

Apply Terraform changes to real infrastructure. TWO-STEP SAFETY FLOW: 1. Call without confirmed=true → runs terraform plan, shows the diff, returns without applying. 2. Call with confirmed=true after reviewing the diff → actually applies the changes. Never pass confirmed=true without first showing the plan output to the user.

NameTypeReqDescription
confirmedbooleanMust be true to actually apply. Omit or set false to preview only.
planFilestringPath to a saved plan file from tf_plan (recommended for exact apply)
targetstringLimit operation to a specific resource address, e.g. aws_instance.web
varFilestringPath to a .tfvars or .tfvars.json file
varsarrayVariable overrides in key=value format, e.g. ["region=us-east-1"]
workdirstringyesAbsolute or relative path to the directory containing .tf files
workspacestringTerraform workspace to use (default: current workspace)

No output schema declared.

No examples provided.

tf_destroy ~193

Destroy all Terraform-managed infrastructure in the workspace. TWO-STEP SAFETY FLOW: 1. Call without confirmed=true → shows the destroy plan (what will be deleted). 2. Call with confirmed=true after the user explicitly approves → destroys everything. This is irreversible. Always show the plan and get explicit user approval first.

NameTypeReqDescription
confirmedbooleanMust be true to actually destroy. Omit or false to preview only.
targetstringLimit operation to a specific resource address, e.g. aws_instance.web
varFilestringPath to a .tfvars or .tfvars.json file
varsarrayVariable overrides in key=value format, e.g. ["region=us-east-1"]
workdirstringyesAbsolute or relative path to the directory containing .tf files
workspacestringTerraform workspace to use (default: current workspace)

No output schema declared.

No examples provided.

tf_drift ~85

Detect infrastructure drift — resources that were changed outside of Terraform (e.g. manually in the cloud console). Runs a refresh-only plan and reports differences between state and reality. Read-only, makes no changes.

NameTypeReqDescription
workdirstringyesAbsolute or relative path to the directory containing .tf files
workspacestringTerraform workspace to use (default: current workspace)

No output schema declared.

No examples provided.

tf_init ~87

Initialize a Terraform working directory. Downloads providers and modules. Run this before plan or apply on a fresh workspace.

NameTypeReqDescription
reconfigurebooleanPass -reconfigure to reinitialize backend even if already configured
upgradebooleanPass -upgrade to update providers/modules to latest allowed versions
workdirstringyesAbsolute or relative path to the directory containing .tf files

No output schema declared.

No examples provided.

tf_output ~84

Read Terraform output values from the current state. Returns all outputs as JSON, or a specific output by name.

NameTypeReqDescription
namestringSpecific output name to retrieve. Omit to get all outputs.
workdirstringyesAbsolute or relative path to the directory containing .tf files
workspacestringTerraform workspace to use (default: current workspace)

No output schema declared.

No examples provided.

tf_plan ~152

Run terraform plan and return a human-readable diff of what will change. Safe — makes no changes to infrastructure.

NameTypeReqDescription
savePlanFilestringOptional path to save the binary plan file for use with tf_apply
targetstringLimit operation to a specific resource address, e.g. aws_instance.web
varFilestringPath to a .tfvars or .tfvars.json file
varsarrayVariable overrides in key=value format, e.g. ["region=us-east-1"]
workdirstringyesAbsolute or relative path to the directory containing .tf files
workspacestringTerraform workspace to use (default: current workspace)

No output schema declared.

No examples provided.

tf_preflight ~57

Check which cloud providers are used in a Terraform workspace and verify authentication status for each. Call this before plan or apply to catch credential issues early.

NameTypeReqDescription
workdirstringyesAbsolute or relative path to the directory containing .tf files

No output schema declared.

No examples provided.

tf_resource ~175

Resource-level state operations: - import: Bring an existing cloud resource under Terraform management (requires address + id) - taint: Mark a resource for recreation on next apply (requires address) - untaint: Remove the taint mark (requires address) - refresh: Sync state with real infrastructure (accepts drift into state)

NameTypeReqDescription
addressstringResource address, e.g. aws_instance.web (required for import/taint/untaint)
idstringCloud provider resource ID for import, e.g. i-0abcd1234 or an Azure resource ID
operationstringyesResource operation to perform
workdirstringyesAbsolute or relative path to the directory containing .tf files
workspacestringTerraform workspace to use (default: current workspace)

No output schema declared.

No examples provided.

tf_state ~148

Manage Terraform state. Supports the following operations: - list: List all resources in state - show: Show attributes of a specific resource - mv: Move/rename a resource in state (use with care) - rm: Remove a resource from state without destroying it (destructive)

NameTypeReqDescription
addressstringResource address for show/rm/mv source, e.g. aws_instance.web
destinationstringDestination address for mv operation only
operationstringyesState operation to perform
workdirstringyesAbsolute or relative path to the directory containing .tf files
workspacestringTerraform workspace to use (default: current workspace)

No output schema declared.

No examples provided.

tf_validate ~45

Validate Terraform configuration files for syntax and internal consistency. Does not access remote state or APIs.

NameTypeReqDescription
workdirstringyesAbsolute or relative path to the directory containing .tf files

No output schema declared.

No examples provided.

tf_workspace ~97

Manage Terraform workspaces. Supports: - list: List all workspaces and show which is active - show: Show the current workspace name - select: Switch to a workspace - new: Create a new workspace

NameTypeReqDescription
namestringWorkspace name for select or new operations
operationstringyesWorkspace operation to perform
workdirstringyesAbsolute or relative path to the directory containing .tf files

No output schema declared.

No examples provided.