Terraform MCP Server
HashiCorp's MCP server for the Terraform Registry and HCP Terraform or Terraform Enterprise workspaces.
Sources and review
Checked against public documentation on . Suitability guidance is our editorial judgment; this is not a performance benchmark or an endorsement.
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.
Terraform MCP Server is an open-source project written primarily in Go, with 1.5k stars on GitHub. It was last updated in September 2026.
Add Terraform MCP Server to your MCP client
Generated from the launch command in the project's README. Your client starts the server on demand.
Claude Code
claude mcp add terraform-mcp-server -- docker run -i --rm hashicorp/terraform-mcp-server:1.3.0Cursor
{
"mcpServers": {
"terraform-mcp-server": {
"command": "docker",
"args": ["run", "-i", "--rm", "hashicorp/terraform-mcp-server:1.3.0"]
}
}
}VS Code
{
"servers": {
"terraform-mcp-server": {
"type": "stdio",
"command": "docker",
"args": ["run", "-i", "--rm", "hashicorp/terraform-mcp-server:1.3.0"]
}
}
}Claude Desktop
{
"mcpServers": {
"terraform-mcp-server": {
"command": "docker",
"args": ["run", "-i", "--rm", "hashicorp/terraform-mcp-server:1.3.0"]
}
}
}Codex
[mcp_servers.terraform-mcp-server]
command = "docker"
args = ["run", "-i", "--rm", "hashicorp/terraform-mcp-server:1.3.0"]Terraform MCP Server vs. the alternatives
All 163 alternatives →| Record | Stars | Pricing | ||
|---|---|---|---|---|
| Terraform MCP Serverthis listing | 1.5k | Go | MPL-2.0 | Open source |
| MCP Reference Servers | 91k | TypeScript | MIT AND Apache-2.0 | Open source |
| context7 | 62k | TypeScript | MIT | Open source |
| chrome-devtools-mcp | 53k | TypeScript | Apache-2.0 | Open source |
| Playwright MCP | 37k | TypeScript | Apache-2.0 | Open source |
| github-mcp-server | 33k | Go | MIT | Open source |
