# Terraform MCP Server

> HashiCorp's MCP server for the Terraform Registry and HCP Terraform or Terraform Enterprise workspaces.

## Facts
- **Category:** [MCP Servers](https://agentsearchengine.app/category/mcp-servers)
- **Type:** MCP server
- **Pricing:** Open source
- **GitHub stars:** 1,532
- **Language:** Go
- **License:** MPL-2.0
- **Last repo activity:** today (Sep 23, 2026)
- **Official site:** https://github.com/hashicorp/terraform-mcp-server
- **Source code:** https://github.com/hashicorp/terraform-mcp-server
- **Listing on Agent Search Engine:** https://agentsearchengine.app/agents/terraform-mcp-server
- **Data verified:** September 2026

## Best for
Writing and reviewing Terraform with an assistant that looks up current provider and module documentation.

## About Terraform MCP Server
HashiCorp's Terraform MCP Server integrates the public Terraform Registry, for providers, modules and policies, with HCP Terraform and Terraform Enterprise APIs, supporting workspace management, variables, tags, runs and private registry access. It runs over stdio or streamable HTTP and exposes OpenTelemetry metrics for tool usage.

## Connect to an MCP client
Launch command from the project's README: `docker run -i --rm hashicorp/terraform-mcp-server:1.3.0`

### Claude Code (Run in your terminal)

```shell
claude mcp add terraform-mcp-server -- docker run -i --rm hashicorp/terraform-mcp-server:1.3.0
```

### Cursor (~/.cursor/mcp.json or .cursor/mcp.json)

```json
{
  "mcpServers": {
    "terraform-mcp-server": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "hashicorp/terraform-mcp-server:1.3.0"]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "terraform-mcp-server": {
      "type": "stdio",
      "command": "docker",
      "args": ["run", "-i", "--rm", "hashicorp/terraform-mcp-server:1.3.0"]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "terraform-mcp-server": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "hashicorp/terraform-mcp-server:1.3.0"]
    }
  }
}
```

### Codex (~/.codex/config.toml)

```toml
[mcp_servers.terraform-mcp-server]
command = "docker"
args = ["run", "-i", "--rm", "hashicorp/terraform-mcp-server:1.3.0"]
```

## Alternatives
Terraform MCP Server sits in mcp servers. Related tools indexed here:
- [MCP Reference Servers](https://agentsearchengine.app/agents/mcp-reference-servers) — The MCP steering group's reference servers: Everything, Fetch, Filesystem, Git, Memory, Sequential Thinking and Time. · Open source · MCP server · 91k★ · TypeScript · MIT AND Apache-2.0 · active today
- [context7](https://agentsearchengine.app/agents/context7) — Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors · Open source · MCP server · 62k★ · TypeScript · MIT · active today
- [chrome-devtools-mcp](https://agentsearchengine.app/agents/chrome-devtools-mcp) — Chrome DevTools for coding agents · Open source · MCP server · 53k★ · TypeScript · Apache-2.0 · active today
- [Playwright MCP](https://agentsearchengine.app/agents/playwright-mcp) — Expose Playwright browser tools to MCP clients using accessibility snapshots. · Open source · MCP server · 37k★ · TypeScript · Apache-2.0 · active 4 days ago
- [github-mcp-server](https://agentsearchengine.app/agents/github-mcp-server) — GitHub's official MCP Server · Open source · MCP server · 33k★ · Go · MIT · active today
- [serena](https://agentsearchengine.app/agents/serena) — A powerful MCP toolkit for coding, providing semantic retrieval and editing capabilities - the IDE for your agent · Open source · SDK / library · 30k★ · Python · MIT · active today
- [MCP for Blender (blender-mcp)](https://agentsearchengine.app/agents/blender-mcp) — Connect Blender to Claude or any LLM client for prompt-driven 3D modelling and scene editing. · Open source · MCP server · 29k★ · Python · MIT · active 2 days ago
- [fastmcp](https://agentsearchengine.app/agents/fastmcp) — The fast, Pythonic way to build MCP servers and clients. · Open source · SDK / library · 28k★ · Python · Apache-2.0 · active today

---
Source: [Agent Search Engine](https://agentsearchengine.app) — an independent, hand-curated index of AI agents, MCP servers, and frameworks. Rankings are never sold; sponsored placements are labeled and never numbered. Full directory: https://agentsearchengine.app/llms-full.txt
