functionDetails
Get details about a Terraform provider function.
Look up a resource's arguments, a module's inputs and outputs, or a worked example of a resource, while the HCL file is still open.
No longer maintained. The GitHub repository for this server is archived — no fixes or security updates are expected.
LABSCO SUMMARY
resourceArgumentDetails returns required and optional attributes with their nested blocks, so writing an unfamiliar resource stops being a trip to the registry site and back. providerGuides carries the upgrade notes, which is the page you actually want open when a provider's major version moves under you.
A Terraform Registry client: with no token it loads 10 read-only tools, and a Terraform Cloud API token in TFC_TOKEN adds fourteen more for organizations, private modules, workspaces and runs. The ten cover providers with their resources, data sources, functions and guides; modules with versions, inputs, outputs and dependencies; and policy libraries.
npx on your PATH. The registry tools need no credentials; the fourteen Terraform Cloud tools need a Terraform Cloud API token in TFC_TOKEN, and they can create, apply and cancel runs and lock workspaces.
One command — npx -y terraform-mcp-server
USE CASES
Read the resource's required and optional attributes with their nested blocks, then look at a worked example and the resources that usually sit alongside it.
Search the registry for candidates, then read the shortlist's versions, inputs, outputs and dependencies before you commit a source line.
Check what the version actually is, then read the provider's guides — the upgrade notes are where the removed arguments are listed.
List everything the provider exposes as a data source rather than hardcoding an ID, and check the provider functions for the transform you were about to write in HCL.
Search the registry's policy libraries and read the one you settle on, including its latest version, before writing rules by hand.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
functionDetailsGet details about a Terraform provider function.
listDataSourcesList all available data sources for a provider and their basic details.
moduleDetailsRetrieves detailed metadata for a Terraform module including versions, inputs, outputs, and dependencies.
moduleSearchSearch for and recommend Terraform modules based on a query.
policyDetailsGet detailed information about a specific policy library including its latest version.
policySearchSearch for policy libraries in the Terraform Registry.
providerDetailsGet detailed information about a Terraform provider by name and optionally version.
providerGuidesList and view provider-specific guides, including version upgrades and feature guides.
resourceArgumentDetailsFetches comprehensive details about a specific resource type's arguments, including required and optional attributes, nested blocks, and their descriptions.
resourceUsageGet an example usage of a Terraform resource and related resources.
BEFORE YOU INSTALL
10 tools when we connected; the project documents 24. Without TFC_TOKEN only the ten public-registry read tools load; a Terraform Cloud API token adds fourteen more, including createRun, applyRun, cancelRun, lockWorkspace and unlockWorkspace. Calling the prompts directly may crash the server.
npx on PATH
The documented client runs the server on your machine.
INSTALLATION
npx -y terraform-mcp-server{
"mcpServers": {
"terraform-registry": {
"command": "npx",
"args": [
"-y",
"terraform-mcp-server"
]
}
}
}