tfmcp is a command-line tool that uses the Model Context Protocol to enable LLMs to manage Terraform environments, analyze configurations, and execute operations, leveraging the Terraform CLI. tfmcp is a

260
6

tfmcp: Terraform Model Context Protocol Tool

⌘š ï¸ Experimental project, use with caution! ⌘š ï¸

tfmcp is a command-line tool that enables interaction with Terraform via the Model Context Protocol (MCP), allowing LLMs to manage Terraform environments. It supports reading configurations, analyzing plan outputs, applying configurations, managing state, and creating/modifying configurations.

The latest release (v0.1.1) is available on Crates.io. Key features include Terraform CLI integration, MCP server capabilities, Rust-powered speed, and automatic sample project setup.

Installation is available from source or Crates.io using Cargo. Requirements include Rust, Terraform CLI, and Claude Desktop for AI integration.

Usage involves launching tfmcp as an MCP server and configuring Claude Desktop to use it. Environment variables like TERRAFORM_DIR and TFMCP_LOG_LEVEL allow customization. Security considerations include reviewing Terraform plans and managing IAM permissions. Contributions are welcome. The roadmap includes enhanced analysis, multi-environment support, and integration with other AI platforms. Licensed under the MIT License.

Repository

NW
nwiizo

nwiizo/tfmcp

Created

March 8, 2025

Updated

March 28, 2025

Language

Rust

Category

Developer Tools