
tfmcp
by nwiizo
Manage and operate Terraform environments directly through AI assistants with risk scoring and state analysis.
What it does
tfmcp is a powerful MCP server that bridges the gap between AI assistants and Terraform. It enables LLMs to read configurations, analyze execution plans, apply infrastructure changes, and manage state, effectively turning your AI into a DevOps collaborator.
Tools
init_terraform: Initialize Terraform working directoryget_terraform_plan: Generate and show execution plananalyze_plan: Analyze plan with risk scoring and recommendationsapply_terraform: Apply Terraform configurationdestroy_terraform: Destroy Terraform-managed infrastructurevalidate_terraform: Validate configuration syntaxget_terraform_state: Show current stateanalyze_state: Analyze state with drift detectionterraform_workspace: Manage workspaces (list, show, new, select, delete)terraform_import: Import existing resourcesterraform_fmt: Format Terraform codeterraform_graph: Generate dependency graphget_security_status: Security scan with secret detection
Installation
{
"mcpServers": {
"tfmcp": {
"command": "tfmcp",
"args": ["mcp"],
"env": {
"TERRAFORM_DIR": "/path/to/your/terraform/project"
}
}
}
}
Supported hosts
- Claude Desktop
Quick install
cargo install tfmcpInformation
- Pricing
- free
- Published






