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
Available components
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
- Source repository is publicly reachable at the declared URL. View diagnostics → Pass
- Provenance check failed: no build-provenance attestation is published. See how to fix → View diagnostics → Fail
- Clear OSI-approved license (MIT).Pass
- Actively maintained (last published 26 days ago).Pass
- Disclosure check failed: no security disclosure policy was found in the source repository. See how to fix → Fail
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
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
claude mcp add rajeevsirohi-mcp-server-terraform -- npx -y @rajsir/mcp-server-terraform
codex mcp add rajeevsirohi-mcp-server-terraform -- npx -y @rajsir/mcp-server-terraform
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"rajeevsirohi-mcp-server-terraform": {
"type": "local",
"command": [
"npx",
"-y",
"@rajsir/mcp-server-terraform"
],
"enabled": true
}
}
} openclaw mcp add rajeevsirohi-mcp-server-terraform --command npx --arg -y --arg @rajsir/mcp-server-terraform
mcp_servers:
rajeevsirohi-mcp-server-terraform:
command: "npx"
args: ["-y", "@rajsir/mcp-server-terraform"] {
"mcpServers": {
"rajeevsirohi-mcp-server-terraform": {
"command": "npx",
"args": [
"-y",
"@rajsir/mcp-server-terraform"
]
}
}
} 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.
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.
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.
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.
| Name | Type | Req | Description |
|---|---|---|---|
| confirmed | boolean | — | Must be true to actually apply. Omit or set false to preview only. |
| planFile | string | — | Path to a saved plan file from tf_plan (recommended for exact apply) |
| target | string | — | Limit operation to a specific resource address, e.g. aws_instance.web |
| varFile | string | — | Path to a .tfvars or .tfvars.json file |
| vars | array | — | Variable overrides in key=value format, e.g. ["region=us-east-1"] |
| workdir | string | yes | Absolute or relative path to the directory containing .tf files |
| workspace | string | — | Terraform 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.
| Name | Type | Req | Description |
|---|---|---|---|
| confirmed | boolean | — | Must be true to actually destroy. Omit or false to preview only. |
| target | string | — | Limit operation to a specific resource address, e.g. aws_instance.web |
| varFile | string | — | Path to a .tfvars or .tfvars.json file |
| vars | array | — | Variable overrides in key=value format, e.g. ["region=us-east-1"] |
| workdir | string | yes | Absolute or relative path to the directory containing .tf files |
| workspace | string | — | Terraform 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.
| Name | Type | Req | Description |
|---|---|---|---|
| workdir | string | yes | Absolute or relative path to the directory containing .tf files |
| workspace | string | — | Terraform 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.
| Name | Type | Req | Description |
|---|---|---|---|
| reconfigure | boolean | — | Pass -reconfigure to reinitialize backend even if already configured |
| upgrade | boolean | — | Pass -upgrade to update providers/modules to latest allowed versions |
| workdir | string | yes | Absolute 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.
| Name | Type | Req | Description |
|---|---|---|---|
| name | string | — | Specific output name to retrieve. Omit to get all outputs. |
| workdir | string | yes | Absolute or relative path to the directory containing .tf files |
| workspace | string | — | Terraform 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.
| Name | Type | Req | Description |
|---|---|---|---|
| savePlanFile | string | — | Optional path to save the binary plan file for use with tf_apply |
| target | string | — | Limit operation to a specific resource address, e.g. aws_instance.web |
| varFile | string | — | Path to a .tfvars or .tfvars.json file |
| vars | array | — | Variable overrides in key=value format, e.g. ["region=us-east-1"] |
| workdir | string | yes | Absolute or relative path to the directory containing .tf files |
| workspace | string | — | Terraform 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.
| Name | Type | Req | Description |
|---|---|---|---|
| workdir | string | yes | Absolute 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)
| Name | Type | Req | Description |
|---|---|---|---|
| address | string | — | Resource address, e.g. aws_instance.web (required for import/taint/untaint) |
| id | string | — | Cloud provider resource ID for import, e.g. i-0abcd1234 or an Azure resource ID |
| operation | string | yes | Resource operation to perform |
| workdir | string | yes | Absolute or relative path to the directory containing .tf files |
| workspace | string | — | Terraform 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)
| Name | Type | Req | Description |
|---|---|---|---|
| address | string | — | Resource address for show/rm/mv source, e.g. aws_instance.web |
| destination | string | — | Destination address for mv operation only |
| operation | string | yes | State operation to perform |
| workdir | string | yes | Absolute or relative path to the directory containing .tf files |
| workspace | string | — | Terraform 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.
| Name | Type | Req | Description |
|---|---|---|---|
| workdir | string | yes | Absolute 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
| Name | Type | Req | Description |
|---|---|---|---|
| name | string | — | Workspace name for select or new operations |
| operation | string | yes | Workspace operation to perform |
| workdir | string | yes | Absolute or relative path to the directory containing .tf files |
No output schema declared.
No examples provided.