# Terraform MCP Server For Infrastructure As Code

> Use when working with the official HashiCorp Terraform MCP server integrates with the Terraform Registry and HCP Terraform, enabling AI agents to browse providers, discover modules, manage workspaces, and validate infrastructure configurations through the Model Context Protocol.

- Skill: `tomevault-io/terraform-mcp-server-for-infrastructure-as-code` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/terraform-mcp-server-for-infrastructure-as-code`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/terraform-mcp-server-for-infrastructure-as-code/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/terraform-mcp-server-for-infrastructure-as-code

---


# Terraform MCP Server for Infrastructure as Code

The official HashiCorp Terraform MCP server integrates with the Terraform Registry and HCP Terraform, enabling AI agents to browse providers, discover modules, manage workspaces, and validate infrastructure configurations through the Model Context Protocol.

## Installation

Use the upstream install or setup path that matches your environment:
- docker run -p 8080:8080 --rm -e TRANSPORT_MODE=streamable-http -e TRANSPORT_HOST=0.0.0.0 hashicorp/terraform-mcp-server
- go install github.com/hashicorp/terraform-mcp-server/cmd/terraform-mcp-server@latest
- go install github.com/hashicorp/terraform-mcp-server/cmd/terraform-mcp-server@main
- git clone https://github.com/hashicorp/terraform-mcp-server.git

Requirements and caveats from upstream:
- Ensure [Docker](https://www.docker.com/) is installed and running to use the server in a containerized environment.
- | ENABLE_TF_OPERATIONS | Enable tools that require explicit approval | false |
- "command": "docker",

Basic usage or getting-started notes:
- **Workspace Operations**: Create, update, delete workspaces with support for variables, tags, and run management
- **OTel metrics for monitoring tool usage**: Integration with open telemetry meters to track tool-call volume, latency and failures in Streamable HTTP mode. Also exposes default http server metrics when this feature is...
- Install an AI assistant that supports the Model Context Protocol (MCP).

- Source: https://github.com/hashicorp/terraform-mcp-server
- Extracted from upstream docs: https://raw.githubusercontent.com/hashicorp/terraform-mcp-server/HEAD/README.md

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/terraform-mcp-server-infrastructure-as-code/)

---
> Source: [agentskillexchange/skills](https://github.com/agentskillexchange/skills) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-06-15 -->

