# Terraform MCP
> A local MCP server for Terraform Registry research and, when configured, HCP Terraform or Terraform Enterprise workspace operations.
Canonical: https://www.mcpfolio.com/servers/hashicorp-terraform
Last updated: 2026-10-28
## Catalog record

- Publisher: HashiCorp
- Categories: search

## Website

https://developer.hashicorp.com/terraform/mcp-server

## Repository

https://github.com/hashicorp/terraform-mcp-server

## Transports

stdio (default); streamableHTTP

## Authentication

No token is required for public Terraform Registry tools. HCP Terraform or Terraform Enterprise features require a TFE_TOKEN; Terraform Enterprise may also require TFE_ADDRESS/TFE_HOSTNAME depending on the documented deployment setup.

## Tools

- **search_providers**: Find provider documentation by service name.
- **get_provider_details**: Retrieve documentation for a provider component.
- **get_provider_capabilities**: List provider resource types, data sources, and functions.
- **get_latest_provider_version**: Find the latest version of a provider.
- **search_modules**: Find public Registry modules by name or function.
- **get_module_details**: Retrieve module docs, inputs, outputs, examples, and submodules.
- **get_latest_module_version**: Find a module's latest version.
- **search_policies**: Search Sentinel policies.
- **get_policy_details**: Retrieve Sentinel policy details.
- **list_terraform_orgs**: List Terraform organizations.
- **list_terraform_projects**: List Terraform projects.
- **list_workspaces**: Search and list workspaces.
- **get_workspace_details**: Retrieve workspace configuration, variables, and state information.
- **create_workspace**: Create a workspace; gated by ENABLE_TF_OPERATIONS.
- **update_workspace**: Update workspace configuration; gated by ENABLE_TF_OPERATIONS.
- **delete_workspace_safely**: Delete an eligible workspace; gated by ENABLE_TF_OPERATIONS.
- **list_runs**: List or search runs.
- **get_run_details**: Get run details including logs and status.
- **create_run**: Create a Terraform run.
- **action_run**: Apply, discard, or cancel runs; gated by ENABLE_TF_OPERATIONS.
- **search_private_modules**: Search private modules in an organization.
- **get_private_module_details**: Retrieve private module details.
- **search_private_providers**: Search private providers.
- **get_private_provider_details**: Retrieve private provider details.
- **get_workspace_policy_sets**: List policy sets attached to a workspace.
- **attach_policy_set_to_workspace**: Attach a policy set to a workspace.
- **get_token_permissions**: Inspect permissions for the configured TFE_TOKEN.
- **get_plan_json_output**: Retrieve structured JSON for a Terraform plan.
- **get_plan_details**: Retrieve plan metadata.
- **get_plan_logs**: Retrieve plan logs.
- **get_apply_details**: Retrieve apply metadata.
- **get_apply_logs**: Retrieve apply logs.
- **list_variable_sets**: List organization variable sets.
- **create_variable_set**: Create a variable set.
- **create_variable_in_variable_set**: Add a variable to a variable set.
- **delete_variable_in_variable_set**: Remove a variable from a variable set.
- **attach_variable_set_to_workspaces**: Attach a variable set to workspaces.
- **detach_variable_set_from_workspaces**: Detach a variable set from workspaces.
- **list_workspace_variables**: List workspace variables.
- **create_workspace_variable**: Create a workspace variable.
- **update_workspace_variable**: Update a workspace variable.
- **create_workspace_tags**: Add tags to a workspace.
- **read_workspace_tags**: Read workspace tags.
- **list_stacks**: List Terraform Stacks.
- **get_stack_details**: Read a Terraform Stack's details.

## Sources

- [official_tool_reference](https://developer.hashicorp.com/terraform/mcp-server/reference)

## Setup

Use the interactive setup panel on [the detail page](https://www.mcpfolio.com/servers/hashicorp-terraform) to view instructions for each supported client.