
nwiizo/tfmcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
nwiizo/tfmcp — это кандидат-сервер MCP, импортированный из https://github.com/nwiizo/tfmcp.
Обзор
nwiizo/tfmcp — это кандидат-сервер MCP, импортированный из https://github.com/nwiizo/tfmcp.
Обзор (машинный перевод)
⚠️ * Этот проект включает готовые к производству функции безопасности, но всё ещё находится в активной разработке. Хотя система безопасности обеспечивает надёжную защиту, пожалуйста, внимательно проверяйте все операции в производственных средах. ⚠️*
tfmcp запускает локальные рабочие процессы Terraform через протокол Model Context Protocol (MCP). Он помогает ассистентам ИИ осматривать проект, готовить выполнение, проверять сохранённый план, Примените тот же план и проверьте результат. Поддержка реестра и инструментов HCP/TFE Эти локальные рабочие процессы.
🎮 Демо
Посмотрите tfmcp в действии с Claude Desktop:
- Чтение конфигурационных файлов Terraform
- Анализ выходов планов Terraform
- Применение конфигураций Terraform
- Управление состоянием терраформ
- Создание и модификация конфигураций Terraform
🎉 Текущий релиз
Tfmcp v0.2.4 — это текущий релиз:
Что нового в v0.2.4
- Пересмотр планов уничтожения с теми же сохранёнными планами и проверками разрешений, что и применяются
- Включение в список и утилизация сохранённого плана для восстановления вместимости из 64 планов
- Сохранение результатов применения, неудачных/неизвестных результатов и рекомендаций по восстановлению
- Редактирование чувствительного выхода как для полных, так и для именованных запросов
- RMCP 3.5.0, обновлённые зависимости и изображения, с сохранением Rust 1.88 MSRV
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
tfmcp: Terraform Model Context Protocol Tool
⚠️ This project includes production-ready security features but is still under active development. While the security system provides robust protection, please review all operations carefully in production environments. ⚠️
tfmcp runs local Terraform workflows through the Model Context Protocol (MCP). It helps AI assistants inspect a project, prepare execution, review a saved plan, apply that same plan, and check the result. Registry and HCP/TFE tools support these local workflows.
🎮 Demo
See tfmcp in action with Claude Desktop:

- Reading Terraform configuration files
- Analyzing Terraform plan outputs
- Applying Terraform configurations
- Managing Terraform state
- Creating and modifying Terraform configurations
🎉 Current Release
tfmcp v0.2.4 is the current release:
cargo install tfmcp --version 0.2.4
What’s new in v0.2.4
- Reviewed destroy plans with the same saved-plan and permission checks as apply
- Saved-plan listing and disposal to reclaim the 64-plan capacity
- Retained apply results, failed/unknown outcomes, and recovery guidance
- Sensitive output redaction for both full and named output queries
- RMCP 3.5.0, updated dependencies and images, with the Rust 1.88 MSRV retained
Features
| Area | Capabilities |
|---|---|
| Local Terraform | Validate, format, plan/apply workflows, import guidance, outputs, providers, dependency graphs, refresh-only flows, and guarded state operations |
| Repository intelligence | Entrypoint/project detection, configuration analysis, quality checks, security checks, module health, plan review, and drift/state-safety inspection |
| Registry | Public/private provider, module, and policy lookup with HashiCorp-compatible aliases |
| HCP Terraform / TFE | Organizations, projects, workspaces, runs, plans, applies, variables, policy sets, variable sets, tags, stacks, and gated operations |
| MCP deployment | stdio and Streamable HTTP, MCP 2026-07-28 discovery, structured tool results, cache hints, toolsets, resources, health/metrics, sessions, Host/Origin validation, rate limits, TLS wiring, and audit logging |
| Packaging | Cargo, Docker/OCI metadata, MCP Registry metadata, Rust Edition 2024 |
Installation
From Source
# Clone the repository
git clone https://github.com/nwiizo/tfmcp
cd tfmcp
# Build and install
cargo install --path .
From Crates.io
cargo install tfmcp
Using Docker
# Clone the repository
git clone https://github.com/nwiizo/tfmcp
cd tfmcp
# Build the Docker image
docker build -t tfmcp .
# Run the container
docker run -it tfmcp
Requirements
- Rust 1.88.0+ (Rust Edition 2024)
Установка
docker run --rm -v /path/to/your/terraform:/app/terraform tfmcp mcpКонфигурация
{
"mcpServers": {
"tfmcp": {
"command": "/path/to/your/tfmcp", // Replace with the actual path from step 2
"args": ["mcp"],
"env": {
"HOME": "/Users/yourusername", // Replace with your username
"PATH": "/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin",
"TERRAFORM_DIR": "/path/to/your/terraform/project" // Optional: specify your Terraform project
}
}
}
}