Skip to content
Agentmart
Submit a tool

Terraform

Generate more accurate Terraform and automate workflows for HCP Terraform and Terraform Enterprise

Connector by hashicorpOfficial · GitHub account verified by the MCP Registry

IndexedMPL-2.0Local (stdio)★ 1,553
Write a review

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.

We use your email only for this newsletter. Privacy

About

Generate more accurate Terraform and automate workflows for HCP Terraform and Terraform Enterprise

Use cases: infrastructure-as-code, cloud-management

No 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_details
  • get_apply_logs
  • get_latest_module_version
  • get_latest_provider_version
  • get_module_details
  • get_plan_details
  • get_plan_json_output
  • get_plan_logs
  • get_policy_details
  • get_private_module_details
  • get_private_provider_details
  • get_project
Show 27 more tools
  • get_provider_capabilities
  • get_provider_details
  • get_run_comments
  • get_run_details
  • get_sentinel_mock
  • get_stack_details
  • get_state_version
  • get_team
  • get_token_permissions
  • get_workspace_details
  • list_runs
  • list_stacks
  • list_state_versions
  • list_teams
  • list_terraform_orgs
  • list_terraform_projects
  • list_variable_sets
  • list_workspace_policy_sets
  • list_workspace_variables
  • list_workspaces
  • read_workspace_tags
  • search_modules
  • search_policies
  • search_private_modules
  • search_private_providers
  • search_provider_docs
  • whoami

Write 15 · Create, change, send or run things.

  • add_team_member
  • attach_policy_set_to_workspaces
  • attach_variable_set_to_workspaces
  • create_project
  • create_run
  • create_team
  • create_variable_in_variable_set
  • create_variable_set
  • create_workspace
  • create_workspace_tags
  • create_workspace_variable
  • detach_variable_set_from_workspaces
Show 3 more tools
  • grant_team_access
  • update_workspace
  • update_workspace_variable

Delete 7 · Delete, drop, revoke or wipe things.

  • action_run
  • create_no_code_workspace
  • delete_project
  • delete_team
  • delete_variable_in_variable_set
  • delete_workspace_safely
  • force_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 data

    Applies, discards, or cancels a Terraform run.

  • add_team_memberAdd member to a Terraform team

    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_workspaces

    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_workspaces

    Attach a variable set to one or more workspaces.

  • create_no_code_workspaceCreate a No Code module workspacecan change or delete data

    Creates 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 project

    Creates a new Terraform project in the specified organization.

  • create_runCreate a new Terraform run

    Creates a new Terraform run in the specified workspace.

  • create_teamCreate a new team in a Terraform organization

    Creates a new team in a Terraform Cloud/Enterprise organization.

  • create_variable_in_variable_set

    Create a new variable in a variable set.

  • create_variable_set

    Create a new variable set in an organization.

  • create_workspaceCreate a new Terraform workspace

    Creates a new Terraform workspace in the specified organization.

  • create_workspace_tags

    Add tags to a Terraform workspace. If a tag with the same key already exists, its value is replaced with the new value.

  • create_workspace_variable

    Creates 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 data

    Deletes 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 data

    Permanently 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_set

    Delete a variable in a variable set.

  • delete_workspace_safelySafely delete a Terraform workspace by IDcan change or delete data

    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_workspaces

    Detach a variable set from one or more workspaces.

  • force_unlock_workspaceForce unlock a Terraform workspace by IDcan change or delete data

    Force 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-only

    Fetches detailed information about a specific Terraform apply.

  • get_apply_logsGet logs for a Terraform applyread-only

    Retrieves the logs of a specific Terraform apply.

  • get_latest_module_versionGet Latest Module Versionread-only

    Fetches the latest version of a Terraform module from the public registry

  • get_latest_provider_versionGet Latest Provider Versionread-only

    Fetches the latest version of a Terraform provider from the public registry

  • get_module_detailsRetrieve documentation for a specific Terraform moduleread-only

    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_detailsGet detailed information about a Terraform planread-only

    Fetches detailed information about a specific Terraform plan.

  • get_plan_json_outputGet JSON output for a Terraform planread-only

    Retrieves 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-only

    Retrieves the logs of a specific Terraform plan.

  • get_policy_detailsFetch detailed Terraform policy documentation using a terraform_policy_idread-only

    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_private_module_detailsGet detailed information about a private moduleread-only

    This 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-only

    This 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-only

    Fetches 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-only

    Get 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-only

    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.

  • get_run_commentsGet all comments for a given Terraform run.read-only

    Lists 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-only

    Fetches detailed information about a specific Terraform run.

  • get_sentinel_mockGet Sentinel mock data for a Terraform planread-only

    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_detailsGet detailed information about a Terraform Stackread-only

    Fetches 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-only

    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_teamFetch full details for a single team by IDread-only

    Fetches 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-only

    Fetches the permissions the current token has for the specified terraform organization.

  • get_workspace_detailsGet detailed information about a Terraform workspaceread-only

    Fetches detailed information about a specific Terraform workspace, including configuration, variables, and README content.

  • grant_team_accessGrant team access to a workspace or project

    Grants 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-only

    Lists or searches Terraform runs in a workspace or organization with optional filtering.

  • list_stacksList Terraform workspaces with queriesread-only

    List 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-only

    List all the state versions for a given Terraform workspace and organization.

  • list_teamsList teams in a Terraform Cloud organization.read-only

    Search 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-only

    Fetches a list of all Terraform organizations. Supports Pagination for large result sets.

  • list_terraform_projectsList all Terraform projectsread-only

    Search 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_sets

    List variable sets in an organization. Returns all variable sets when query is empty.

  • list_workspace_policy_setsread-only

    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_variables

    List 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-only

    Search 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-only

    Read all tags from a Terraform workspace.

  • search_modulesSearch and match Terraform modules based on name and relevanceread-only

    Resolves 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-only

    Searches 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-only

    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_providersSearch for private providers in Terraform Cloud/Enterpriseread-only

    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_docsIdentify the most relevant provider document ID for a Terraform serviceread-only

    This 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 workspace

    Updates an existing Terraform workspace configuration. To add or update workspace tags, use create_workspace_tags.

  • update_workspace_variable

    Updates 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-only

    Returns 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

Cite this page

Terraform MCP server. Agent Mart. https://agentmart.dev/connectors/hashicorp-terraform-mcp-server (last updated 2026-10-24)