hashicorp/terraform-mcp-server
The Terraform MCP Server provides seamless integration with Terraform ecosystem, enabling advanced automation and interaction capabilities for Infrastructure as Code (IaC) development.
What it solves
Terraform MCP Server bridges AI assistants (like Claude, VS Code Copilot, etc.) with Terraform infrastructure management, letting them look up providers, modules, manage workspaces, and more—without leaving the chat interface.
How it works
It's an MCP server that exposes tools and resources over two transport modes: stdio (for local CLI tools) and Streamable HTTP (for remote/client-server setups). It connects to Terraform Registry and HCP Terraform APIs, using credentials like a TFE_TOKEN. It also supports workspace operations, tool filtering, session modes, and optional metrics via OpenTelemetry.
Who it’s for
Teams using AI coding assistants who want to manage Terraform infrastructure directly from those assistants. It's also for Terraform Enterprise/HCP users who need a secure bridge for AI-driven infrastructure workflows.
Highlights
- Full integration with Terraform Registry and HCP Terraform APIs.
- Create, update, delete workspaces and handle variables, tags, and runs.
- Dual transport: Stdio for local, Streamable HTTP for remote deployment.
- Security features: rate limiting, organization allowlist, TLS, token passthrough, and trusted proxy hops.
- OpenTelemetry metrics for monitoring tool usage and server health.
Related
- Project
- Project
- Project
- Project
- Project