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.
b4c8016f2414io.github.hashicorp/terraform-mcp-serverPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- Some paths pass through more than 8 functions one inside another; the scanner stops there
- In 448 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
- 26 of 151 tools, prompts and resources could not be followed through the code
- 19 places in the code register tools whose names are computed at run time; how many tools that makes cannot be read from the code
- 6 tools, prompts and resources registered only in the repository's tests are not counted on this page
Top risks in plain words
- HIGHTools
get_policy_details,get_provider_detailsrequest any address by design: an agent steered by prompt injection can use them that way. - MEDIUM1 production dependency has known vulnerabilities (worst: medium).
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Limit where it can connect
get_policy_details,get_provider_detailscan request any address. Block access to internal hosts and cloud metadata endpoints. - Turn off the tools you do not use
Most MCP clients let you disable single tools. If you do not need
get_policy_details,get_provider_details, switch them off. - Give it a narrowly scoped token
Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.
- Update its vulnerable packages
Use
github.com/mark3labs/mcp-go1.5.1-0.20261109144041-2f5b9637ea84 or later. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 139 tools, 6 resources. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
action_run, add_team_member, attach_policy_set_to_workspaces, attach_variable_set_to_workspaces, create_no_code_workspace, create_project and 52 morecreate_no_code_workspace, get_latest_module_version, get_latest_provider_version, get_module_details, get_policy_details, get_provider_capabilities and 7 moreaction_run, add_team_member, attach_policy_set_to_workspaces, attach_variable_set_to_workspaces, create_no_code_workspace, create_project and 61 moreaction_run, add_team_member, attach_policy_set_to_workspaces, attach_variable_set_to_workspaces, create_no_code_workspace, create_project and 61 moreNo tool was seen to: start other programs on the machine; read environment variables.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
26 request addresses could not be settled from the code (built at run time).
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- web or API responses9 tools · get_latest_module_version, get_latest_provider_version, get_module_details +6
- files58 tools · action_run, add_team_member, attach_policy_set_to_workspaces +55
Tool annotations
58 of 145 tools declare annotations. readOnlyHint 43, destructiveHint 7, openWorldHint 35.
Tools, prompts and resources (145: 139 tools, 6 resources)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
get_policy_detailstool Fetches up-to-date documentation for a specific policy from the Terraform registry. You must call 'search_policies' first to obtain the exact terraform_policy_iNetworkCredentialsSensitive pathsoutside textread-only (declared)Requests any address
Fetches 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_provider_detailstool Fetches up-to-date documentation for a specific service from a Terraform provider. NetworkCredentialsSensitive pathsoutside textread-only (declared)Requests any address
Fetches 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.
(name computed at run time)resource
No description.
(name computed at run time)resource
No description.
(name computed at run time)resource
No description.
(name computed at run time)resource
No description.
(name computed at run time)resource
No description.
(name computed at run time)resource
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
action_runtool FilesCredentialsSensitive pathsoutside textdestructive (declared)
No description.
add_team_membertool Adds a single member to a Terraform Cloud/Enterprise team. Provide either a username (accepted invites only) or an organization membership ID (accepted and pendFilesCredentialsSensitive pathsoutside text
Adds 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_workspacestool Attach a policy set to one or more workspaces. Note: Policy sets marked as global cannot be attached to individual workspaces.FilesCredentialsSensitive pathsoutside text
Attach a policy set to one or more workspaces. Note: Policy sets marked as global cannot be attached to individual workspaces.
attach_variable_set_to_workspacestool Attach a variable set to one or more workspaces.FilesCredentialsSensitive pathsoutside text
Attach a variable set to one or more workspaces.
create_no_code_workspacetool Creates a new Terraform No Code module workspace. The tool uses the MCP elicitation feature to automatically discover and collect required variables from the usFilesNetworkCredentialsSensitive pathsoutside textdestructive (declared)
Creates a new Terraform No Code module workspace. The tool uses the MCP elicitation feature to automatically discover and collect required variables from the user.
create_projecttool Creates a new Terraform project in the specified organization.FilesCredentialsSensitive pathsoutside text
Creates a new Terraform project in the specified organization.
create_runtool Creates a new Terraform run in the specified workspace.FilesCredentialsSensitive pathsoutside text
Creates a new Terraform run in the specified workspace.
create_runtool Creates a new Terraform run in the specified workspace.FilesCredentialsSensitive pathsoutside textdestructive (declared)
Creates a new Terraform run in the specified workspace.
create_teamtool Creates a new team in a Terraform Cloud/Enterprise organization.FilesCredentialsSensitive pathsoutside text
Creates a new team in a Terraform Cloud/Enterprise organization.
create_variable_in_variable_settool Create a new variable in a variable set.FilesCredentialsSensitive pathsoutside text
Create a new variable in a variable set.
create_variable_settool Create a new variable set in an organization.FilesCredentialsSensitive pathsoutside text
Create a new variable set in an organization.
create_workspacetool Creates a new Terraform workspace in the specified organization. This is a destructive operation that will create new infrastructure resources.FilesCredentialsSensitive pathsoutside text
Creates a new Terraform workspace in the specified organization. This is a destructive operation that will create new infrastructure resources.
create_workspace_tagstool Add tags to a Terraform workspace.FilesCredentialsSensitive pathsoutside text
Add tags to a Terraform workspace.
create_workspace_variabletool Create a new variable in a Terraform workspace.FilesCredentialsSensitive pathsoutside text
Create a new variable in a Terraform workspace.
delete_projecttool FilesCredentialsSensitive pathsoutside textdestructive (declared)
No description.
delete_teamtool FilesCredentialsSensitive pathsoutside textdestructive (declared)
No description.
delete_variable_in_variable_settool Delete a variable in a variable set.FilesCredentialsSensitive pathsoutside text
Delete a variable in a variable set.
delete_workspace_safelytool Safely deletes a Terraform workspace by ID only if it is not managing any resources. This prevents accidental deletion of workspaces that still have active infrFilesCredentialsSensitive pathsoutside textdestructive (declared)
Safely deletes a Terraform workspace by ID only if it is not managing any resources. This prevents accidental deletion of workspaces that still have active infrastructure. This is a destructive operation.
detach_variable_set_from_workspacestool Detach a variable set from one or more workspaces.FilesCredentialsSensitive pathsoutside text
Detach a variable set from one or more workspaces.
execute_search_querytool FilesCredentialsSensitive pathsoutside text
No description.
force_unlock_workspacetool Force unlocks a Terraform workspace stuck in a lock. Prefer using the action_run tool with "discard" or "cancel" before force-unlocking a workspace. Requires woFilesCredentialsSensitive pathsoutside textdestructive (declared)
Force unlocks a Terraform workspace stuck in a lock. Prefer using the action_run tool with "discard" or "cancel" before force-unlocking a workspace. Requires workspace admin permissions (e.g. an Owners team token).
generate_search_query_configurationtool read-only (declared)
No description.
get_apply_detailstool Fetches detailed information about a specific Terraform apply.FilesCredentialsSensitive pathsoutside textread-only (declared)
Fetches detailed information about a specific Terraform apply.
get_apply_logstool Retrieves the logs of a specific Terraform apply.FilesCredentialsSensitive pathsoutside textread-only (declared)
Retrieves the logs of a specific Terraform apply.
get_latest_module_versiontool Fetches the latest version of a Terraform module from the public registryNetworkCredentialsSensitive pathsoutside textread-only (declared)
Fetches the latest version of a Terraform module from the public registry
get_latest_provider_versiontool Fetches the latest version of a Terraform provider from the public registryNetworkCredentialsSensitive pathsoutside textread-only (declared)
Fetches the latest version of a Terraform provider from the public registry
get_module_detailstool Fetches 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 requiNetworkCredentialsSensitive pathsoutside textread-only (declared)
Fetches 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_detailstool Fetches detailed information about a specific Terraform plan.FilesCredentialsSensitive pathsoutside textread-only (declared)
Fetches detailed information about a specific Terraform plan.
get_plan_json_outputtool FilesCredentialsSensitive pathsoutside textread-only (declared)
No description.
get_plan_logstool Retrieves the logs of a specific Terraform plan.FilesCredentialsSensitive pathsoutside textread-only (declared)
Retrieves the logs of a specific Terraform plan.
get_private_module_detailstool FilesCredentialsSensitive pathsoutside textread-only (declared)
No description.
get_private_provider_detailstool FilesCredentialsSensitive pathsoutside textread-only (declared)
No description.
get_projecttool FilesCredentialsSensitive pathsoutside textread-only (declared)
No description.
get_provider_capabilitiestool NetworkCredentialsSensitive pathsoutside textread-only (declared)
No description.
get_run_commentstool Lists all user-submitted comments on a specific Terraform run. Use this tool when you need to review feedback, approvals, or notes that collaborators have left FilesCredentialsSensitive pathsoutside textread-only (declared)
Lists all user-submitted comments on a specific Terraform run. 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_detailstool Fetches detailed information about a specific Terraform run.FilesCredentialsSensitive pathsoutside textread-only (declared)
Fetches detailed information about a specific Terraform run.
get_search_list_resource_schemastool FilesNetworkCredentialsSensitive pathsoutside textread-only (declared)
No description.
get_search_query_statustool FilesCredentialsSensitive pathsoutside textread-only (declared)
No description.
get_search_query_summarytool FilesCredentialsSensitive pathsoutside textread-only (declared)
No description.
get_sentinel_mocktool Exports 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 asynchrFilesCredentialsSensitive pathsoutside textread-only (declared)
Exports 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_detailstool Fetches detailed information about a specific Terraform Stack.FilesCredentialsSensitive pathsoutside textread-only (declared)
Fetches detailed information about a specific Terraform Stack.
get_state_versiontool Retrieves a Terraform state version. If state_version_id is provided, retrieves that specific state version. Otherwise, retrieves the latest state version for tFilesCredentialsSensitive pathsoutside textread-only (declared)
Retrieves 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_teamtool FilesCredentialsSensitive pathsoutside textread-only (declared)
No description.
get_token_permissionstool Fetches the permissions the current token has for the specified terraform organization.FilesCredentialsSensitive pathsoutside textread-only (declared)
Fetches the permissions the current token has for the specified terraform organization.
get_workspace_detailstool FilesCredentialsSensitive pathsoutside textread-only (declared)
No description.
grant_team_accesstool FilesCredentialsSensitive pathsoutside text
No description.
list_runstool List or search Terraform runs in a specific workspace with optional filtering.FilesCredentialsSensitive pathsoutside textread-only (declared)
List or search Terraform runs in a specific workspace with optional filtering.
list_stackstool List Stacks within a specified organization. Returns all stacks when no project or search query is supplied. Supports pagination for large result sets.FilesCredentialsSensitive pathsoutside textread-only (declared)
List Stacks within a specified organization. Returns all stacks when no project or search query is supplied. Supports pagination for large result sets.
list_state_versionstool List all the State Versions for a given workspace and org name.FilesCredentialsSensitive pathsoutside textread-only (declared)
List all the State Versions for a given workspace and org name.
list_teamstool FilesCredentialsSensitive pathsoutside textread-only (declared)
No description.
list_terraform_orgstool Fetches a list of all Terraform organizations. Supports Pagination for large result sets.FilesCredentialsSensitive pathsoutside textread-only (declared)
Fetches a list of all Terraform organizations. Supports Pagination for large result sets.
list_terraform_projectstool Fetches a list of all Terraform projects. Supports pagination for large result sets.FilesCredentialsSensitive pathsoutside textread-only (declared)
Fetches a list of all Terraform projects. Supports pagination for large result sets.
list_variable_setstool List all variable sets in an organization. Returns all if query is empty.FilesCredentialsSensitive pathsoutside text
List all variable sets in an organization. Returns all if query is empty.
list_workspace_policy_setstool Read all policy sets attached to a workspace. Returns both directly attached policy sets and global policy sets that apply to all workspaces.FilesCredentialsSensitive pathsoutside textread-only (declared)
Read all policy sets attached to a workspace. Returns both directly attached policy sets and global policy sets that apply to all workspaces.
list_workspace_variablestool List all variables in a Terraform workspace. Returns all variables if query is empty.FilesCredentialsSensitive pathsoutside text
List all variables in a Terraform workspace. Returns all variables if query is empty.
list_workspacestool FilesCredentialsSensitive pathsoutside textread-only (declared)
No description.
prepare_importtool FilesCredentialsSensitive pathsoutside textread-only (declared)
No description.
read_workspace_tagstool Read all tags from a Terraform workspace.FilesCredentialsSensitive pathsoutside textread-only (declared)
Read all tags from a Terraform workspace.
searchTools.ExecuteQueryFunctool
No description.
searchTools.GenerateQueryConfigurationFunctool
No description.
searchTools.GetQuerySummaryFunctool
No description.
searchTools.PrepareImportFunctool
No description.
searchTools.ProviderListSchemaListFunctool Network
No description.
searchTools.VerifyImportPlanFunctool
No description.
search_modulestool NetworkCredentialsSensitive pathsoutside textread-only (declared)
No description.
search_policiestool NetworkCredentialsSensitive pathsoutside textread-only (declared)
No description.
search_private_modulestool This tool searches for private modules in your Terraform Cloud/Enterprise organization.FilesCredentialsSensitive pathsoutside textread-only (declared)
This 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_providerstool This tool searches for private providers in your Terraform Cloud/Enterprise organization.FilesCredentialsSensitive pathsoutside textread-only (declared)
This 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_docstool NetworkCredentialsSensitive pathsoutside textread-only (declared)
No description.
tfeTools.ActionRunFunctool
No description.
tfeTools.AddTeamMemberFunctool
No description.
tfeTools.AttachPolicySetToWorkspacesFunctool
No description.
tfeTools.AttachVariableSetToWorkspacesFunctool
No description.
tfeTools.CreateNoCodeWorkspaceFunctool Network
No description.
tfeTools.CreateProjectFunctool
No description.
tfeTools.CreateRunSafeFunctool
No description.
tfeTools.CreateTeamFunctool
No description.
tfeTools.CreateVariableInVariableSetFunctool
No description.
tfeTools.CreateVariableSetFunctool
No description.
tfeTools.CreateWorkspaceFunctool
No description.
tfeTools.CreateWorkspaceTagsFunctool
No description.
tfeTools.CreateWorkspaceVariableFunctool
No description.
tfeTools.DeleteProjectFunctool
No description.
tfeTools.DeleteTeamFunctool
No description.
tfeTools.DeleteVariableInVariableSetFunctool
No description.
tfeTools.DeleteWorkspaceSafelyFunctool
No description.
tfeTools.DetachVariableSetFromWorkspacesFunctool
No description.
tfeTools.ForceUnlockWorkspaceFunctool
No description.
tfeTools.GetApplyDetailsFunctool
No description.
tfeTools.GetApplyLogsFunctool
No description.
tfeTools.GetPlanDetailsFunctool
No description.
tfeTools.GetPlanJSONOutputFunctool
No description.
tfeTools.GetPlanLogsFunctool
No description.
tfeTools.GetPrivateModuleDetailsFunctool
No description.
tfeTools.GetPrivateProviderDetailsFunctool
No description.
tfeTools.GetProjectFunctool
No description.
tfeTools.GetRunCommentsFunctool
No description.
tfeTools.GetRunDetailsFunctool
No description.
tfeTools.GetStackDetailsFunctool
No description.
tfeTools.GetStateVersionFunctool
No description.
tfeTools.GetTeamFunctool
No description.
tfeTools.GetTokenPermissionsFunctool
No description.
tfeTools.GrantTeamAccessFunctool
No description.
tfeTools.ListProjectsFunctool
No description.
tfeTools.ListRunsFunctool
No description.
tfeTools.ListStacksFunctool
No description.
tfeTools.ListStateVersionsFunctool
No description.
tfeTools.ListTeamsFunctool
No description.
tfeTools.ListTerraformOrganizationsFunctool
No description.
tfeTools.ListVariableSetsFunctool
No description.
tfeTools.ListWorkspacePolicySetsFunctool
No description.
tfeTools.ListWorkspaceVariablesFunctool
No description.
tfeTools.ListWorkspacesFunctool
No description.
tfeTools.ReadWorkspaceTagsFunctool
No description.
tfeTools.SearchPrivateModulesFunctool
No description.
tfeTools.SearchPrivateProvidersFunctool
No description.
tfeTools.UpdateWorkspaceFunctool
No description.
tfeTools.UpdateWorkspaceVariableFunctool
No description.
tfeTools.WhoAmIFunctool
No description.
tool.Handlertool
No description.
update_workspacetool Updates an existing Terraform workspace configuration. This is a potentially destructive operation that may affect infrastructure resources.FilesCredentialsSensitive pathsoutside text
Updates an existing Terraform workspace configuration. This is a potentially destructive operation that may affect infrastructure resources.
update_workspace_variabletool Update an existing variable in a Terraform workspace.FilesCredentialsSensitive pathsoutside text
Update an existing variable in a Terraform workspace.
verify_import_plantool FilesCredentialsSensitive pathsoutside textread-only (declared)
No description.
whoamitool Returns the identity of the currently authenticated Terraform token. Use this to determine which user or service account the active token belongs to.FilesCredentialsSensitive pathsoutside textread-only (declared)
Returns the identity of the currently authenticated Terraform token. Use this to determine which user or service account the active token belongs to.
Text the model reads (145)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
(name computed at run time) tool
(name computed at run time) tool
(name computed at run time) tool
(name computed at run time) tool
(name computed at run time) tool
(name computed at run time) tool
(name computed at run time) tool
(name computed at run time) tool
(name computed at run time) tool
searchTools.GenerateQueryConfigurationFunc tool
searchTools.ProviderListSchemaListFunc tool
searchTools.ExecuteQueryFunc tool
(name computed at run time) tool
searchTools.GetQuerySummaryFunc tool
searchTools.PrepareImportFunc tool
searchTools.VerifyImportPlanFunc tool
tfeTools.ListWorkspacesFunc tool
tfeTools.CreateWorkspaceFunc tool
(name computed at run time) tool
tfeTools.UpdateWorkspaceFunc tool
tfeTools.DeleteWorkspaceSafelyFunc tool
tfeTools.ListTerraformOrganizationsFunc tool
tfeTools.ListProjectsFunc tool
tfeTools.CreateProjectFunc tool
tfeTools.GetProjectFunc tool
tfeTools.DeleteProjectFunc tool
tfeTools.DeleteTeamFunc tool
tfeTools.WhoAmIFunc tool
tfeTools.GetTokenPermissionsFunc tool
tfeTools.ListStateVersionsFunc tool
tfeTools.GetStateVersionFunc tool
tfeTools.ListTeamsFunc tool
tfeTools.GetTeamFunc tool
tfeTools.CreateTeamFunc tool
tfeTools.AddTeamMemberFunc tool
tfeTools.GrantTeamAccessFunc tool
tfeTools.ListStacksFunc tool
tfeTools.GetStackDetailsFunc tool
tfeTools.ListVariableSetsFunc tool
tfeTools.CreateVariableSetFunc tool
tfeTools.CreateVariableInVariableSetFunc tool
tfeTools.DeleteVariableInVariableSetFunc tool
tfeTools.AttachVariableSetToWorkspacesFunc tool
tfeTools.DetachVariableSetFromWorkspacesFunc tool
tfeTools.ListRunsFunc tool
tfeTools.GetRunDetailsFunc tool
tfeTools.GetRunCommentsFunc tool
tfeTools.ActionRunFunc tool
tfeTools.GetPlanLogsFunc tool
tfeTools.GetPlanDetailsFunc tool
tfeTools.GetPlanJSONOutputFunc tool
tfeTools.GetApplyLogsFunc tool
tfeTools.GetApplyDetailsFunc tool
(name computed at run time) tool
tfeTools.ListWorkspaceVariablesFunc tool
tfeTools.CreateWorkspaceVariableFunc tool
tfeTools.UpdateWorkspaceVariableFunc tool
tfeTools.SearchPrivateModulesFunc tool
tfeTools.GetPrivateModuleDetailsFunc tool
tfeTools.GetPrivateProviderDetailsFunc tool
tfeTools.SearchPrivateProvidersFunc tool
tfeTools.ForceUnlockWorkspaceFunc tool
tfeTools.ReadWorkspaceTagsFunc tool
tfeTools.ListWorkspacePolicySetsFunc tool
tfeTools.AttachPolicySetToWorkspacesFunc tool
tfeTools.CreateWorkspaceTagsFunc tool
tfeTools.CreateNoCodeWorkspaceFunc tool
tfeTools.CreateRunSafeFunc tool
(name computed at run time) tool
get_latest_module_version tool
Fetches the latest version of a Terraform module from the public registry
get_latest_provider_version tool
Fetches the latest version of a Terraform provider from the public registry
get_module_details tool
Fetches 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_policy_details tool
Fetches 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_provider_capabilities tool
get_provider_details tool
Fetches 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.
search_modules tool
search_policies tool
search_provider_docs tool
execute_search_query tool
generate_search_query_configuration tool
get_search_list_resource_schemas tool
get_search_query_status tool
get_search_query_summary tool
prepare_import tool
verify_import_plan tool
action_run tool
add_team_member tool
Adds 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.
create_no_code_workspace tool
Creates a new Terraform No Code module workspace. The tool uses the MCP elicitation feature to automatically discover and collect required variables from the user.
create_project tool
Creates a new Terraform project in the specified organization.
create_run tool
Creates a new Terraform run in the specified workspace.
create_run tool
Creates a new Terraform run in the specified workspace.
create_team tool
Creates a new team in a Terraform Cloud/Enterprise organization.
create_workspace tool
Creates a new Terraform workspace in the specified organization. This is a destructive operation that will create new infrastructure resources.
delete_project tool
delete_team tool
delete_workspace_safely tool
Safely deletes a Terraform workspace by ID only if it is not managing any resources. This prevents accidental deletion of workspaces that still have active infrastructure. This is a destructive operation.
force_unlock_workspace tool
Force unlocks a Terraform workspace stuck in a lock. Prefer using the action_run tool with "discard" or "cancel" before force-unlocking a workspace. Requires workspace admin permissions (e.g. an Owners team token).
get_apply_details tool
Fetches detailed information about a specific Terraform apply.
get_apply_logs tool
Retrieves the logs of a specific Terraform apply.
get_plan_details tool
Fetches detailed information about a specific Terraform plan.
get_plan_json_output tool
get_plan_logs tool
Retrieves the logs of a specific Terraform plan.
get_private_module_details tool
get_private_provider_details tool
get_project tool
get_run_comments tool
Lists all user-submitted comments on a specific Terraform run. 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_details tool
Fetches detailed information about a specific Terraform run.
get_sentinel_mock tool
Exports 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_details tool
Fetches detailed information about a specific Terraform Stack.
get_state_version tool
Retrieves 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_team tool
get_token_permissions tool
Fetches the permissions the current token has for the specified terraform organization.
get_workspace_details tool
grant_team_access tool
list_runs tool
List or search Terraform runs in a specific workspace with optional filtering.
list_stacks tool
List Stacks within a specified organization. Returns all stacks when no project or search query is supplied. Supports pagination for large result sets.
list_state_versions tool
List all the State Versions for a given workspace and org name.
list_teams tool
list_terraform_orgs tool
Fetches a list of all Terraform organizations. Supports Pagination for large result sets.
list_terraform_projects tool
Fetches a list of all Terraform projects. Supports pagination for large result sets.
list_workspaces tool
attach_policy_set_to_workspaces tool
Attach a policy set to one or more workspaces. Note: Policy sets marked as global cannot be attached to individual workspaces.
list_workspace_policy_sets tool
Read all policy sets attached to a workspace. Returns both directly attached policy sets and global policy sets that apply to all workspaces.
search_private_modules tool
This 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_providers tool
This 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.
update_workspace tool
Updates an existing Terraform workspace configuration. This is a potentially destructive operation that may affect infrastructure resources.
list_variable_sets tool
List all variable sets in an organization. Returns all if query is empty.
create_variable_set tool
Create a new variable set in an organization.
create_variable_in_variable_set tool
Create a new variable in a variable set.
delete_variable_in_variable_set tool
Delete a variable in a variable set.
attach_variable_set_to_workspaces tool
Attach a variable set to one or more workspaces.
detach_variable_set_from_workspaces tool
Detach a variable set from one or more workspaces.
whoami tool
Returns the identity of the currently authenticated Terraform token. Use this to determine which user or service account the active token belongs to.
create_workspace_tags tool
Add tags to a Terraform workspace.
read_workspace_tags tool
Read all tags from a Terraform workspace.
list_workspace_variables tool
List all variables in a Terraform workspace. Returns all variables if query is empty.
create_workspace_variable tool
Create a new variable in a Terraform workspace.
update_workspace_variable tool
Update an existing variable in a Terraform workspace.
tool.Handler tool
(name computed at run time) resource
(name computed at run time) resource
(name computed at run time) resource
(name computed at run time) resource
(name computed at run time) resource
(name computed at run time) resource
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 125 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 125 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 125 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any address HIGH2 findings in get_policy_details, get_provider_details
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 125 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 145 capabilities; 125 more call code the scanner could not follow, where it may happen
- Tools that touch files59 of 145 capabilities touch files; 66 more call code the scanner could not follow, where it may happen
- Tools that call the network13 of 145 capabilities call the network; 112 more call code the scanner could not follow, where it may happen
Where the code is: 145 handlers in 116 files at commit b4c8016f2414
pkg/mcp-official/resources/resource_templates.go(name computed at run time)pkg/mcp-official/resources/resources.go(name computed at run time), (name computed at run time)pkg/mcp-official/tools/tools.go(name computed at run time), (name computed at run time), (name computed at run time), (name computed at run time), (name computed at run time), (name computed at run time), (name computed at run time), (name computed at run time), (name computed at run time), (name computed at run time), (name computed at run time), (name computed at run time)pkg/mcp-official/tools/search/search.gosearchTools.GenerateQueryConfigurationFunc, searchTools.ProviderListSchemaListFunc, searchTools.ExecuteQueryFunc, searchTools.GetQuerySummaryFunc, searchTools.PrepareImportFunc, searchTools.VerifyImportPlanFuncpkg/mcp-official/tools/tfe/workspaces_list_tool.gotfeTools.ListWorkspacesFuncpkg/mcp-official/tools/tfe/workspaces_create_tool.gotfeTools.CreateWorkspaceFuncpkg/mcp-official/tools/tfe/workspaces_update_tool.gotfeTools.UpdateWorkspaceFuncpkg/mcp-official/tools/tfe/workspaces_delete_tool_safely.gotfeTools.DeleteWorkspaceSafelyFuncpkg/mcp-official/tools/tfe/organizations_list_tool.gotfeTools.ListTerraformOrganizationsFuncpkg/mcp-official/tools/tfe/projects_list_tool.gotfeTools.ListProjectsFuncpkg/mcp-official/tools/tfe/projects_create_tool.gotfeTools.CreateProjectFuncpkg/mcp-official/tools/tfe/projects_get_tool.gotfeTools.GetProjectFuncpkg/mcp-official/tools/tfe/projects_delete_tool.gotfeTools.DeleteProjectFuncpkg/mcp-official/tools/tfe/teams_delete_tool.gotfeTools.DeleteTeamFuncpkg/mcp-official/tools/tfe/user_whoami_tool.gotfeTools.WhoAmIFuncpkg/mcp-official/tools/tfe/user_get_token_permissions_tool.gotfeTools.GetTokenPermissionsFuncpkg/mcp-official/tools/tfe/state_version_list_tool.gotfeTools.ListStateVersionsFuncpkg/mcp-official/tools/tfe/state_version_get_tool.gotfeTools.GetStateVersionFuncpkg/mcp-official/tools/tfe/teams_list_tool.gotfeTools.ListTeamsFuncpkg/mcp-official/tools/tfe/teams_get_tool.gotfeTools.GetTeamFuncpkg/mcp-official/tools/tfe/teams_create_tool.gotfeTools.CreateTeamFuncpkg/mcp-official/tools/tfe/teams_add_member_tool.gotfeTools.AddTeamMemberFuncpkg/mcp-official/tools/tfe/teams_grant_access_tool.gotfeTools.GrantTeamAccessFuncpkg/mcp-official/tools/tfe/stacks_list_tool.gotfeTools.ListStacksFuncpkg/mcp-official/tools/tfe/stacks_get_tool.gotfeTools.GetStackDetailsFuncpkg/mcp-official/tools/tfe/variable_sets_list_tool.gotfeTools.ListVariableSetsFuncpkg/mcp-official/tools/tfe/variable_sets_create_tool.gotfeTools.CreateVariableSetFuncpkg/mcp-official/tools/tfe/variable_set_variables_create_tool.gotfeTools.CreateVariableInVariableSetFuncpkg/mcp-official/tools/tfe/variable_set_variables_delete_tool.gotfeTools.DeleteVariableInVariableSetFuncpkg/mcp-official/tools/tfe/variable_sets_attach_tool.gotfeTools.AttachVariableSetToWorkspacesFuncpkg/mcp-official/tools/tfe/variable_sets_detach_tool.gotfeTools.DetachVariableSetFromWorkspacesFuncpkg/mcp-official/tools/tfe/runs_list_tool.gotfeTools.ListRunsFuncpkg/mcp-official/tools/tfe/runs_get_details_tool.gotfeTools.GetRunDetailsFuncpkg/mcp-official/tools/tfe/runs_get_comments_tool.gotfeTools.GetRunCommentsFuncpkg/mcp-official/tools/tfe/runs_action_tool.gotfeTools.ActionRunFuncpkg/mcp-official/tools/tfe/plans_get_logs_tool.gotfeTools.GetPlanLogsFuncpkg/mcp-official/tools/tfe/plans_get_details_tool.gotfeTools.GetPlanDetailsFuncpkg/mcp-official/tools/tfe/plans_get_json_output_tool.gotfeTools.GetPlanJSONOutputFuncpkg/mcp-official/tools/tfe/applies_get_logs_tool.gotfeTools.GetApplyLogsFuncpkg/mcp-official/tools/tfe/applies_get_details_tool.gotfeTools.GetApplyDetailsFuncpkg/mcp-official/tools/tfe/workspace_variables_list_tool.gotfeTools.ListWorkspaceVariablesFuncpkg/mcp-official/tools/tfe/workspace_variables_create_tool.gotfeTools.CreateWorkspaceVariableFuncpkg/mcp-official/tools/tfe/workspace_variables_update_tool.gotfeTools.UpdateWorkspaceVariableFuncpkg/mcp-official/tools/tfe/private_search_modules_tool.gotfeTools.SearchPrivateModulesFuncpkg/mcp-official/tools/tfe/private_get_module_details_tool.gotfeTools.GetPrivateModuleDetailsFuncpkg/mcp-official/tools/tfe/private_get_provider_details_tool.gotfeTools.GetPrivateProviderDetailsFuncpkg/mcp-official/tools/tfe/private_search_providers_tool.gotfeTools.SearchPrivateProvidersFuncpkg/mcp-official/tools/tfe/workspaces_force_unlock_tool.gotfeTools.ForceUnlockWorkspaceFuncpkg/mcp-official/tools/tfe/tags_read_tool.gotfeTools.ReadWorkspaceTagsFuncpkg/mcp-official/tools/tfe/policies_list_tool.gotfeTools.ListWorkspacePolicySetsFuncpkg/mcp-official/tools/tfe/policies_attach_tool.gotfeTools.AttachPolicySetToWorkspacesFuncpkg/mcp-official/tools/tfe/tags_create_tool.gotfeTools.CreateWorkspaceTagsFuncpkg/mcp-official/tools/tfe/workspaces_create_no_code_tool.gotfeTools.CreateNoCodeWorkspaceFuncpkg/mcp-official/tools/tfe/runs_create_tool.gotfeTools.CreateRunSafeFuncpkg/resources/resource_templates.go(name computed at run time)pkg/resources/resources.go(name computed at run time), (name computed at run time)pkg/tools/dynamic_tool.go(name computed at run time)pkg/tools/registry/get_latest_module_version.goget_latest_module_versionpkg/tools/registry/get_latest_provider_version.goget_latest_provider_versionpkg/tools/registry/get_module_details.goget_module_detailspkg/tools/registry/get_policy_details.goget_policy_detailspkg/tools/registry/get_provider_capabilities.goget_provider_capabilitiespkg/tools/registry/get_provider_details.goget_provider_detailspkg/tools/registry/search_modules.gosearch_modulespkg/tools/registry/search_policies.gosearch_policiespkg/tools/registry/search_provider_docs.gosearch_provider_docspkg/tools/search/execute_search_query.goexecute_search_querypkg/tools/search/generate_search_query_configuration.gogenerate_search_query_configurationpkg/tools/search/get_search_list_resource_schemas.goget_search_list_resource_schemaspkg/tools/search/get_search_query_status.goget_search_query_statuspkg/tools/search/get_search_query_summary.goget_search_query_summarypkg/tools/search/import_tools.goprepare_import, verify_import_planpkg/tools/tfe/action_run.goaction_runpkg/tools/tfe/add_team_member.goadd_team_memberpkg/tools/tfe/create_no_code_workspace.gocreate_no_code_workspacepkg/tools/tfe/create_project.gocreate_projectpkg/tools/tfe/create_run.gocreate_run, create_runpkg/tools/tfe/create_team.gocreate_teampkg/tools/tfe/create_workspace.gocreate_workspacepkg/tools/tfe/delete_project.godelete_projectpkg/tools/tfe/delete_team.godelete_teampkg/tools/tfe/delete_workspace_safely.godelete_workspace_safelypkg/tools/tfe/force_unlock_workspace.goforce_unlock_workspacepkg/tools/tfe/get_apply_details.goget_apply_detailspkg/tools/tfe/get_apply_logs.goget_apply_logspkg/tools/tfe/get_plan_details.goget_plan_detailspkg/tools/tfe/get_plan_json_output.goget_plan_json_outputpkg/tools/tfe/get_plan_logs.goget_plan_logspkg/tools/tfe/get_private_module_details.goget_private_module_detailspkg/tools/tfe/get_private_provider_details.goget_private_provider_detailspkg/tools/tfe/get_project.goget_projectpkg/tools/tfe/get_run_comments.goget_run_commentspkg/tools/tfe/get_run_details.goget_run_detailspkg/tools/tfe/get_sentinel_mock.goget_sentinel_mockpkg/tools/tfe/get_stack_details.goget_stack_detailspkg/tools/tfe/get_state_version.goget_state_versionpkg/tools/tfe/get_team.goget_teampkg/tools/tfe/get_token_permissions.goget_token_permissionspkg/tools/tfe/get_workspace_details.goget_workspace_detailspkg/tools/tfe/grant_team_access.gogrant_team_accesspkg/tools/tfe/list_runs.golist_runspkg/tools/tfe/list_stacks.golist_stackspkg/tools/tfe/list_state_versions.golist_state_versionspkg/tools/tfe/list_teams.golist_teamspkg/tools/tfe/list_terraform_orgs.golist_terraform_orgspkg/tools/tfe/list_terraform_projects.golist_terraform_projectspkg/tools/tfe/list_workspaces.golist_workspacespkg/tools/tfe/policy_sets.goattach_policy_set_to_workspaces, list_workspace_policy_setspkg/tools/tfe/search_private_modules.gosearch_private_modulespkg/tools/tfe/search_private_providers.gosearch_private_providerspkg/tools/tfe/update_workspace.goupdate_workspacepkg/tools/tfe/variable_sets.golist_variable_sets, create_variable_set, create_variable_in_variable_set, delete_variable_in_variable_set, attach_variable_set_to_workspaces, detach_variable_set_from_workspacespkg/tools/tfe/whoami.gowhoamipkg/tools/tfe/workspace_tags.gocreate_workspace_tags, read_workspace_tagspkg/tools/tfe/workspace_variables.golist_workspace_variables, create_workspace_variable, update_workspace_variablepkg/tools/tools.gotool.Handler
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests1 manifest: go.mod
- Lockfiles checked against OSV1 file resolved and checked against the OSV database
- Known vulnerabilities in production dependencies MEDIUM1 production package with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versiongithub.com/mark3labs/mcp-go v1.5.1-0.20261116104810-68b619826416, github.com/modelcontextprotocol/go-sdk v1.8.0
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentials68 of 145 capabilities read credentials; 57 more call code the scanner could not follow, where it may happen
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read (79 only in code no tool reaches)
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (1 in production)
github.com/mark3labs/mcp-goGo v0.58.0 MEDIUM 1 advisory 2026-11-09
- MEDIUMGO-2026-6911SSRF and credential leak via unvalidated redirects and SSE endpoint origin in github.com/mark3labs/mcp-go
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | Streamable HTTP, stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | github.com/mark3labs/mcp-go v1.5.1-0.20261116104810-68b619826416, github.com/modelcontextprotocol/go-sdk v1.8.0 |
| Servers in the code | 9 (test-version, terraform-mcp-server, test) |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-11-13 |
| Signed releases | not checked yet |
Where it is published
| MCP Registry | io.github.hashicorp/terraform-mcp-server |
|---|---|
| Listed in | 7 catalogs (awesome_habitoai, awesome_punkpeye, docker_catalog, github_search, glama, mcp_registry, mcp_toplist) |
| License | MPL-2.0 |
| Created | 2025-04-19 |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.