This project is no longer actively maintained. HashiCorp has released an official MCP server for Terraform at https://github.com/hashicorp/terraform-mcp-server. We recommend using the official server instead of this repository for better support and ongoing updates.
terraform-doc-mcp is an MCP server for retrieving documentation for Terraform providers and resources. It can be used to reference Terraform resource documentation from LLMs such as Claude Desktop.
- Supports multiple Terraform providers (aws, azurerm, google, cloudflare, datadog)
- Ability to fetch documentation for specific versions or the latest version
provider
: Terraform provider name (required). Supported providers: aws, azurerm, google, cloudflare, datadogresource
: Terraform resource name (required). Examples: aws_instance, google_compute_instance, datadog_monitorversion
: Provider version (optional, default is "latest")
To use this with Claude Desktop, add the following to your claude_desktop_config.json:
{
"mcpServers": {
"terraform-doc": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/tjun/terraform-doc-mcp:1.0"
],
"env": {}
}
}
}
This project is released under the license specified in the LICENSE file.