mcpbeat Sign in

MCP Server Terraform

by rajeevsirohi Your server? Claim it
local only

MCP Server Terraform runs on your own machine — the client starts it, so there is no endpoint to ping. 41 installs a week from npm. Last commit 7 Jul 2026.

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

Installs per day peak 14 · avg 8 · +42% w/w
a month agotoday
41
Installs / week
npm · @rajsir/mcp-server-terraform
1
Stars
0 open issues
7 Jul 2026
Last commit
0 releases in 90 days
MIT
License
TypeScript

What the code does

We read the source, 21 h ago · rules 3dff92dd89df

A tool parameter reaches a dangerous call

A value the model can set ends up inside a file or shell call. That is not a flaw by itself — for a terminal server it is the job — but it is where things go wrong when it is not.

A tool parameter reaches a file or shell call tf_plan.savePlanFile → src/tools/tf-plan.ts:85
        try { unlinkSync(planFile); } catch { /* best-effort cleanup */ }
Capabilities

What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.

Runs an external command src/utils/provider-auth.ts:53
    const result = spawnSync(cmd, args, { timeout: 5000, encoding: "utf8" });

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

A tool parameter here reaches a dangerous call

That is not a flaw by itself — but it is where things go wrong when it is not the job. We re-read this code on every release. Watch it and you hear from us the day another one appears.

Three servers free · no card

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add mcp-server-terraform -- npx -y @rajsir/mcp-server-terraform
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "mcp-server-terraform": {
      "args": [
        "-y",
        "@rajsir/mcp-server-terraform"
      ],
      "command": "npx"
    }
  }
}
~/.codex/config.toml
[mcp_servers.mcp-server-terraform]
command = "npx"
args = ["-y", "@rajsir/mcp-server-terraform"]
.cursor/mcp.json
{
  "mcpServers": {
    "mcp-server-terraform": {
      "args": [
        "-y",
        "@rajsir/mcp-server-terraform"
      ],
      "command": "npx"
    }
  }
}
.vscode/mcp.json
{
  "mcpServers": {
    "mcp-server-terraform": {
      "args": [
        "-y",
        "@rajsir/mcp-server-terraform"
      ],
      "command": "npx"
    }
  }
}

This one needs environment variables set before it will start: ALLOW_ONLY_READONLY_TOOLS (Set to 'true' to expose only validate/plan/output/preflight/drift tools), ALLOW_ONLY_NON_DESTRUCTIVE_TOOLS (Set to 'true' to block apply/destroy/state-mutation tools), AUDIT_LOG_PATH (File path for JSON-lines audit logging of all tool calls (var values redacted)). The author declared them in the registry entry; get the values from the project itself.

Alternatives to MCP Server Terraform

same job, measured the same way
Shieldly Io
by shieldly-io

AI-Powered AWS security analysis: scan IAM policies and CloudFormation for risks and escalation.

38 installs/wk local only
MCP Oci
by dockndevai

Oracle Cloud discovery + Terraform generation for AI agents — read-only, secret-safe.

257 installs/wk local only
Specshield MCP Server
by specshield-io

The API-change deploy gate for AI coding agents. Read-only breaking-change detection.

local only
MCP Azure
by dockndevai

Azure Resource Manager inventory & ops for AI agents — governed, confirmation-gated.

401 installs/wk local only
AWS Builder
by evozim

AWS CloudFormation and Terraform infrastructure blueprint builder.

answering
Raygun
by mindscapehq

Investigate errors, track deployments, analyze performance, and manage application monitoring

answering
F5 Distributed Cloud Terraform Provider
by robinmordasiewicz

F5 Distributed Cloud Terraform provider docs, 270+ OpenAPI specs, and subscription info for AI.

353 installs/wk local only
TerraVision
by patrickchugh

Cloud architecture diagrams generated from terraform plan, with official AWS, Azure, GCP icons

1 430 installs/wk local only

MCP Server Terraform — questions

Answers built from our own checks of this server.

Why is there no uptime for MCP Server Terraform?
MCP Server Terraform runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the npm package @rajsir/mcp-server-terraform was installed 41 times last week.
How do I connect MCP Server Terraform?
Copy the ready config from this page — we generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each with the file path that client actually reads. It runs locally, so the command pulls @rajsir/mcp-server-terraform straight from npm; nothing to host, nothing to sign up for.
How many people use MCP Server Terraform?
The npm package @rajsir/mcp-server-terraform was installed 41 times in the last week. Week over week that is +42%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is MCP Server Terraform open source?
Yes — it is published under the MIT licence, written in TypeScript and 1 stars on GitHub. The source link is on this page, so you can read exactly what it does with your data before you connect it.