Skip to content
Back to skills

Terraform Mcp Server Infrastructure As Code

ASecurity

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.

  • 36 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 2, 2026
ai-agentsgodockerterraformgitsecurity

Works with

  • mcp

Security analysis

A100/100

Scanned June 2, 2026

npx -y skills add agentskillexchange/skills --skill terraform-mcp-server-infrastructure-as-code --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Terraform Mcp Server Infrastructure As Code?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Terraform Mcp Server Infrastructure As Code
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentskillexchange-terraform-mcp-server-infrastructure-as-code/badge)](https://www.skillsdirectory.com/skills/agentskillexchange-terraform-mcp-server-infrastructure-as-code)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "Terraform MCP Server for Infrastructure as Code"
slug: "terraform-mcp-server-infrastructure-as-code"
description: "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."
github_stars: 1298
verification: "security_reviewed"
source: "https://github.com/hashicorp/terraform-mcp-server"
category: "Developer Tools"
framework: "MCP"
tool_ecosystem:
  github_repo: "hashicorp/terraform-mcp-server"
  github_stars: 1298
---

# 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/)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.