1. Conduid
  2. Cloud
  3. hashicorp/terraform-mcp-server
MCP server · Cloud

hashicorp/terraform-mcp-server

The Terraform MCP Server provides seamless integration with Terraform ecosystem, enabling advanced automation and interaction capabilities for Infrastructure as Code (IaC) development.

Unclaimed MPL-2.0 science
82Strong

Scored 21 hours ago · breakdown

About hashicorp/terraform-mcp-server

hashicorp/terraform-mcp-server is an MCP server published by hashicorp in the Cloud category: the Terraform MCP Server provides seamless integration with Terraform ecosystem, enabling advanced automation and interaction capabilities for Infrastructure as Code (IaC) development. Conduid read 48 tools from its source: action_run, add_team_member, attach_policy_set_to_workspaces, attach_variable_set_to_workspaces, create_project, create_run and 42 more. No package is published for it, so it installs from a source checkout.

The repository has 1.6K stars and 203 forks, is licensed MPL-2.0, and its last commit was on 2 Dec 2026. The latest release is v1.4.1 (23 Oct 2026). It follows v1.4.0 (23 Oct 2026), and the 5 most recent releases go back to v1.1.0 (14 Jul 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include science.

Install

From source
git clone https://github.com/hashicorp/terraform-mcp-server

Tools (48)

action_runApplies, discards, or cancels a Terraform run.
add_team_memberAdds a single member to a Terraform Cloud/Enterprise team. Provide either a username (accepted invites only) or an organization membership ID (accepted and pending invites), not both.
attach_policy_set_to_workspacesAttach a policy set to one or more workspaces. Note: Policy sets marked as global cannot be attached to individual workspaces.
attach_variable_set_to_workspacesAttach a variable set to one or more workspaces.
create_projectCreates a new Terraform project in the specified organization.
create_runCreates a new Terraform run in the specified workspace.
create_teamCreates a new team in a Terraform Cloud/Enterprise organization.
create_variable_in_variable_setCreate a new variable in a variable set.
create_workspace_tagsAdd tags to a Terraform workspace. If a tag with the same key already exists, its value is replaced with the new value.
delete_projectDeletes a Terraform project by ID. This is a destructive operation. The request will fail if the project still contains workspaces or stacks. If the project ID isn't already known, call list_terraform_projects first to look it up rather than asking the user to find it themselves.
delete_teamPermanently deletes a Terraform team by its "team_id". This also removes all team memberships and any workspace or project access granted through the team. Organization users and workspaces are not deleted. If only a team name is known, use the list_teams tool first to look up the team_id.
delete_variable_in_variable_setDelete a variable in a variable set.
get_apply_detailsFetches detailed information about a specific Terraform apply.
get_apply_logsRetrieves the logs of a specific Terraform apply.
get_latest_module_versionFetches the latest version of a Terraform module from the public registry
get_latest_provider_versionFetches the latest version of a Terraform provider from the public registry
get_module_detailsFetches up-to-date documentation on how to use a Terraform module. You must call 'search_modules' first to obtain the exact valid and compatible module_id required to use this tool.
get_plan_detailsFetches detailed information about a specific Terraform plan.
get_plan_json_outputRetrieves the JSON output of a specific Terraform plan. This includes detailed information about resource changes (create, update, delete), attribute values before and after, and plan metadata. This is more structured and easier to parse than plain logs.
get_plan_logsRetrieves the logs of a specific Terraform plan.
get_policy_detailsFetches up-to-date documentation for a specific policy from the Terraform registry. You must call 'search_policies' first to obtain the exact terraform_policy_id required to use this tool.
get_private_module_detailsThis tool retrieves detailed information about a specific private module in your Terraform Cloud/Enterprise organization. It provides inputs, outputs, dependencies, versions, usage examples, and every published submodule with its own inputs, outputs, provider dependencies, resources, and README. Obtain the required namespace/name/provider private_module_id by calling search_private_modules first. This tool requires a valid Terraform token to be configured.
get_private_provider_detailsThis tool retrieves information about a specific private provider in your Terraform Cloud/Enterprise organization. It provides details on how to use the provider, permissions, available versions, and more. This tool requires a valid Terraform token to be configured.
get_projectFetches detailed information about a Terraform project by its ID. If the project ID isn't already known, call "list_terraform_projects" first.
get_provider_capabilitiesGet the capabilities of a Terraform provider including the types of resources, data sources, functions, guides, and other features it supports. This tool analyzes the provider documentation to determine what types of capabilities are available: - resources: Infrastructure resources that can be created/managed - data-sources: Read-only data sources for querying existing infrastructure - functions: Provider-specific functions for data transformation - guides: Documentation guides and tutorials for using the provider - actions: Available provider actions (if any) - ephemeral resources: Temporary resources for credentials and tokens - list-resources: List resources for querying existing cloud resources (Terraform Search) Returns a summary with counts and examples for each capability type.
get_provider_detailsFetches up-to-date documentation for a specific service from a Terraform provider. You must call 'search_provider_docs' tool first to obtain the exact tfprovider-compatible provider_doc_id required to use this tool.
get_run_commentsLists the user-submitted comments returned by the Terraform run comments endpoint. Use this tool when you need to review feedback, approvals, or notes that collaborators have left on a run. Returns each comment's ID and body text. To get the run's status, plan, and apply details instead, use get_run_details.
get_run_detailsFetches detailed information about a specific Terraform run.
get_sentinel_mockExports and downloads Sentinel mock bundle data for a Terraform plan. This data can be used to test Sentinel policies against plan output. The export is asynchronous - this tool handles polling until the export is ready.
get_stack_detailsFetches detailed information about a Terraform Stack by its ID. If the stack ID isn't already known, call "list_stacks" first.
get_state_versionRetrieves a Terraform state version. If state_version_id is provided, retrieves that specific state version. Otherwise, retrieves the latest state version for the specified workspace. One of state_version_id or workspace_id must be provided.
get_teamFetches detailed information about a Terraform team by its ID, including member IDs, organization access permissions, and SSO settings. If the team ID isn't already known, call "list_teams" first.
get_token_permissionsFetches the permissions the current token has for the specified terraform organization.
grant_team_accessGrants a team permission to access a workspace or a project in Terraform Cloud/Enterprise. Provide either workspace_id (for workspace-level access) or project_id (for project-level access), not both. Returns the created access grant including its ID, team ID, target resource ID, and access level.
list_runsLists or searches Terraform runs in a workspace or organization with optional filtering.
list_stacksList Terraform Stacks within a specified organization. Returns all stacks when no project or search query is supplied. Supports pagination for large result sets. Returns a truncated summary of each stack, use "get_stack_details" to get the full details for a specific stack.
list_state_versionsList all the state versions for a given Terraform workspace and organization.
list_teamsSearch and list teams within a specified Terraform Cloud/Enterprise organization. Returns a truncated summary of each team, use "get_team" to get the full details for a specific team. Optionally filter by exact team names or a substring search query. Supports pagination for large result sets.
list_terraform_orgsFetches a list of all Terraform organizations. Supports Pagination for large result sets.
list_terraform_projectsSearch and list Terraform projects within a specified organization. Supports pagination for large result sets. Returns a truncated summary of the project, use "get_project" to get the full details for a specific project.
list_workspace_policy_setsRead all policy sets attached to a workspace. Returns both directly attached policy sets and global policy sets that apply to all workspaces.
read_workspace_tagsRead all tags from a Terraform workspace.
search_modulesResolves a Terraform module name to obtain a compatible module_id for the get_module_details tool and returns a list of matching Terraform modules. You MUST call this function before 'get_module_details' to obtain a valid and compatible module_id. When selecting the best match, consider the following: - Name similarity to the query - Description relevance - Verification status (verified) - Download counts (popularity) Return the selected module_id and explain your choice. If there are multiple good matches, mention this but proceed with the most relevant one. If no modules were found, reattempt the search with a new moduleName query.
search_policiesSearches for Terraform policies based on a query string. This tool returns a list of matching policies, which can be used to retrieve detailed policy information using the 'get_policy_details' tool. You MUST call this function before 'get_policy_details' to obtain a valid terraform_policy_id. When selecting the best match, consider the following: - Name similarity to the query - Title relevance - Verification status (verified) - Download counts (popularity) Return the selected policyID and explain your choice. If there are multiple good matches, mention this but proceed with the most relevant one. If no policies were found, reattempt the search with a new policy_query.
search_private_modulesThis tool searches for private modules in your Terraform Cloud/Enterprise organization. It retrieves a list of private modules that match the search criteria. This tool requires a valid Terraform token to be configured.
search_private_providersThis tool searches for private providers in your Terraform Cloud/Enterprise organization. It retrieves a list of private providers that match the search criteria. This tool requires a valid Terraform token to be configured.
search_provider_docsThis tool retrieves a list of potential documents based on the 'service_slug' and 'provider_document_type' provided. You MUST call this function before 'get_provider_details' to obtain a valid tfprovider-compatible 'provider_doc_id'. Use the most relevant single word as the search query for 'service_slug', if unsure about the 'service_slug', use the 'provider_name' for its value. When selecting the best match, consider the following: - Title similarity to the query - Category relevance Return the selected 'provider_doc_id' and explain your choice. If there are multiple good matches, mention this but proceed with the most relevant one.
whoamiReturns the identity of the currently authenticated Terraform token. Use this to determine which user or service account the active token belongs to.

Security checks

Static checks derived from the repository 5 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 4.9K words.
  • ✓License declaredThe repository declares the MPL-2.0 license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by go.sum.
  • ✓No dynamic code executionScanned 199 source files and found no eval, dynamic Function or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

What the source scan found

Transport
stdio and Streamable HTTPpkg/mcp-official/stdio.go:60, pkg/mcp-mark3labs/http.go:212
Starts other programs
No calls that start other programs
Outbound network calls
7 callspkg/client/registry.go:106, pkg/client/registry.go:179, pkg/client/registry_client.go:21
Writes or deletes files
2 callspkg/logging/logging.go:120, pkg/logging/logging.go:139
Lockfile
go.sum

Pattern matches on the source text of 199 files: places to read, not proof of what the code does at run time.

Releases

v1.4.1v1.4.1 · 23 Oct 2026
v1.4.0v1.4.0 · 23 Oct 2026
v1.3.0v1.3.0 · 26 Aug 2026
v1.2.0v1.2.0 · 4 Aug 2026
v1.1.0v1.1.0 · 14 Jul 2026

README

The repository's README runs to about 4.9K words, fetched 5 days ago. The original in the repository is authoritative.

Read full README
Questions

About hashicorp/terraform-mcp-server

How do I install hashicorp/terraform-mcp-server?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is hashicorp/terraform-mcp-server safe to use with an AI agent?

Its trust score is 82 out of 100 (strong). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Conduid's scan of 199 source files found that it serves MCP over stdio and Streamable HTTP, makes outbound network calls (7 calls) and writes or deletes files (2 calls). Its dependencies are pinned by go.sum. It has no ConduID identity yet, so agent calls to it are not receipted.

Is hashicorp/terraform-mcp-server still maintained?

Yes — the latest release is v1.4.1 (23 Oct 2026), and the last commit was 12 hours ago. The repository has 1.6K stars and 38 open issues.

What tools does hashicorp/terraform-mcp-server provide?

Conduid read 48 tools from the source: action_run, add_team_member, attach_policy_set_to_workspaces, attach_variable_set_to_workspaces, create_project, create_run, create_team, create_variable_in_variable_set and 40 more.

What license is hashicorp/terraform-mcp-server released under?

The repository declares the MPL-2.0 license. That applies to the latest release, v1.4.1, as well.