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
We read the source, 21 h ago · rules 3dff92dd89df
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.
try { unlinkSync(planFile); } catch { /* best-effort cleanup */ }
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.
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.
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.
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.
claude mcp add mcp-server-terraform -- npx -y @rajsir/mcp-server-terraform
{
"mcpServers": {
"mcp-server-terraform": {
"args": [
"-y",
"@rajsir/mcp-server-terraform"
],
"command": "npx"
}
}
}
[mcp_servers.mcp-server-terraform]
command = "npx"
args = ["-y", "@rajsir/mcp-server-terraform"]
{
"mcpServers": {
"mcp-server-terraform": {
"args": [
"-y",
"@rajsir/mcp-server-terraform"
],
"command": "npx"
}
}
}
{
"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.
AI-Powered AWS security analysis: scan IAM policies and CloudFormation for risks and escalation.
Oracle Cloud discovery + Terraform generation for AI agents — read-only, secret-safe.
The API-change deploy gate for AI coding agents. Read-only breaking-change detection.
Azure Resource Manager inventory & ops for AI agents — governed, confirmation-gated.
AWS CloudFormation and Terraform infrastructure blueprint builder.
Investigate errors, track deployments, analyze performance, and manage application monitoring
F5 Distributed Cloud Terraform provider docs, 270+ OpenAPI specs, and subscription info for AI.
Cloud architecture diagrams generated from terraform plan, with official AWS, Azure, GCP icons
Answers built from our own checks of this server.