tfmcp
tfmcp is an MCP server. Its repository has 372 GitHub stars and is licensed under MIT; we last read it on 2026-10-22.
tfmcp is a command-line interface tool that allows AI assistants to manage and operate Terraform environments by reading configurations, analyzing plans, applying configurations, and managing state with Claude Desktop integration.
Install
Read from tfmcp’s own README, close to verbatim -- not written by us, and not guessed.
cargo install tfmcp --version 0.2.4
What it reaches, and what it needs
What it connects to
Unverified means a mention in the server’s own description, not a citation. A wrong claim here costs nothing to correct and nothing to trust yet.
Maintenance
🌍 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. ⚡️
What tfmcp can do
40 tools documented in its README. An AI client calls these by name.
init_terraform- Initialize Terraform working directory
get_terraform_plan- Generate a saved plan, or retrieve its redacted result and status by plan ID
list_terraform_plans- List saved plan IDs, targets, statuses, and destroy flags
discard_terraform_plan- Remove an unneeded saved plan and free retention capacity
analyze_plan- Analyze plan with risk scoring and recommendations
apply_terraform- Apply the reviewed saved plan ID and verify state resource addresses
destroy_terraform- Apply a reviewed saved destroy plan with explicit deletion permissions
validate_terraform- Validate configuration syntax
validate_terraform_detailed- Detailed validation with guidelines
get_terraform_state- Show current state
analyze_state- Analyze state with drift detection
review_terraform_plan- Review plan risk, blockers, destructive changes, and recommendations
summarize_plan_for_pr- Generate markdown plan summary for PR comments
run_terraform_quality_checks- Run CI-friendly validation, module health, guideline, and lockfile checks
inspect_state_safety- Inspect state readability, drift risk, lockfile status, and blockers
detect_drift_candidates- Detect drift candidates from readable state without modifying infrastructure
prepare_terraform_change- Generate blockers, warnings, and a recommended change sequence
list_terraform_resources- List all managed resources
set_terraform_directory- Change active project directory
terraform_workspace- Manage workspaces (list, show, new, select, delete)
terraform_import- Import existing resources
terraform_taint- Taint/untaint resources
terraform_refresh- Refresh state
terraform_fmt- Format code
terraform_graph- Generate dependency graph
terraform_output- Get output values with sensitive values redacted, including named queries
terraform_providers- Get provider info with lock file
check_provider_lockfile- Check `.terraform.lock.hcl` for reproducible provider selections
analyze_terraform- Analyze configuration
inspect_terraform_project- Inspect local Terraform directories, modules, and likely entrypoints
detect_terraform_entrypoints- Detect likely root module entrypoints
analyze_module_health- Module health with cohesion/coupling metrics
get_resource_dependency_graph- Resource dependencies visualization
suggest_module_refactoring- Refactoring suggestions
get_security_status- Security scan with secret detection
search_providers- Search providers (HashiCorp-compatible alias)
search_terraform_providers- Search providers
get_provider_details- Provider details (HashiCorp-compatible alias)
get_provider_info- Provider details
get_provider_docs- Provider documentation
Read from the README; names are kept only if the README contains them.
Common questions about tfmcp
- What does tfmcp do?
- tfmcp is a command-line interface tool that allows AI assistants to manage and operate Terraform environments by reading configurations, analyzing plans, applying configurations, and managing state with Claude Desktop integration.
- How do I install tfmcp?
- Its own README gives this command: cargo install tfmcp --version 0.2.4. Run it where your MCP client can launch the server, and check the README for any settings it asks for.
- Which AI clients can use tfmcp?
- Its own description mentions Claude Desktop. That is a mention in its description, not a test we ran.
- Is tfmcp official and is it maintained?
- We found nothing naming it as a vendor’s official server. Its repository has 372 GitHub stars and its state in our directory is listed. Its last commit we recorded was on 2026-10-15.
- What licence does tfmcp use?
- The repository declares the MIT licence.