Home / MCP servers / Cloud & infra / terraform-mcp-server

terraform-mcp-server

terraform-mcp-server is a MCP server by hashicorp that terraform ecosystem integration: provider discovery, module analysis and Terraform Registry API access for infrastructure-as-code workflows.

Updated 2026-10-17

What is terraform-mcp-server?

terraform-mcp-server is a MCP server by hashicorp that terraform ecosystem integration: provider discovery, module analysis and Terraform Registry API access for infrastructure-as-code workflows. It is listed under Cloud & infra and has 1,550 GitHub stars.

TypeMcp server
Authorhashicorp
Repositoryhashicorp/terraform-mcp-server
Popularity1,550 GitHub stars
CategoryCloud & infra
SecurityLow risk (88/100)
Rank#145 of 4,418 MCP servers; #9 in Cloud & infra
LicenseMPL-2.0
Last commit2026-10-17
Stars this week+4
RunsCloud service
LanguageGo

Is terraform-mcp-server safe to install?

terraform-mcp-server scores 88/100 on the MCPMods security check: Low risk. Things to review: sends your data to a cloud service. It passed 5 of 6 checks.

MCP server results come from listing signals: who publishes it, where your data goes and what it can do. The code itself is not scanned yet.

CheckResult
Published by the service itselfPass
Sends your data to a cloud serviceReview
No credentials mentionedPass
Read-only by descriptionPass
No code executionPass
Source on GitHubPass

How do I install terraform-mcp-server?

  1. Find the launch command. The README says how the server starts (npx, uvx, docker or a remote URL) and which API keys it needs.
    https://github.com/hashicorp/terraform-mcp-server
  2. Add it to Claude Code. Replace the part after -- with the command from the README. Remote servers use --transport http with a URL.
    claude mcp add terraform-mcp-server -- <command from README>
    claude mcp add --transport http terraform-mcp-server <server-url>
  3. Check it connected. This lists your MCP servers and their status.
    claude mcp list

Or ask Claude to set it up

Paste this into Claude Code and it installs terraform-mcp-server for you:

Add the "terraform-mcp-server" MCP server from https://github.com/hashicorp/terraform-mcp-server to Claude Code. Read its README for the launch command and any API keys I need, run claude mcp add, then check that it connects.