Reads and parses Terraform configuration files from a specified directory
Analyzes the output of a Terraform plan and provides a summary of changes
Applies Terraform configurations to create or modify infrastructure
Manages Terraform state files and operations
Terraform Manager is an experimental CLI tool that enables AI assistants to interact with Terraform environments. It provides a bridge between large language models and infrastructure as code, allowing for reading configurations, analyzing plans, applying changes, and managing state through the Model Context Protocol (MCP). This tool streamlines infrastructure management by leveraging AI capabilities to understand and manipulate Terraform resources.
Terraform Manager (tfmcp) is a command-line tool that enables AI assistants to manage and operate your Terraform environments through the Model Context Protocol (MCP). This experimental tool bridges the gap between AI and infrastructure as code, allowing for more intuitive management of cloud resources.
You can install Terraform Manager using one of the following methods:
If you have Rust installed, you can install directly from Crates.io:
cargo install tfmcp
To build and install from source:
# Clone the repository
git clone https://github.com/nwiizo/tfmcp
cd tfmcp
# Build and install
cargo install --path .
For a containerized deployment:
# 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
Before using Terraform Manager, ensure you have:
Terraform Manager can be used in several ways:
To launch as an MCP server for AI assistant integration:
tfmcp mcp
To analyze existing Terraform configurations:
tfmcp analyze --path /path/to/terraform/project
For a complete list of commands and options:
tfmcp --help
Terraform Manager works seamlessly with Claude Desktop. Once the MCP server is running, Claude can:
tfmcp mcp
If you encounter issues:
Remember that Terraform Manager is experimental, so features may change without notice. Use with caution in production environments.