Terraform MCP Server
@pipethedev
About Terraform MCP Server
No overview available yet
Basic information
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.
More Cloud & Infrastructure MCP servers
MCP Server Kubernetes
Flux159MCP Server for kubernetes management commands
Terraform MCP Server
hashicorpThe Terraform MCP Server provides seamless integration with Terraform ecosystem, enabling advanced automation and interaction capabilities for Infrastructure as Code (IaC) development.
Mcp K8s Go
strowkMCP server connecting to Kubernetes
container-use
aluzzardiDevelopment environments for coding agents. Enable multiple agents to work safely and independently with your preferred stack.
GCP MCP
eniayomiA Model Context Protocol (MCP) server that enables AI assistants like Claude to interact with your Google Cloud Platform environment. This allows for natural language querying and management of your GCP resources during conversations.
Comments