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.4What'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






