MCP.so
Sign In

Terraform MCP Server

@pipethedev

Basic information

Category

Cloud & Infrastructure

License

MPL-2.0

Transports

stdio

Author

pipethedev

About Terraform MCP Server

No overview available yet

Terraform MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "terraform": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "hashicorp/terraform-mcp-server"
      ]
    }
  }
}

Terraform MCP Server tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Terraform MCP Server?

The Terraform MCP Server is a Model Context Protocol (MCP) server that integrates with Terraform Registry APIs, enabling advanced automation and interaction for Infrastructure as Code (IaC) development. It helps developers discover, explore, and analyze Terraform providers and modules through LLM-driven tooling.

How to use Terraform MCP Server?

Run the server as a Docker container (docker run -i --rm hashicorp/terraform-mcp-server) or install from source using go install. Configure it as an MCP server in VS Code (via User JSON or .vscode/mcp.json) or in Claude Desktop (via mcpServers). The server exposes tools for querying the Terraform Registry.

Key features of Terraform MCP Server

  • Resolves provider documentation IDs by service slug.
  • Fetches full provider documentation in markdown format.
  • Searches Terraform Registry modules with pagination.
  • Retrieves detailed module information including inputs and outputs.
  • Runs as a lightweight Docker container.
  • Built by HashiCorp for official Terraform Registry access.

Use cases of Terraform MCP Server

  • Automating Terraform provider and module discovery.
  • Extracting and analyzing data from the Terraform Registry.
  • Getting detailed information about provider resources and data sources.
  • Exploring and understanding Terraform modules.
  • Integrating LLM-driven IaC workflows with VS Code or Claude Desktop.

Frequently asked questions

1

Does Terraform MCP Server require Docker?

Yes, Docker is a prerequisite; the simplest deployment uses the official Docker image `hashicorp/terraform-mcp-server`.

2

What tools does Terraform MCP Server provide?

It offers four tools across two toolsets: `providers` (resolveProviderDocID, getProviderDocs) and `modules` (searchModules, moduleDetails).

3

Can I run Terraform MCP Server without Docker?

Yes, you can install from source with `go install github.com/hashicorp/terraform-mcp-server/cmd/terraform-mcp-server@latest` and run it directly.

4

What data does Terraform MCP Server access?

It queries the public Terraform Registry APIs for provider and module documentation. No local Terraform state or credentials are required.

5

Is Terraform MCP Server officially supported by HashiCorp?

Yes, it is maintained by HashiCorp under the MPL-2.0 license. Support options include GitHub issues and discussions.

Comments

More Cloud & Infrastructure MCP servers