Enterprise DNA
M MCP Servers Developer low

nwiizo/tfmcp

by Various

🌍 Terraform Model Context Protocol (MCP) Tool - An experimental CLI tool that enables AI assistants to manage and operate Terraform environments. Supports reading Terraform config

N

MCP

nwiizo/tfmcp

Added 1 June 2026

#mcp #mcp-server #terraform

Overview

nwiizo/tfmcp is an experimental CLI tool written in Rust that bridges AI assistants with Terraform environments using the Model Context Protocol. It allows AI assistants to read Terraform configurations, analyze plans, apply configurations, and manage state, with direct integration for Claude Desktop.

Best for

Best for
Developers and DevOps engineers who want to manage Terraform infrastructure through conversational AI assistants like Claude Desktop.

Use cases

  • Let an AI assistant review and explain Terraform plan outputs before applying
  • Automate Terraform state management tasks through natural language commands
  • Enable Claude Desktop to read and apply Terraform configurations interactively

How to use

Install

cargo install tfmcp

Tools exposed

  • init_terraform
  • get_terraform_plan
  • analyze_plan
  • apply_terraform
  • destroy_terraform
  • validate_terraform
  • validate_terraform_detailed
  • get_terraform_state
  • analyze_state
  • list_terraform_resources
  • set_terraform_directory
  • terraform_workspace
  • terraform_import
  • terraform_taint
  • terraform_refresh
  • terraform_fmt
  • terraform_graph
  • terraform_output
  • terraform_providers
  • analyze_terraform

Tested with

Claude Desktop

Example client config

{\n  "mcpServers": {\n    "tfmcp": {\n      "command": "/path/to/your/tfmcp",\n      "args": ["mcp"],\n      "env": {\n        "HOME": "/Users/yourusername",\n        "PATH": "/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin",\n        "TERRAFORM_DIR": "/path/to/your/terraform/project"\n      }\n    }\n  }\n}

Notes

nwiizo/tfmcp is an experimental CLI tool written in Rust that bridges AI assistants with Terraform environments using the Model Context Protocol. It allows AI assistants to read Terraform configurations, analyze plans, apply configurations, and manage state, with direct integration for Claude Desktop.

365 stars on GitHub. Last updated 2026-03-26. Licensed MIT.

Use cases

  • Let an AI assistant review and explain Terraform plan outputs before applying
  • Automate Terraform state management tasks through natural language commands
  • Enable Claude Desktop to read and apply Terraform configurations interactively

Pros

  • Direct integration with Claude Desktop for conversational infrastructure management
  • Written in Rust for performance and reliability
  • Covers core Terraform workflows: read, plan, apply, and state management

Cons

  • Experimental status may lead to instability or breaking changes
  • Limited to Terraform environments, not a general infrastructure tool
  • Requires users to trust AI assistants with infrastructure operations

Indexed from awesome-mcp-servers-punkpeye and enriched against its public facts.

Pros

  • Direct integration with Claude Desktop for conversational infrastructure management
  • Written in Rust for performance and reliability
  • Covers core Terraform workflows: read, plan, apply, and state management

Cons

  • Experimental status may lead to instability or breaking changes
  • Limited to Terraform environments, not a general infrastructure tool
  • Requires users to trust AI assistants with infrastructure operations
Free 27-page guide

Get the free Developer’s Field Guide

A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.

Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.

No spam. Unsubscribe any time.

Running a business, not writing the code? See the MCP servers picked for operators, and get your first one wired up with us.

Operator picks