MCP servers for Terraform

8 servers from the official MCP Registry that work with Terraform, 1 of them official. 7 need no API key and 0 can run hosted. Each row shows the security checks, the secrets asked for and an install command.

Sort
How we check servers

Registry data fetched

Terraform MCP servers 8

MCP servers, Terraform, most relevant first
Type Secrets Version Actions
★ 1.6k io.github.hashicorp/terraform-mcp-server Official HashiCorp

Generate more accurate Terraform and automate workflows for HCP Terraform and Terraform Enterprise

4/4All passed86health of 100DockerRuns locallyNoneno keys asked1.4.1
★ 1 io.github.YawLabs/terraform-cwd-mcp

Terraform working-dir truth: pinned provider schemas, plans, state, modules, upgrade impact

6/71 warning47health of 100npmRuns locallyNoneno keys asked0.1.1
★ 1 io.github.RajeevSirohi/mcp-server-terraform

Safety-first Terraform: confirmation-gated apply/destroy, risk & cost analysis, drift detection

7/7All passed43health of 100npmRuns locallyNoneno keys asked0.2.1
io.github.ogormans-deptstack/opentofu-test

MCP server for the OpenTofu/Terraform native test framework: scaffold, mock, validate, run tests

4/4All passed43health of 100DockerRuns locallyNoneno keys asked0.1.0
★ 1.7k io.github.patrickchugh/terravision

Draw cloud architecture diagrams with official AWS, Azure and GCP icons from a prompt or Terraform.

4/4All passed75health of 100PyPIRuns locallyNoneno keys asked0.56.0
★ 1 io.github.apatilgtn/architecture-diagrams

AWS, Azure and GCP architecture diagrams with official icons, reviews, Terraform and GCP import

7/7All passed54health of 100PyPIRuns locallyNoneno keys asked1.2.0
★ 1 io.github.dockndevai/mcp-oci

Oracle Cloud discovery + Terraform generation for AI agents — read-only, secret-safe.

7/7All passed59health of 100npmRuns locallyNoneno keys asked0.1.4
io.github.cloudforgetech6-ctrl/cloudforge

Visualise diagrams, generate Terraform HCL, and manage Azure/AWS/GCP infrastructure with AI.

7/7All passed52health of 100npmRuns locally1secret asked1.1.0

Showing 1 to 8 of 8. These are the most recently updated; search or pick a category for the rest.

Terraform MCP servers: common questions

What is the best MCP server for Terraform?

Start with the official one, Terraform, since it comes from the company itself. Among community builds, the most-starred on GitHub are Terraform (★ 1.6k), Terraform CWD MCP Server (★ 1) and mcp-server-terraform (★ 1). If you want one that passed every check, Terraform did.

Are Terraform MCP servers safe to install?

On registry checks, 7 of 8 come out clean. We also read the code or live tool list of 5 of them without running anything, and 1 raised a warning worth reading, such as an install script or text aimed at the AI. Treat a pass as "nothing found", and give any server the least access that works.

Is a Claude skill better than an MCP server for Terraform?

An MCP server gives the AI new tools, such as reaching Terraform itself. A skill only teaches it how to do a task with tools it already has. There are 83 Claude skills for Terraform if that fits better.

How fresh are these Terraform MCP servers?

5 of the 8 were updated in the 30 days before 31 Oct 2026. The latest was Architecture Diagrams, on 27 October.

How do I add a Terraform MCP server to Claude?

To connect Terraform through Terraform, use this Claude Desktop (oci) entry: { "mcpServers": { "terraform-mcp-server": { "command": "docker", "args": [ "run", "-i", "--rm", "docker.io/hashicorp/terraform-mcp-server:1.4.1" ] } } }. Pin the version shown before you rely on it.

Do I have to install a Terraform MCP server?

None is hosted; every one runs on your machine. The 8 that run locally ship as 4 npm, 2 Docker and 2 PyPI packages.

More topics: every “MCP server for…” page. Prefer a skill? Claude skills for this (83).