About
tfmcp is a Rust‑based CLI and MCP server that lets LLMs read, analyze, modify, and apply Terraform configurations with enterprise‑grade security, audit logging, and Docker support.
Capabilities

Overview
The tfmcp server turns Terraform into a first‑class citizen for AI assistants. By exposing Terraform’s full CLI functionality through the Model Context Protocol, it lets large language models read, analyze, and even apply infrastructure changes directly from a conversation. This solves the long‑standing friction point where developers must manually run or after an LLM suggests code, thereby eliminating the cognitive load of context switching and reducing the chance of mis‑execution.
At its core, tfmcp acts as a lightweight MCP server written in Rust. It parses Terraform configuration files, runs the native binary for plan and apply operations, and returns structured results that an assistant can incorporate into its reasoning. The server also provides advanced analysis capabilities: it validates syntax, checks against best‑practice rules, and surfaces security concerns before any state is altered. This preemptive scrutiny gives developers confidence that the assistant’s suggestions are not only syntactically correct but also aligned with organizational policies.
Key features include enterprise‑grade security controls—file‑pattern restrictions, resource limits, and comprehensive audit logging—ensuring that only authorized operations can be performed. The server automatically scaffolds sample Terraform projects, which is invaluable for newcomers or rapid prototyping. Docker support allows teams to run tfmcp in isolated environments, simplifying CI/CD pipelines and eliminating host‑dependency headaches. Performance is a priority: Rust’s efficient parsing, caching layers, and minimal overhead mean that even large Terraform modules can be processed in a fraction of the time an LLM might otherwise spend waiting.
Typical use cases span from in‑chat code reviews (the assistant reads a Terraform file and highlights anti‑patterns) to automated deployment pipelines (Claude triggers after a user approves the plan). Developers can embed tfmcp into existing workflows—whether as a standalone service or a Docker container—and let AI assistants orchestrate infrastructure changes, audit compliance, and generate documentation on the fly. The combination of secure, fast, and fully integrated Terraform control makes tfmcp a compelling tool for any team looking to bring AI into the heart of their infrastructure operations.
Related Servers
n8n
Self‑hosted, code‑first workflow automation platform
FastMCP
TypeScript framework for rapid MCP server development
Activepieces
Open-source AI automation platform for building and deploying extensible workflows
MaxKB
Enterprise‑grade AI agent platform with RAG and workflow orchestration.
Filestash
Web‑based file manager for any storage backend
MCP for Beginners
Learn Model Context Protocol with hands‑on examples
Weekly Views
Server Health
Information
Explore More Servers
IaC Memory MCP Server
Persistent memory for IaC with version tracking and relationship mapping
mcpcap
Modular Python MCP Server for PCAP Analysis
OpenSearch MCP Server
Seamless search integration with Alibaba Cloud OpenSearch
Non Dirty MCP Client and Server
Simple note storage and summarization via Model Context Protocol
Red Bee MCP Server
Connect OTT services via MCP in HTTP, SSE, or Stdio mode
FlightRadar24 MCP Server
Real‑time flight tracking for Claude Desktop users