# 使用 Homebrew 安装 tfmcp

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tfmcp
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:tfmcp
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/tfmcp>
- **版本:** 0.2.1
- **来源摘要:** Terraform Model Context Protocol (MCP) Tool
- **主页:** <https://github.com/nwiizo/tfmcp>
- **仓库:** <https://github.com/nwiizo/tfmcp>
- **许可证:** MIT
- **源码归档:** <https://github.com/nwiizo/tfmcp/archive/refs/tags/v0.2.1.tar.gz>
- **最后更新:** 2026-07-26T12:33:17Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- tfmcp (cli)
- tfmcp (别名)

## 构建依赖

- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.2.1
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/nwiizo/tfmcp
- 检测到的最新版本: v0.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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** tfmcp
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [MCP tool packages](https://pkg.so/zh-hans/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [AI and agent packages](https://pkg.so/zh-hans/ai-agent-tools/) - Matched AI model, agent, coding-agent, orchestration, or MCP metadata.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [terraform-mcp-server](https://pkg.so/zh-hans/brew/terraform-mcp-server/) - Shares pkgdb curated category or tags: ai, cli, mcp, model-context-protocol, terraform.
- [github-mcp-server](https://pkg.so/zh-hans/brew/github-mcp-server/) - Shares pkgdb curated category or tags: ai, cli, mcp, model-context-protocol.
- [kubernetes-mcp-server](https://pkg.so/zh-hans/brew/kubernetes-mcp-server/) - Shares pkgdb curated category or tags: ai, cli, mcp, model-context-protocol.
- [gitea-mcp-server](https://pkg.so/zh-hans/brew/gitea-mcp-server/) - Shares pkgdb curated category or tags: ai, cli, mcp, model-context-protocol.
- [neo4j-mcp](https://pkg.so/zh-hans/brew/neo4j-mcp/) - Shares pkgdb curated category or tags: ai, cli, mcp, model-context-protocol.
- [mcp-toolbox](https://pkg.so/zh-hans/brew/mcp-toolbox/) - Shares pkgdb curated category or tags: ai, cli, mcp.
- [n8n-mcp](https://pkg.so/zh-hans/brew/n8n-mcp/) - Shares pkgdb curated category or tags: ai, cli, mcp.
- [playwright-mcp](https://pkg.so/zh-hans/brew/playwright-mcp/) - Shares pkgdb curated category or tags: ai, cli, mcp.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
