Terraform Registry MCP Server

Enables AI agents to interact with the Terraform Registry API for provider, resource, and module information.

Local serverstdio★ 120

What is the Terraform Registry MCP Server?

Enables AI agents to interact with the Terraform Registry API for provider, resource, and module information.

The short version

A Model Context Protocol (MCP) server that provides tools for interacting with the Terraform Registry API. This server enables AI agents to query provider information, resource details, and module metadata.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
providerDetailsGets detailed information about a Terraform provider
resourceUsageGets example usage of a Terraform resource and related resources
moduleSearchSearches for and recommends Terraform modules based on a query
listDataSourcesLists all available data sources for a provider and their basic details
resourceArgumentDetailsFetches comprehensive details about a resource type's arguments
moduleDetailsRetrieves detailed metadata for a Terraform module
functionDetailsGets details about a Terraform provider function
providerGuidesLists and views provider-specific guides and documentation
policySearchSearches for policy libraries in the Terraform Registry
policyDetailsGets detailed information about a specific policy library
listOrganizationsLists all organizations the authenticated user has access to
privateModuleSearchSearches for private modules in an organization
privateModuleDetailsGets detailed information about a private module
explorerQueryQueries the Terraform Cloud Explorer API to analyze data
listWorkspacesLists workspaces in an organization
workspaceDetailsGets detailed information about a specific workspace
lockWorkspaceLocks a workspace to prevent runs
unlockWorkspaceUnlocks a workspace to allow runs
listRunsLists runs for a workspace
runDetailsGets detailed information about a specific run
createRunCreates a new run for a workspace
applyRunApplies a run that's been planned
cancelRunCancels a run that's in progress
listWorkspaceResourcesLists resources in a workspace

How to install the Terraform Registry MCP Server

{
  "mcpServers": {
    "terraform-registry": {
      "command": "npx",
      "args": [
        "-y",
        "terraform-mcp-server"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Example prompts to try

  • “Use Terraform Registry to providerDetails.”
  • “Use Terraform Registry to resourceUsage.”
  • “Use Terraform Registry to moduleSearch.”

Frequently asked questions

It's a Model Context Protocol (MCP) server enabling AI agents to interact with the Terraform Registry API. It provides tools for querying provider information, resource details, and module metadata.