tfmcp

Run and review Terraform workflows locally through an MCP server.

Local

Install

See setup instructions on crates.io

What it does

tfmcp is an MCP server that lets AI assistants work with Terraform projects on your machine. It inspects a project, prepares a change, generates a saved plan, reviews that plan, applies the same approved plan, and checks the resulting state. Supporting tools cover validation, formatting, provider and lockfile inspection, dependency graphs, outputs with sensitive values redacted, workspace and state operations, drift candidates, and CI-oriented quality checks. Registry lookups and HCP Terraform/TFE operations such as organizations, workspaces, runs, variables and policy sets extend the local workflows.

It suits developers and platform teams already using Terraform who want an assistant to help analyze configurations and execute gated plan/apply steps. Install with cargo, build the Docker image, then register the executable with an MCP-compatible client such as Claude Desktop; it speaks stdio and Streamable HTTP. Terraform CLI must be on PATH.

  • Writes and destroys require explicit server permissions and a saved, reviewed plan ID
  • Saved plans live only for the current server process, capped at 64, and are not retried or rolled back

The project is under active development, and sensitive output redaction and state verification have limits described in the README.

Compatibility and authentication

Connection
Local
Transports
Unspecified
Authentication
Unknown

Security and permissions

  • When you run the server locally, it runs with your user permissions.
  • Authentication type: Unknown.

Repository data

Stars
373
Last push
Nov 12, 2026
License
MIT
Archived
No

Other Terraform MCP servers

Compare servers

FAQ

What license does tfmcp use?
MIT
Does tfmcp run locally or remotely?
It runs locally.
Is tfmcp an official server?
It is listed as a community server.

Comments

No comments yet.

Embed a listing badge

Featured on AI Agents Marketplace
<a href="https://aiagentsmarketplace.dev/mcp/tfmcp"><img src="https://aiagentsmarketplace.dev/badges/featured.svg" alt="Featured on AI Agents Marketplace" width="262" height="36"></a>
See badge options