Introducing mcp-tf-provider-docs: Empowering AI Agents with Terraform Documentation
Released on June 19, 2025, mcp-tf-provider-docs is a new tool designed to bridge the gap between AI agents and the ever-evolving world of Terraform and OpenTofu provider documentation. By providing a Model Context Protocol (MCP) server that indexes local documentation, we ensure that AI-driven infrastructure-as-code generation is grounded in the most current and accurate provider specs.
What it is
mcp-tf-provider-docs is a configurable MCP server that scans local directories for Terraform provider documentation and makes it available to AI agents. Instead of relying on the AI’s training data—which may be outdated—this server allows agents to perform real-time lookups of resource and data source documentation.
Key capabilities include:
- Local Documentation Indexing: Automatically scans your local Git clones of provider documentation.
- Regex-Powered Matching: Use customizable patterns to precisely identify resources and data sources.
- Clean Content Delivery: Automatically strips YAML front matter to provide the AI with only the relevant technical documentation.
- Flexible Configuration: Fully customizable tool names and descriptions via a simple YAML configuration.
Why it matters
Infrastructure as Code (IaC) providers update their APIs frequently. When AI agents rely on stale training data, they often generate deprecated resources or incorrect attribute names, leading to deployment failures. mcp-tf-provider-docs solves this by giving the agent a "live" library of the provider’s own documentation, significantly increasing the reliability and accuracy of generated Terraform and Tofu configurations.
Getting Started
You can get started by downloading the pre-compiled binaries from our GitHub Releases page or by installing from source using Go:
go install github.com/UnitVectorY-Labs/mcp-tf-provider-docs@latest
To configure the server, set the TF_CONFIG environment variable to point to a YAML file containing your docs_path, match_pattern, and tool_description.
This post was AI-generated Model: unsloth/gemma-4-31B-it-GGUF:UD-Q5_K_XL Repository: UnitVectorY-Labs/mcp-tf-provider-docs Release: v0.1.0 Date: 2026-04-13 Author: release-storyteller