Terraform
Generate more accurate Terraform and automate workflows for HCP Terraform and Terraform Enterprise
Connector by hashicorpOfficial · GitHub account verified by the MCP Registry
Install
Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.
npx agentmarket install connector/hashicorp-terraform-mcp-server
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: infrastructure-as-code, cloud-management
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this server can do and what it asks for, from its tool list and install config. Checked Oct 25, 2026.
- Tools
- 39 read · 15 write · 7 delete
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Docker image
Tools by what they do 61
Read from the source code; the running server may list different tools.
Read 39 · Look things up without changing anything.
get_apply_detailsget_apply_logsget_latest_module_versionget_latest_provider_versionget_module_detailsget_plan_detailsget_plan_json_outputget_plan_logsget_policy_detailsget_private_module_detailsget_private_provider_detailsget_project
Show 27 more tools
get_provider_capabilitiesget_provider_detailsget_run_commentsget_run_detailsget_sentinel_mockget_stack_detailsget_state_versionget_teamget_token_permissionsget_workspace_detailslist_runslist_stackslist_state_versionslist_teamslist_terraform_orgslist_terraform_projectslist_variable_setslist_workspace_policy_setslist_workspace_variableslist_workspacesread_workspace_tagssearch_modulessearch_policiessearch_private_modulessearch_private_providerssearch_provider_docswhoami
Write 15 · Create, change, send or run things.
add_team_memberattach_policy_set_to_workspacesattach_variable_set_to_workspacescreate_projectcreate_runcreate_teamcreate_variable_in_variable_setcreate_variable_setcreate_workspacecreate_workspace_tagscreate_workspace_variabledetach_variable_set_from_workspaces
Show 3 more tools
grant_team_accessupdate_workspaceupdate_workspace_variable
Delete 7 · Delete, drop, revoke or wipe things.
action_runcreate_no_code_workspacedelete_projectdelete_teamdelete_variable_in_variable_setdelete_workspace_safelyforce_unlock_workspace
Files it touches
- Any path the agent passes to its tools
Tools (61)
Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].
action_runApply, Discard or Cancel a Terraform runcan change or delete dataApplies, discards, or cancels a Terraform run.
add_team_memberAdd member to a Terraform teamAdds 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_no_code_workspaceCreate a No Code module workspacecan change or delete dataCreates a new Terraform No Code module workspace. The tool uses MCP elicitation to discover and collect required variables from the user.
create_projectCreate a new Terraform projectCreates a new Terraform project in the specified organization.
create_runCreate a new Terraform runCreates a new Terraform run in the specified workspace.
create_teamCreate a new team in a Terraform organizationCreates a new team in a Terraform Cloud/Enterprise organization.
create_variable_in_variable_setCreate a new variable in a variable set.
create_variable_setCreate a new variable set in an organization.
create_workspaceCreate a new Terraform workspaceCreates a new Terraform workspace in the specified organization.
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.
create_workspace_variableCreates a new variable in a Terraform workspace. Use category terraform for Terraform input variables and env for environment variables. Set hcl to true only when the value is HCL syntax rather than a plain string.
delete_projectDelete a Terraform project by IDcan change or delete dataDeletes 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_teamDeletes a Terraform Team by "team_id"can change or delete dataPermanently 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.
Show 46 more tools
delete_variable_in_variable_setDelete a variable in a variable set.
delete_workspace_safelySafely delete a Terraform workspace by IDcan change or delete dataSafely 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_workspacesDetach a variable set from one or more workspaces.
force_unlock_workspaceForce unlock a Terraform workspace by IDcan change or delete dataForce unlocks a Terraform workspace that has a stale lock, meaning the lock was left behind by a run that crashed, got interrupted, or timed out. Do not use this tool while a run is still active. Force-unlocking will not stop that run, it only removes the lock, which can let two runs change the same workspace at the same time. If a run is still active, use the action_run tool with discard or cancel instead. This tool needs workspace admin permissions, such as an Owners team token.
get_apply_detailsGet detailed information about a Terraform applyread-onlyFetches detailed information about a specific Terraform apply.
get_apply_logsGet logs for a Terraform applyread-onlyRetrieves the logs of a specific Terraform apply.
get_latest_module_versionGet Latest Module Versionread-onlyFetches the latest version of a Terraform module from the public registry
get_latest_provider_versionGet Latest Provider Versionread-onlyFetches the latest version of a Terraform provider from the public registry
get_module_detailsRetrieve documentation for a specific Terraform moduleread-onlyFetches 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_detailsGet detailed information about a Terraform planread-onlyFetches detailed information about a specific Terraform plan.
get_plan_json_outputGet JSON output for a Terraform planread-onlyRetrieves 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_logsGet logs for a Terraform planread-onlyRetrieves the logs of a specific Terraform plan.
get_policy_detailsFetch detailed Terraform policy documentation using a terraform_policy_idread-onlyFetches 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_detailsGet detailed information about a private moduleread-onlyThis 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_detailsGet detailed information about a private providerread-onlyThis 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_projectGet a Terraform project by IDread-onlyFetches 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 Terraform provider capabilities and supported featuresread-onlyGet 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: Temporar…
get_provider_detailsFetch detailed Terraform provider documentation using a document IDread-onlyFetches 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_commentsGet all comments for a given Terraform run.read-onlyLists 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_detailsGet detailed information about a Terraform runread-onlyFetches detailed information about a specific Terraform run.
get_sentinel_mockGet Sentinel mock data for a Terraform planread-onlyExports 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_detailsGet detailed information about a Terraform Stackread-onlyFetches detailed information about a Terraform Stack by its ID. If the stack ID isn't already known, call "list_stacks" first.
get_state_versionGets StateVersion with state_version_idread-onlyRetrieves 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_teamFetch full details for a single team by IDread-onlyFetches 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_permissionsGet permissions for current tokenread-onlyFetches the permissions the current token has for the specified terraform organization.
get_workspace_detailsGet detailed information about a Terraform workspaceread-onlyFetches detailed information about a specific Terraform workspace, including configuration, variables, and README content.
grant_team_accessGrant team access to a workspace or projectGrants 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_runsList Terraform runsread-onlyLists or searches Terraform runs in a workspace or organization with optional filtering.
list_stacksList Terraform workspaces with queriesread-onlyList 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 States Versionsread-onlyList all the state versions for a given Terraform workspace and organization.
list_teamsList teams in a Terraform Cloud organization.read-onlySearch 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_orgsList all Terraform organizationsread-onlyFetches a list of all Terraform organizations. Supports Pagination for large result sets.
list_terraform_projectsList all Terraform projectsread-onlySearch 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_variable_setsList variable sets in an organization. Returns all variable sets when query is empty.
list_workspace_policy_setsread-onlyRead all policy sets attached to a workspace. Returns both directly attached policy sets and global policy sets that apply to all workspaces.
list_workspace_variablesList all variables for a Terraform workspace, including variables inherited from attached variable sets. Sensitive variable values are not returned. Supports pagination for large result sets.
list_workspacesList Terraform workspaces with queriesread-onlySearch and list Terraform workspaces within a specified organization. Returns all workspaces when no filters are applied, or filters results based on name patterns, tags, or search queries. Supports pagination for large result sets. Returns a truncated summary of the workspace, use get_workspace_details to get the full details for a specific workspace.
read_workspace_tagsread-onlyRead all tags from a Terraform workspace.
search_modulesSearch and match Terraform modules based on name and relevanceread-onlyResolves 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, reat…
search_policiesSearch and match Terraform policies based on name and relevanceread-onlySearches 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 relev…
search_private_modulesSearch for private modules in Terraform Cloud/Enterpriseread-onlyThis 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_providersSearch for private providers in Terraform Cloud/Enterpriseread-onlyThis 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_docsIdentify the most relevant provider document ID for a Terraform serviceread-onlyThis 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 …
update_workspaceUpdate an existing Terraform workspaceUpdates an existing Terraform workspace configuration. To add or update workspace tags, use create_workspace_tags.
update_workspace_variableUpdates an existing variable in a Terraform workspace. Only the fields you provide are changed. Use list_workspace_variables to find the variable_id.
whoamiGet current Terraform identityread-onlyReturns the identity of the currently authenticated Terraform token. Use this to determine which user or service account the active token belongs to.
Compare and alternatives
Signals
- Stars
- 1,553
- Forks
- 200
- Open issues
- 11
- Contributors
- 33
- Last commit
- Oct 23, 2026 (4 days ago)
- Last release
- Oct 23, 2026 (4 days ago)
- Last package publish
- Oct 23, 2026 (4 days ago)
From GitHub (fetched Oct 24, 2026) and the package registry.
Details
- Registry name
io.github.hashicorp/terraform-mcp-server- Version
- 1.4.1
- Auth
- No auth
- Packages
- oci
docker.io/hashicorp/terraform-mcp-server:1.4.1 - License
- MPL-2.0
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
More from hashicorp
- 0.820score
terraform-policy
hashicorpOfficial
Write, test, or convert Terraform Policy files (.policy.hcl, .policytest.hcl, Sentinel→tfpolicy).
SkillAFreshness: A★ 907Claude Code +9 - 0.777score
provider-configuration
hashicorpOfficial
Implement Terraform provider configuration and authentication with the Plugin Framework: provider schema for credentials (Optional + Sensitive attributes)…
SkillBFreshness: B★ 907Claude Code +9 - 0.777score
provider-docs
hashicorpOfficial
Create, update, and review Terraform provider documentation for Terraform Registry using HashiCorp-recommended patterns, tfplugindocs templates, and schema…
SkillBFreshness: B★ 907Claude Code +9 - 0.777score
provider-framework-migration
hashicorpOfficial
Migrate Terraform provider resources and data sources from Plugin SDKv2 to the Plugin Framework: muxing both plugins in one provider (terraform-plugin-mux…
SkillBFreshness: B★ 907Claude Code +9 - 0.777score
terraform-search-import
hashicorpOfficial
Discover existing cloud resources using Terraform Search queries and bulk import them into Terraform management.
SkillBFreshness: B★ 907Claude Code +9 - 0.777score
terraform-stacks
hashicorpOfficial
Comprehensive guide for working with HashiCorp Terraform Stacks.
SkillBFreshness: B★ 907Claude Code +9
Cite this page
Terraform MCP server. Agent Mart. https://agentmart.dev/connectors/hashicorp-terraform-mcp-server (last updated 2026-10-24)