tfmcp logo

tfmcp

by nwiizo

tfmcp is a command-line tool that helps you interact with Terraform via the Model Context Protocol (MCP). It allows LLMs to manage and operate your Terraform environments.

View on GitHub

Last updated: N/A

What is tfmcp?

tfmcp is a command-line tool that acts as a Model Context Protocol (MCP) server, enabling AI assistants to interact with and manage Terraform environments. It provides a bridge between LLMs and Terraform, allowing for automated infrastructure management.

How to use tfmcp?

Install tfmcp using Cargo (cargo install tfmcp). Configure Claude Desktop to use tfmcp as an MCP server by specifying the path to the executable and necessary environment variables. Run tfmcp --help to see available commands. Use the mcp command to launch the server.

Key features of tfmcp

  • Terraform Integration

  • MCP Server Capabilities

  • Blazing Fast performance

  • Automatic Setup of sample Terraform projects

Use cases of tfmcp

  • Reading Terraform configuration files

  • Analyzing Terraform plan outputs

  • Applying Terraform configurations

  • Managing Terraform state

FAQ from tfmcp

How do I install tfmcp?

You can install tfmcp using Cargo: cargo install tfmcp.

How do I integrate tfmcp with Claude Desktop?

Add the tfmcp configuration to your claude_desktop_config.json file, specifying the command, arguments, and environment variables.

Where are the tfmcp server logs located?

The logs are located at ~/Library/Logs/Claude/mcp-server-tfmcp.log.

What if Claude can't connect to the server?

Make sure the path to the tfmcp executable is correct in your configuration.

What if I don't have a Terraform project?

tfmcp automatically creates a sample Terraform project in ~/terraform if one doesn't exist.