
hashicorp/terraform-mcp-server
Terraform ecosystem integration: provider discovery
by hashicorpOpen source
Description
The Terraform MCP Server is a Model Context Protocol server that connects AI assistants and coding tools to the Terraform Registry and HCP Terraform APIs. An agent can look up providers and modules in the public Terraform Registry. With HCP Terraform or Terraform Enterprise, it can also manage workspaces, including creating, updating and deleting them, with variables, tags and run management, and it can read private registry content. The server supports stdio and streamable HTTP transports. The README gives setup steps for VS Code, Cursor, Claude Desktop, Claude Code, Codex CLI and Gemini. For shared deployments it offers tool filtering, session modes and token passthrough. In streamable HTTP mode it exposes OpenTelemetry metrics for tool-call volume, latency and failures. The source is public on GitHub, in HashiCorp's repository.…
Highlights
- Look up Terraform providers and modules in the Registry
- Manage HCP Terraform and Enterprise workspaces
- Stdio and streamable HTTP transports
- Setup guides for VS Code, Cursor, Claude and Codex
- OpenTelemetry metrics for tool calls
Ratings & Reviews
No ratings yet
Be the first to rate hashicorp/terraform-mcp-server.
People also visit
hashicorp/terraform-mcp-server FAQ
What is the Terraform MCP Server?
An MCP server that lets AI assistants work with the Terraform Registry and HCP Terraform APIs for infrastructure-as-code work.
Is it free?
The source is public on GitHub. Its workspace features apply to HCP Terraform and Terraform Enterprise accounts.
Which AI tools can it connect to?
The README covers Visual Studio Code, Cursor, Claude Desktop, Amazon Q Developer, Kiro CLI, Claude Code, Codex CLI, Gemini extensions and Bob IDE.
Can a team run it centrally?
Yes. It has centralized deployment options with token passthrough, client IP forwarding and tool filtering, and a Docker image you can build locally.
What transports does it support?
Stdio for local use and StreamableHTTP for remote deployments, with configurable endpoints.
What are the best hashicorp/terraform-mcp-server alternatives?
Popular alternatives to hashicorp/terraform-mcp-server include mcp-apps-builder, building-mcp-server-on-cloudflare and ServiceNow MCP Server. See all hashicorp/terraform-mcp-server alternatives


















