# 使用 Homebrew 安装 tfmcp

查看 tfmcp 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:tfmcp
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tfmcp
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:tfmcp
- **软件包管理器:** Homebrew
- **版本:** 0.2.1
- **来源摘要:** Terraform Model Context Protocol (MCP) Tool
- **主页:** <https://github.com/nwiizo/tfmcp>
- **仓库:** <https://github.com/nwiizo/tfmcp>
- **最后更新:** 2026-07-26T12:33:17Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- tfmcp (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.2.1
## 项目历史与用法

tfmcp is a Rust command-line Model Context Protocol server for Terraform. The README describes it as a tool that lets LLMs read Terraform configurations, analyze plans, apply configurations, manage state, and integrate with Claude Desktop.

### 项目历史

tfmcp belongs to the post-MCP wave of infrastructure tooling: instead of wrapping Terraform for humans only, it exposes Terraform operations to AI assistants through MCP. The repository README labels the project as under active development while also emphasizing production-ready security controls.

The release history shows rapid expansion. v0.1.5 focused on CI/CD reliability and security; v0.1.6 added module health analysis and Terraform registry integration; v0.1.9 added ten local Terraform tools for feature parity with Terraform CLI operations; and v0.2.0 is listed as a release for registry expansion, tool filtering, and live docs.

### 采用历史

The project is newer and narrower than tfenv or tfmigrate, but the official repository already shows hundreds of GitHub stars and a Homebrew package in the input metadata. Its adoption niche is developers experimenting with AI-assisted infrastructure operations while keeping Terraform as the underlying execution engine.

Because MCP clients are typically configured per desktop or agent runtime, packaging tfmcp as a Homebrew formula makes it easier to install reproducibly next to Terraform itself.

### 使用方式

The README describes tfmcp as an MCP server with Terraform integration, module health analysis, resource dependency graphs, Terraform Registry lookup, plan and state analysis, workspace management, import helpers, `fmt`, `graph`, output access, taint/untaint, refresh, provider inspection, audit logging, access controls, and Docker support.

In practical use, tfmcp sits between an AI assistant and the Terraform CLI: the assistant calls MCP tools, and tfmcp performs or analyzes Terraform operations with policy and safety controls around them.

### 为什么软件包爱好者会关心

tfmcp is significant as an early package-manager-distributed example of AI-native infrastructure tooling. It is not a replacement for Terraform; it packages a controlled interface layer so agents can inspect and operate Terraform projects.

For package catalogs, it marks the moment when MCP servers became installable developer tools rather than just application plugins.

### 时间线

- 2025: v0.1.5 release notes focus on CI/CD reliability and security enhancements.
- 2025: v0.1.6 introduces module health analysis and Terraform Registry integration.
- 2025: v0.1.9 adds ten local Terraform tools and reaches 31 MCP tools.
- 2026: Releases page lists v0.2.0 for registry expansion, tool filtering, and live docs.

### Related projects

- Terraform is the underlying CLI that tfmcp integrates with.
- Model Context Protocol is the protocol surface tfmcp exposes.
- Claude Desktop is the README's visible MCP client example.

### 来源

- <https://github.com/nwiizo/tfmcp>
- <https://github.com/nwiizo/tfmcp/releases>
- source_facts.package-manager.brew


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Combined YAML source

View the package source record on GitHub. [combined/tfmcp.yml](https://github.com/mxcl/pkgdb/blob/main/combined/tfmcp.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
