# Install terraform-mcp-server with Homebrew, Nix

MCP server for Terraform. Version 1.0.0 via Homebrew; verified 2026-06-09.

## Install

```sh
sudo av install brew:terraform-mcp-server
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install terraform-mcp-server
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#terraform-mcp-server
```

  Evidence: nixpkgs package indexes: pkgs/by-name/te/terraform-mcp-server/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:terraform-mcp-server
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/terraform-mcp-server>
- **Version:** 1.0.0
- **Source summary:** MCP server for Terraform
- **Homepage:** <https://github.com/hashicorp/terraform-mcp-server>
- **Repository:** <https://github.com/hashicorp/terraform-mcp-server>
- **Upstream docs:** <https://github.com/hashicorp/terraform-mcp-server#readme>
- **License:** MPL-2.0
- **Source archive:** <https://github.com/hashicorp/terraform-mcp-server/archive/refs/tags/v1.0.0.tar.gz>
- **Last updated:** 2026-06-09T23:45:41Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- terraform-mcp-server (cli)
- terraform-mcp-server (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.0.0
- Package-manager updated: 2026-06-09
- Local data: ok
- Upstream repository: https://github.com/hashicorp/terraform-mcp-server
- Upstream latest detected: v1.0.0 (current)
## Project history and usage

terraform-mcp-server is HashiCorp's MCP server for connecting AI assistants and agentic development tools to Terraform Registry, HCP Terraform, and Terraform Enterprise workflows.

### Project history

HashiCorp created the terraform-mcp-server repository in April 2025, during the early wave of Model Context Protocol tooling for developer agents. The README describes a server that integrates with Terraform Registry APIs and supports both stdio and Streamable HTTP transports.

The project moved quickly from early 0.x releases to v1.0.0 in June 2026. Its README examples show installation through Docker or a local binary and configuration in MCP-capable clients such as Visual Studio Code agent mode, with optional HCP Terraform and Terraform Enterprise access through TFE environment variables.

### Adoption history

Because it is an official HashiCorp project in a new tool category, adoption is still young but visible in package-manager channels. Homebrew packaged v1.0.0 and reported hundreds of installs over the preceding year, while the GitHub repository accumulated more than a thousand stars by mid-2026.

### How it is used

The server is run in stdio mode for local MCP clients or in Streamable HTTP mode for networked clients. Its tools expose Terraform Registry providers, modules, policies, HCP Terraform workspaces, organization and project listing, private registry access, and guarded Terraform operations.

The README warns that server responses may expose Terraform data to MCP clients and LLMs, so users are expected to connect it only to trusted clients and to review dynamic recommendations before applying them.

### Why package nerds care

For package nerds, terraform-mcp-server marks the Terraform ecosystem's move from human-only CLIs into agent-facing package surfaces: a Homebrew-installable binary whose real job is to let editors and LLM clients discover Terraform metadata and act against Terraform services.

### Timeline

- 2025: Repository created and v0.1.0 released.
- 2026: v1.0.0 released and packaged by Homebrew.
- 2026: README documents stdio and Streamable HTTP transports for MCP clients.

### Related projects

- Terraform Registry, HCP Terraform, and Terraform Enterprise are the main Terraform services exposed by the server.
- Model Context Protocol clients such as Visual Studio Code agent mode are documented as launch surfaces.

### Sources

- <https://api.github.com/repos/hashicorp/terraform-mcp-server>
- <https://api.github.com/repos/hashicorp/terraform-mcp-server/releases>
- <https://formulae.brew.sh/api/formula/terraform-mcp-server.json>
- <https://github.com/hashicorp/terraform-mcp-server#readme>


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** terraform-mcp-server
- **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

## Other Package-Manager Records

- Nix - terraform-mcp-server: normalized package name match | nixpkgs package indexes: pkgs/by-name/te/terraform-mcp-server/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [Cloud CLI packages](https://www.automicvault.com/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [MCP tool packages](https://www.automicvault.com/pkg/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [supabase-mcp-server](https://www.automicvault.com/pkg/brew/supabase-mcp-server/) - Shares av.db curated category or tags: ai-tools, cli, developer-tools, mcp.
- [tfmcp](https://www.automicvault.com/pkg/brew/tfmcp/) - Shares av.db curated category or tags: cli, developer-tools, mcp, model-context-protocol, terraform.
- [crit](https://www.automicvault.com/pkg/brew/crit/) - Shares av.db curated category or tags: ai-tools, cli, developer-tools.
- [gitea-mcp-server](https://www.automicvault.com/pkg/brew/gitea-mcp-server/) - Shares av.db curated category or tags: ai-tools, cli, developer-tools, mcp, model-context-protocol.
- [github-mcp-server](https://www.automicvault.com/pkg/brew/github-mcp-server/) - Shares av.db curated category or tags: ai-tools, cli, developer-tools, mcp, model-context-protocol.
- [kubernetes-mcp-server](https://www.automicvault.com/pkg/brew/kubernetes-mcp-server/) - Shares av.db curated category or tags: cli, developer-tools, mcp, model-context-protocol.
- [llm](https://www.automicvault.com/pkg/brew/llm/) - Shares av.db curated category or tags: ai-tools, cli, developer-tools.
- [llmfit](https://www.automicvault.com/pkg/brew/llmfit/) - Shares av.db curated category or tags: ai-tools, cli, developer-tools.
- [terraform-ls](https://www.automicvault.com/pkg/brew/terraform-ls/) - Package names and metadata indicate a similar tool family. Shared terms: cli, developer, developer-tools, hashicorp, server.

## Combined YAML source

View the package source record on GitHub. [combined/terraform-mcp-server.yml](https://github.com/automic-vault/db/blob/main/combined/terraform-mcp-server.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
