terraform-mcp-server
v0.13.0MCP server for Terraform Registry operations
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
providerDetails
Get detailed information about a Terraform provider by name and optionally version.
| Parameter | Type | Description |
|---|---|---|
namespace | string | Provider namespace (e.g. 'hashicorp') |
provider | string | Provider name (e.g. 'aws') |
version | string | Provider version (defaults to latest) |
resourceUsage
Get an example usage of a Terraform resource and related resources.
| Parameter | Type | Description |
|---|---|---|
name | string | Alternative resource name field (fallback if resource not specified) |
provider | string | Provider name (e.g. 'aws') |
resource | string | Resource name (e.g. 'aws_instance') |
moduleSearch
Search for and recommend Terraform modules based on a query.
| Parameter | Type | Description |
|---|---|---|
keyword | string | Alternative search keyword (fallback if query not specified) |
provider | string | Filter modules by provider (e.g. 'aws') |
query | string | Search query (e.g. 'vpc') |
listDataSources
List all available data sources for a provider and their basic details.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | Provider namespace (e.g. 'hashicorp') |
provider * | string | Provider name (e.g. 'aws') |
resourceArgumentDetails
Fetches comprehensive details about a specific resource type's arguments, including required and optional attributes, nested blocks, and their descriptions.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | Provider namespace (e.g. 'hashicorp') |
provider * | string | Provider name (e.g. 'aws') |
resource * | string | Resource name (e.g. 'aws_instance') |
version | string | Provider version (defaults to latest) |
moduleDetails
Retrieves detailed metadata for a Terraform module including versions, inputs, outputs, and dependencies.
| Parameter | Type | Description |
|---|---|---|
module * | string | Module name (e.g. 'vpc') |
namespace * | string | Module namespace (e.g. 'terraform-aws-modules') |
provider * | string | Provider name (e.g. 'aws') |
functionDetails
Get details about a Terraform provider function.
| Parameter | Type | Description |
|---|---|---|
function * | string | Function name (e.g. 'arn_parse') |
provider * | string | Provider name (e.g. 'aws') |
namespace | string | Provider namespace (e.g. 'hashicorp') |
providerGuides
List and view provider-specific guides, including version upgrades and feature guides.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Provider name (e.g. 'aws') |
guide | string | Specific guide to fetch (by slug or title) |
namespace | string | Provider namespace (e.g. 'hashicorp') |
search | string | Search term to filter guides |
policySearch
Search for policy libraries in the Terraform Registry.
| Parameter | Type | Description |
|---|---|---|
provider | string | Filter policies by provider (e.g. 'aws') |
query | string | Search query for finding policy libraries |
policyDetails
Get detailed information about a specific policy library including its latest version.
| Parameter | Type | Description |
|---|---|---|
name * | string | Policy library name (e.g. 'vault-aws-secret-type') |
namespace * | string | Policy library namespace (e.g. 'Great-Stone') |