{"type":"mcp_client","name":"tfmcp","description":"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","category":"Developer Tools","language":"Rust","stars":368,"forks":6,"owner":"nwiizo","github_url":"https://github.com/nwiizo/tfmcp","homepage":"https://crates.io/crates/tfmcp","setup":"## Setup\n\n**From Source**\n```bash\n# Clone the repository\ngit clone https://github.com/nwiizo/tfmcp\ncd tfmcp\n\n# Build and install\ncargo install --path .\n```\n\n**From Crates.io**\n```bash\ncargo install tfmcp\n```\n\n**Requirements**\n\n- Rust (edition 2021)\n- Terraform CLI installed and available in PATH\n- Claude Desktop (for AI assistant integration)\n\n**Integrating with Claude Desktop**\n\n1. If you haven't already, install tfmcp:\n   ```bash\n   cargo install tfmcp\n   ```\n\n2. Find the path to your installed tfmcp executable:\n   ```bash\n   which tfmcp\n   ```\n\n3. Add the following configuration to `~/Library/Application\\ Support/Claude/claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"tfmcp\": {\n      \"command\": \"/path/to/your/tfmcp\",  // Replace with the actual path from step 2\n      \"args\": [\"mcp\"],\n      \"env\": {\n        \"HOME\": \"/Users/yourusername\",  // Replace with your username\n        \"PATH\": \"/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin\",\n        \"TERRAFORM_DIR\": \"/path/to/your/terraform/project\"  // Optional: specify your Terraform project\n      }\n    }\n  }\n}\n```\n\n4. Restart Claude Desktop and enable the tfmcp tool.\n\n5. tfmcp will automatically create a sample Terraform project in `~/terraform` if one doesn't exist, ensuring Claude can start working with Terraform right away.","tools":"## Available Tools\n\n1. Terraform Integration (Deeply integrates with the Terraform CLI to analyze and execute operations).\n2. MCP Server Capabilities (Runs as a Model Context Protocol server, allowing AI assistants to access and manage Terraform).\n3. Blazing Fast (High-speed processing powered by the Rust ecosystem).\n4. Automatic Setup (Automatically creates sample Terraform projects when needed, ensuring smooth operation even for new users).\n5. Analyze Terraform configurations (Command-line tool to analyze Terraform configurations).\n6. Launch tfmcp as an MCP server (Command-line tool to launch tfmcp as an MCP server).","faq":null,"created_at":"2025-03-08T14:10:29+00:00","updated_at":"2025-03-28T23:36:25+00:00","source_url":"https://model-context-protocol.com/clients/terraform-ai-management-model-context-protocol","related_articles":[]}