Model Context Protocol (MCP) server that integrates with Terraform Registry APIs to automate provider/module discovery and documentation retrieval for IaC workflows.
https://github.com/hashicorp/terraform-mcp-serverStop context-switching between your IDE and the Terraform Registry. The Terraform MCP Server by HashiCorp transforms how you discover providers, modules, and documentation by bringing the entire Terraform ecosystem directly into your AI-assisted development workflow.
Every Terraform developer knows the frustration: you're deep in code, need to find the right provider resource or module, and suddenly you're juggling browser tabs, searching through documentation, and losing your flow state. What if your AI assistant could instantly access the entire Terraform Registry for you?
The Terraform MCP Server bridges your development environment with the Terraform Registry through the Model Context Protocol, enabling your AI assistants (VS Code Copilot, Claude Desktop) to:
Scenario 1: Building Multi-Cloud Infrastructure Instead of manually browsing provider documentation, ask your AI: "Show me the available resources for the AWS provider and get me the documentation for creating an EKS cluster." The MCP server instantly retrieves and presents the exact resource documentation you need.
Scenario 2: Module Discovery for Networking Query: "Find highly-rated VPC modules for AWS with recent updates." Get back a curated list with download statistics, verification status, and detailed configuration examples - all without leaving your IDE.
Scenario 3: Resource Configuration Assistance Working with an unfamiliar provider? Your AI can now fetch real-time documentation for any resource type, complete with argument references and usage examples, directly in your development context.
Built in Go with enterprise-grade reliability, the server exposes four powerful tools through the MCP protocol:
resolveProviderDocID - Lightning-fast provider documentation discoverygetProviderDocs - Complete markdown documentation retrievalsearchModules - Advanced module search with paginationmoduleDetails - Deep-dive module analysis with configuration examples{
"mcp": {
"servers": {
"terraform": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"hashicorp/terraform-mcp-server"
]
}
}
}
}
{
"mcpServers": {
"terraform": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"hashicorp/terraform-mcp-server"
]
}
}
}
That's it. Your AI assistant now has direct access to the Terraform ecosystem.
β±οΈ Time Savings: Cut documentation lookup time from minutes to seconds
π― Context Preservation: Stay in flow state - no more browser tab juggling
π Workflow Integration: Works with your existing AI-assisted development setup
π’ Team Consistency: Dockerized deployment ensures everyone has the same capabilities
π Quality Decisions: Access to download stats and verification data for better module choices
Don't let manual documentation searches slow down your infrastructure development. The Terraform MCP Server represents the next evolution of IaC tooling - where your AI assistant becomes an expert in the entire Terraform ecosystem.
Ready to transform your Terraform workflow? Get started in under a minute with the Docker image, or build from source for custom deployments. Your future self will thank you for making this upgrade.
Join 575+ developers who've already upgraded their Terraform workflow. Star the project on GitHub and experience the difference AI-assisted infrastructure development makes.