# Install terraform-mcp-server with Homebrew, Nix

MCP server for Terraform. Version 1.1.0 via Homebrew; verified 2026-07-26. Also installable with nix: nix profile install nixpkgs#terraform-mcp-server.

## 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
- **Version:** 1.1.0
- **Source summary:** MCP server for Terraform
- **Homepage:** <https://github.com/hashicorp/terraform-mcp-server>
- **Repository:** <https://github.com/hashicorp/terraform-mcp-server>
- **Last updated:** 2026-07-26T00:50:36+02:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- terraform-mcp-server (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 1.1.0
## 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

## 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


## Combined YAML source

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


## Sources

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