Terraform MCP Server
@pipethedev
About Terraform MCP Server
No overview available yet
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"
]
}
}
}Tools
No tools detected
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.
FAQ from Terraform MCP Server
Does Terraform MCP Server require Docker?
Yes, Docker is a prerequisite; the simplest deployment uses the official Docker image hashicorp/terraform-mcp-server.
What tools does Terraform MCP Server provide?
It offers four tools across two toolsets: providers (resolveProviderDocID, getProviderDocs) and modules (searchModules, moduleDetails).
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.
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.
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.
Frequently asked questions
Does Terraform MCP Server require Docker?
Yes, Docker is a prerequisite; the simplest deployment uses the official Docker image `hashicorp/terraform-mcp-server`.
What tools does Terraform MCP Server provide?
It offers four tools across two toolsets: `providers` (resolveProviderDocID, getProviderDocs) and `modules` (searchModules, moduleDetails).
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.
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.
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.
Basic information
More Cloud & Infrastructure MCP servers
Firebase MCP
gannonh🔥 Model Context Protocol (MCP) server for Firebase.
container-use
daggerDevelopment environments for coding agents. Enable multiple agents to work safely and independently with your preferred stack.
AWS Model Context Protocol (MCP) Server
alexei-ledA lightweight service that enables AI assistants to execute AWS CLI commands (in safe containerized environment) through the Model Context Protocol (MCP). Bridges Claude, Cursor, and other MCP-aware AI tools with AWS CLI for enhanced cloud infrastructure management.
Azure DevOps MCP Server
Tiberriver256An MCP server for Azure DevOps
Mcp K8s Go
strowkMCP server connecting to Kubernetes
Comments