tfmcp
Verified Safeby nwiizo
Overview
A CLI tool and MCP server that enables LLMs to analyze, manage, and operate Terraform configurations and infrastructure environments.
Installation
tfmcp mcpEnvironment Variables
- TERRAFORM_DIR
- TFMCP_LOG_LEVEL
- TFMCP_ALLOW_DANGEROUS_OPS
- TFMCP_ALLOW_AUTO_APPROVE
- TFMCP_MAX_RESOURCES
- TFMCP_AUDIT_ENABLED
- TFMCP_AUDIT_LOG_FILE
- TFMCP_AUDIT_LOG_SENSITIVE
- TERRAFORM_BINARY_NAME
Security Notes
The server implements robust security controls by default. Dangerous operations (apply/destroy) are disabled, sensitive file patterns are blocked (e.g., 'prod*', 'secret*'), and a maximum resource limit is enforced. All operations are subject to audit logging. The code also includes internal secret detection patterns for Terraform configurations to warn users of potential hardcoded secrets. Policies can be customized via environment variables, requiring users to explicitly opt-in to less secure behaviors. There are no obvious 'eval' or obfuscation patterns.
Similar Servers
terraform-mcp-server
Provides seamless integration with Terraform Registry APIs and HCP Terraform/Terraform Enterprise APIs, enabling AI assistants/LLMs to generate high-quality Terraform code and automate IaC workflows.
ncp
NCP acts as a universal adapter and orchestrator for Model Context Protocol (MCP) servers and tools. It provides a unified interface for discovery, execution, and management of diverse tools (local CLI, HTTP APIs, internal plugins/Photons, AI skills) through natural language and structured code interaction, enabling AI agents to interact with the broader digital ecosystem.
1xn-vmcp
An open-source platform for composing, customizing, and extending multiple Model Context Protocol (MCP) servers into a single logical, virtual MCP server, enabling fine-grained context engineering for AI workflows and agents.
mcp-gearbox-cli
A command-line interface (CLI) tool for setting up Model Context Protocol (MCP) servers for various AI agents, handling download, configuration, and removal of server settings.