How do I install tfmcp?
Install via Cargo: `cargo install tfmcp`, or build from source with `cargo install --path .`. Docker support is also available by building the image from the repository.
@nwiizo
Basic information
๐ Terraform Model Context Protocol (MCP) Tool - An experimental CLI tool that enables AI assistants to manage and operate Terraform environments. Supports reading Terraform configurations, analyzing plans, applying configurations, and managing state with Claude Desktop integrati
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"tfmcp": {
"command": "docker",
"args": [
"build",
"-t",
"tfmcp",
"."
]
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
tfmcp is a command-line tool that helps you interact with Terraform via the Model Context Protocol (MCP). It allows large language models (LLMs) to manage and operate your Terraform environments, including reading configurations, analyzing plans, applying changes, managing state, and creating or modifying Terraform configurations.
Install tfmcp with cargo install tfmcp or build from source, then run tfmcp mcp to launch it as an MCP server. To integrate with Claude Desktop, configure ~/Library/Application Support/Claude/claude_desktop_config.json pointing to the tfmcp executable with "args": ["mcp"]. You can specify a Terraform project directory via the -d flag, the TERRAFORM_DIR environment variable, or the set_terraform_directory tool at runtime.
Install via Cargo: `cargo install tfmcp`, or build from source with `cargo install --path .`. Docker support is also available by building the image from the repository.
After installing, find the tfmcp binary path (`which tfmcp`), then add an `mcpServers` entry to your `claude_desktop_config.json` with the command and `"args": ["mcp"]`. Restart Claude Desktop and enable the tool.
By default, dangerous operations (apply/destroy) are disabled. Set the environment variable `TFMCP_ALLOW_DANGEROUS_OPS` to `true` to enable them. Auto-approve can be enabled with `TFMCP_ALLOW_AUTO_APPROVE`.
Server logs are located at `~/Library/Logs/Claude/mcp-server-tfmcp.log`. Audit logs (if enabled) are written to `~/.tfmcp/audit.log` by default.
You need Rust (edition 2021 or later) and the Terraform CLI installed and available in your PATH. Claude Desktop is optional but recommended for AI assistant integration. Docker is optional for containerized deployment.
Development environments for coding agents. Enable multiple agents to work safely and independently with your preferred stack.
MCP server connecting to Kubernetes
Put the project you are working on online. Deploys the current folder or a GitHub repo to a live HTTPS URL on Dockhold; reads status and logs, sets variables, resizes apps and databases...
The official MCP server for Muumuu Domain by GMO Pepabo, Inc โ the first remote MCP server in the Japanese domain registrar industry. Search and register domains, manage owned domains and contracts, and configure DNS rec
The Terraform MCP Server provides seamless integration with Terraform ecosystem, enabling advanced automation and interaction capabilities for Infrastructure as Code (IaC) development.
Comments