by nwiizo
🌍 Terraform Model Context Protocol (MCP) Tool - An experimental CLI tool that enables AI assistants to manage and operate Terraform environments. Supports reading Terraform configurations, analyzing plans, applying configurations, and managing state with Claude Desktop integration. ⚡️
# Add to your Claude Code skills
git clone https://github.com/nwiizo/tfmcp⚠️ 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 is a command-line tool that helps you interact with Terraform via the Model Context Protocol (MCP). It allows LLMs to manage and operate your Terraform environments, including:
See tfmcp in action with Claude Desktop:

The latest version of tfmcp (v0.1.9) is now available on Crates.io! You can easily install it using Cargo:
cargo install tfmcp
🚀 Terraform Integration Deeply integrates with the Terraform CLI to analyze and execute operations.
📄 MCP Server Capabilities Runs as a Model Context Protocol server, allowing AI assistants to access and manage Terraform.
🔬 Module Health Analysis Whitebox approach to Infrastructure as Code with cohesion/coupling analysis, health scoring, and refactoring suggestions based on software engineering principles.
📊 Resource Dependency Graph Visualize resource relationships including explicit depends_on and implicit reference dependencies.
📦 Module Registry Integration Search and explore Terraform modules from the registry, get module details and versions.
🔐 Enterprise Security Production-ready security controls with configurable policies, audit logging, and access restrictions.
📊 Advanced Analysis Detailed Terraform configuration analysis with best practice recommendations and security checks.
📋 Guideline Compliance (v0.1.8) Future Architect Terraform guidelines integration with compliance scoring, secret ...