技能潮 SkillTide 提交收录
官方说明7 个来源MCP 服务8 天前
RajeevSirohi/mcp-server-terraform

RajeevSirohi/mcp-server-terraform

Safety-first MCP server for Terraform — plan risk & cost analysis, drift detection, confirmation flows, and provider auth pre-flight for Claude and other AI assistants
在 GitHub 查看 ↗直链 · 无中转页
配置模板(请按你的客户端调整)
claude mcp add mcp-server-terraform -- npx -y mcp-server-terraform
这是根据仓库名生成的可粘贴骨架,命令行参数与包名请以该项目 README 为准。
★ 数取值
1 ★ · RajeevSirohi/mcp-server-terraform · 取自该仓库的 GitHub 页面 · (2026-10-16 20:00:20 核对)
来源明细
收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-10-09 · 最近见到 2026-10-16 · 共见到 32 次 · 被 7 个来源列出
评分构成
综合分 703 · 1 ★ · 7 个来源 · mcp
常见问题(答案都来自我们的记录)
怎么安装?
我们【没有】从该仓库取到安装命令(我们的 install 覆盖率只有约 4%)。请看它的 README 或 releases 页。
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 RajeevSirohi/mcp-server-terraform;我们收录于 2026-10-09;最近见到 2026-10-16。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

mcp-server-terraform

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

A Model Context Protocol (MCP) server that lets Claude manage Terraform infrastructure through natural language.
> Run plans, apply changes, inspect state, and diagnose failures — all from a Claude conversation.
What it does
Instead of switching to a terminal to run terraform plan, you can ask Claude:
> "Plan the changes in /infra/staging and explain what will change"
> "Apply it — but only if no resources will be destroyed"
> "Show me all the outputs from the prod workspace"
> "Something broke after the last apply — diagnose it"
The server translates these into real terraform CLI commands on your machine, with a built-in safety confirmation flow before any destructive operation runs.
Tools
| Tool | Description | Destructive |
|------|-------------|-------------|
| tf_init | Initialize a Terraform working directory | No |
| tf_validate | Validate configuration syntax | No |
| tf_plan | Run a plan and return the diff + risk/cost summary | No |
| tf_apply | Apply changes (requires confirmed: true) | Yes |
| tf_destroy | Destroy infrastructure (requires confirmed: true) | Yes |
| tf_output | Read output values from state | No |
| tf_state | List, show, move, or remove state entries | Partial |
| tf_workspace | List, show, select, or create workspaces | No |
| tf_preflight | Check provider CLI authentication before running | No |
| tf_drift | Detect resources changed outside Terraform | No |
| tf_resource | Import, taint, untaint, or refresh resources | Yes |
Plan risk & cost summary
Every plan (and every apply preview) is analyzed via terraform show -json and
annotated with a structured summary — destroyed resources are called out, and
always-on resources that commonly cause bill shock are flagged with rough
monthly costs:
Cost-flagged resource types include NAT gateways, load balancers, EKS/AKS/GKE
control planes, RDS/Cloud SQL instances, ElastiCache, Redshift, MSK, and
Azure Firewall (~$900/month!).
Drift detection
tf_drift runs a refresh-only plan and reports resources that were changed
outside Terraform (e.g. manually in the cloud console), with the changed
attribute names and remediation options.
Audit logging
Set AUDIT_LOG_PATH to a file path and every tool call is appended as a JSON
line with timestamp, tool name, outcome, and duration. Variable **values** are
always redacted (db_password= ) — only names are logged.
Confirmation flow
tf_apply and tf_destroy use a two-step safety flow:
1. **First call** (no confirmed) → runs terraform plan, shows the diff, does nothing else
2. **Second call** (confirmed: true) → actually applies or destroys
Claude is instructed to never pass confirmed: true without first presenting the plan to you.
Prompt
The server exposes a /tf-diagnose prompt that guides Claude through a systematic 5-step diagnosis of plan or apply failures.
Prerequisites
- Node.js 18 or later
- Terraform CLI on your PATH
- Claude Desktop (or any MCP-compatible client)
Installation
No install needed — run it straight from npm:
Or, for development, from source:
Claude Desktop setup
Add to your Claude Desktop config file:
**macOS**: ~/Library/Application Support/Claude/claude_desktop_config.json
**Windows**: %APPDATA%\Claude\claude_desktop_config.json
(If running from source instead, use "command": "node" with "args": ["/absolute/path/to/dist/index.js"].)
来源
awesome · https://github.com/RajeevSirohi/mcp-server-terraform
按领域浏览
MCP 服务
Traction
1 ★
收录于
昨天

更多MCP 服务

查看MCP 服务全部 5,525 条 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引