Terraform MCP server data privacy: where tokens and data go

What the Terraform MCP server does with your HCP Terraform token and requests, which services it calls, and which deployment keeps traffic inside your own infrastructure.

On this page

Where the Terraform MCP server sends tokens and data

A team that wants AI agents to query HCP Terraform needs to know who processes the traffic before it connects anything. The remote Terraform MCP server is hosted by HashiCorp, at ` According to HashiCorp's security model, it reads the HCP Terraform token from the Authorization header, uses it only for that request, and does not store or log it. The remote server is still in beta, which HashiCorp's docs strongly discourage for production use, and it is limited to HCP Terraform organizations in the United States. Local and self-hosted deployments keep the server process, its configuration and the path to your HCP Terraform or Terraform Enterprise instance under your own control.

Choosing a deployment is therefore a decision about where the token and the request payloads travel. With the remote server, the connection uses TLS, the server connects to HCP Terraform and the Terraform registry over verified TLS, and HashiCorp controls the server configuration. Reviewers should confirm with HashiCorp whether the hosted service retains request metadata or tool outputs, since the documentation summarized here addresses the token and per-request handling. Also confirm that the token is sent in the Authorization header only, because the remote server rejects tokens passed in a query parameter and rejects attempts to point it at another Terraform address.

Data privacy does not stop at the MCP server. The security model places foundational model training data outside its threat model, so the AI client's own data terms decide what happens to the Terraform plans, state references and prompts that the client sees. Before approval, pull the client's retention and training terms from the vendor, confirm which client sends the requests, and record the deployment choice in the rollout decision. Teams that cannot accept a hosted beta endpoint or a US-only region should plan around a self-hosted server in their own environment.

Deployment options and data handling compared

This table compares the three ways to run the Terraform MCP server on who operates it, what must be installed, whether Terraform Enterprise works, and how tokens and traffic are handled. Read the remote column as the HashiCorp-hosted path, which is in beta and limited to US HCP Terraform organizations. Where the published documentation does not settle a point for local or self-hosted runs, the cell says to confirm it with HashiCorp before approval.

DeploymentLocalSelf-hostedRemote (HashiCorp hosted)
Who runs the serverYou run it on the machine where the client runsYou run it in an environment you manageHashiCorp runs and configures it
InstallationDocker, a binary or from sourceDocker, a binary or from sourceNone; the client connects to the hosted endpoint
Server configuration controlYoursYoursHashiCorp's
Terraform Enterprise supportYesYesNo
HCP Terraform supportSupportedSupportedSupported, US HCP Terraform organizations only
Where the token is handledConfirm with HashiCorp where the token is held and loggedConfirm with HashiCorp where the token is held and loggedRead from the Authorization header, used only for that request, not stored or logged
Outbound traffic pathConfirm with HashiCorp which calls leave your networkConfirm with HashiCorp which calls leave your networkAlways connects to HCP Terraform and the registry over verified TLS
Release statusConfirm the status for your version with HashiCorpConfirm the status for your version with HashiCorpBeta; HashiCorp strongly discourages beta use in production

How the remote server handles the HCP Terraform token

The remote Terraform MCP server reads your HCP Terraform token from the Authorization header of each request. According to HashiCorp's security model, the server uses that token only for the request in which it arrives and does not store or log it. Client connections to the server use TLS, and the server connects onward to HCP Terraform and the Terraform registry over verified TLS. For a reviewer, the practical question is whether your token policy and your client configuration both put the credential in that header and nowhere else, so confirm the exact header handling in your client before approving the connection.

The server runs in stateless mode and gives each request its own execution context, which HashiCorp describes as a way to keep data from leaking between requests. That design matters when several engineers share one remote endpoint, because one user's workspace data should not carry into another user's session. It does not remove the need for per-user tokens. Ask your platform team to confirm that each engineer or service uses a token scoped to the organization and permissions they need, and that revoking one token cuts off that user's access without affecting others.

The server also enforces limits on where a request can go. It rejects requests that pass the token in a query parameter, and it rejects requests that specify a Terraform address in a header or query parameter. It always connects to HCP Terraform, so a misconfigured client cannot point the server at another endpoint through a request. Treat these rejections as a control you can test: a short check that a token in the URL fails is a reasonable step during rollout. Also note that the remote server is limited to HCP Terraform organizations in the United States, and it does not support Terraform Enterprise, so confirm that your organization's tenant fits before you plan around it.

Request flow from AI client to HCP Terraform

The diagram starts at the AI client, which sends each request to the hosted remote server at mcp.terraform.io over TLS. The HCP Terraform token travels only in the Authorization header, and the remote server uses it for that request without storing or logging it. The server then connects outbound to HCP Terraform and the Terraform registry over verified TLS. A separate branch shows a local or self-hosted server inside your network, where you control the configuration. Check which branch your team uses, because the remote server is limited to US HCP Terraform organizations and does not support Terraform Enterprise.

Remote and self-hosted paths from the AI client to HCP Terraform and the registry.

Decisions to make before choosing a deployment

Each choice below decides where Terraform traffic travels, who holds the token, which HCP Terraform or Terraform Enterprise environments are reachable, and who can change the server's behavior. Settle these before any staff member connects an AI client, because several of them cannot be changed later without redeploying.

Remote or self-hosted traffic path

The remote server at mcp.terraform.io always connects to HCP Terraform, and HashiCorp hosts it. A local or self-hosted server runs in an environment you manage, so you decide where its requests leave your network. Confirm with your network team whether HCP Terraform calls from the AI client's machine are acceptable, or whether the traffic must stay inside your own infrastructure.

Deployment options

Token scope and owner

The remote server reads the HCP Terraform token from the Authorization header and uses it only for that request. Whoever owns the token sets the ceiling on what the agent can read and change. Decide whether a shared service identity or each engineer's own token is used, and confirm the token's permissions in HCP Terraform before issuing it.

Security model

Terraform Enterprise requirement

The remote server does not support Terraform Enterprise. If your workspaces run on Terraform Enterprise, the remote option is unavailable and you must use a local or self-hosted server that supports it. Confirm your platform with the platform team before comparing options, because this single fact can rule out the hosted server.

Deployment options

US-only organization limit

The remote server is limited to HCP Terraform organizations in the United States. Organizations outside that scope, or with EU-resident workspaces, cannot use it. Ask your legal and data residency owners to confirm which organizations and workspaces your program covers, and record the answer in the approval file.

Remote server setup

Who controls server configuration

On local and self-hosted servers your team controls the configuration, including the toolsets enabled. On the remote server HashiCorp controls configuration, so you cannot change its settings. Decide which group owns the server settings, who may approve changes to them, and how changes are tracked.

Server reference

Review of the AI client's data terms

The security model places foundational model training data outside its threat model. The data handling of the AI client that calls the server, such as its retention, training and region terms, must be reviewed separately. Assign a reviewer to read those terms for each approved client before rollout.

Security model

How the answer changes by deployment situation

If your organization uses HCP Terraform in the United States, the remote server is the simplest option because it needs no installation. HashiCorp hosts and controls it, and it is in beta, which HashiCorp's docs strongly discourage for production use. The token travels from the client to HashiCorp's endpoint in the Authorization header, and the server uses it only for that request without storing or logging it. See Connect to the remote Terraform MCP server for the connection rules.

  • Token handling: per HashiCorp's security model, the token is read from the Authorization header, used for that request only, and not stored or logged.
  • Request isolation: the server runs in stateless mode and handles each request in its own execution context.
  • Connection rules: requests that pass the token in a query parameter, or that name a Terraform address in a header or query parameter, are rejected, and the server always connects to HCP Terraform.
  • Scope limit: only HCP Terraform organizations in the United States are eligible, so confirm your organization's location before planning around this option.
  • Beta status: pilot with a limited group, and record the risk owner's decision to accept beta behavior in writing.

Confirm your organization's region, get the beta acceptance signed off, and review the AI client's own data terms separately, since the security model leaves foundational model training data outside its scope.

Order of work before approving the Terraform MCP server

This sequence confirms where the Terraform MCP server runs, whose token it uses, what the AI client does with prompts and code, and how traffic and logs are handled, so the approval decision rests on checks the reviewer has completed.

  1. Confirm the deployment model and region

    The platform owner decides between the local, self-hosted and remote deployment options before anything else, because that choice determines who controls server configuration and where requests travel. The remote server is hosted by HashiCorp, needs no installation, does not support Terraform Enterprise, and is limited to HCP Terraform organizations in the United States. If your organization uses Terraform Enterprise or operates outside that US scope, the remote option is ruled out and the review moves to a self-hosted deployment. Done means a written record names the deployment, the Terraform product, and the region the organization's HCP Terraform organization sits in.

  2. Assign the token and its owner

    The security reviewer and the Terraform platform owner agree which HCP Terraform token the server will use, who owns it, and which organization and permissions it carries. The remote server reads the token from the Authorization header, uses it only for that request, and does not store or log it, but the token still grants whatever access its owner holds. Confirm that the token is not passed in a query parameter and that no Terraform address is supplied in a header or query parameter, since the remote server rejects those requests. Done means the token has a named owner, a documented scope, and a rotation path recorded in your secrets process.

  3. Review the AI client's data terms

    The security model excludes foundation model training data from its threat model, so the AI client carries that risk on its own. The client's legal and procurement teams review its data retention, training use, subprocessors and whether its enterprise terms cover the staff plan in use, and they confirm where prompts, file contents and tool results are sent. Record each client separately, because Claude Code, Cursor, VS Code and Codex have different terms. Done means each approved client has a dated data terms review attached to the approval record.

  4. Verify TLS and header-only token handling

    The security engineer checks the network path between each workstation and the server and confirms that connections use TLS and that the server reaches HCP Terraform and the Terraform registry over verified TLS. For the remote server, confirm that the client sends the token only in the Authorization header and that no proxy, gateway or logging layer rewrites the URL or copies headers into a store. Use your own tooling for this, and record what you observed. Done means the reviewer has written evidence of the TLS endpoint, the certificate chain check, and the header path.

  5. Decide what logging is collected

    The platform team decides which request, tool call and error logs are collected, where they are stored, and who can read them, since the remote server does not store or log the token but the AI client and any intermediary may keep transcripts. Confirm that no logging layer you add captures the Authorization header, and that log retention matches your policy. For self-hosted servers, the organization controls server configuration and logging directly. Done means the logging decision is written down, names each log source, and has an owner who will review it.

  6. Document the beta status decision

    HashiCorp's docs describe the remote Terraform MCP server as beta and strongly discourage beta features in production. The approver records whether the remote server is allowed for production workspaces, limited to sandbox or non-production organizations, or excluded, and sets a review point to recheck the status against the current docs. If the decision allows production use, the record states the accepted risk and the named approver. Done means a signed decision exists that says which environments may use the remote server and when it will be reviewed again.

  7. Approve the scope and hand off to validation

    The approver combines the earlier records into one approval package covering deployment, token owner, client data terms, TLS and header checks, logging and beta status. The package also states the write rule HashiCorp recommends, that every write change is validated before it is applied, and names who performs that validation. Done means the package is filed, the approved clients and environments are listed, and the security review is ready for any follow-up testing of prompt injection or tool misuse.

Evidence a security reviewer asks for

This table lists the evidence a reviewer should hold before approving the Terraform MCP server, and where each item comes from. Read it as a checklist: the vendor documents explain how the remote server behaves, while the deployment choice, token handling and client data terms must be recorded by your own organization. The main takeaway is that the remote server's behavior is documented by HashiCorp, but your decision file has to tie that behavior to the deployment and client you actually approve.

Evidence itemWhat it showsWhere it comes from
Security model documentThreat categories HashiCorp covers, including prompt injection and tool poisoning, and its advice to validate before any writeHashiCorp Terraform MCP server security model
Deployment type chosenWhether the server runs locally, self-hosted, or as HashiCorp's remote server, and which Terraform products it reachesYour own configuration record, checked against HashiCorp's deployment docs
Token handling descriptionHow the HCP Terraform token is passed, used only per request, and not stored or logged on the remote serverHashiCorp security model; confirm the behavior of any local or self-hosted build in your own environment
TLS and registry connection factsConnections use TLS, and the server reaches HCP Terraform and the Terraform registry over verified TLSHashiCorp security model
Remote server request rulesToken must sit in the Authorization header, and custom Terraform addresses are rejectedHashiCorp remote server connection docs
AI client data termsHow the chosen client (for example Cursor, VS Code or Claude Code) handles prompts, tool results and retentionThe AI client vendor's own terms; HashiCorp states model training data is outside its threat model
Written decision on beta useWhether the remote server, which is in beta, is approved for production use and by whomYour organization's decision record; HashiCorp's docs strongly discourage beta features in production
Region and organization scopeThe remote server only serves HCP Terraform organizations in the United StatesHashiCorp remote server connection docs; confirm your tenant's location

Questions buyers ask before approving the Terraform MCP server

Does the remote Terraform MCP server store my HCP Terraform token?

No, according to HashiCorp's security model, the remote server reads the HCP Terraform token from the Authorization header, uses it only for that request, and does not store or log it. The server also runs in stateless mode and handles each request in its own execution context, which HashiCorp describes as a way to keep data from leaking between requests. Confirm this against the current security model before approval, and ask your security team to test token handling in a sandbox organization, since a documented behavior is still a vendor claim you should verify. The remote server is in beta, and HashiCorp's docs strongly discourage beta features in production, so treat the stored-token answer as a starting point for review rather than a production sign-off.

Does the Terraform MCP server send our data to AI model providers?

The server itself is only one hop in the chain, and the AI client you connect to it has its own data terms. HashiCorp's security model places foundational model training data outside its threat model, which means the AI client's data retention, training and processing terms must be reviewed separately. Map every tool in your chain: the MCP client, the model provider behind it, and the Terraform server. For each one, ask for written retention and training commitments, and check whether plan files, state output or variable values returned by tool calls are sent to the model. Those terms usually govern most of the data exposure, so procurement should not approve the server on its own.

Can we run the Terraform MCP server inside our own network?

Yes, the self-hosted option lets you run the server in an environment you manage, and HashiCorp's docs describe local, self-hosted and remote deployment. Local and self-hosted servers can be installed with Docker, a binary or from source. With these options, you control server configuration, while on the remote server HashiCorp controls it. The remote server is hosted at mcp.terraform.io and connects to HCP Terraform and the Terraform registry over verified TLS. It is limited to HCP Terraform organizations in the United States and always connects to HCP Terraform, so if your residency or network rules require traffic to stay inside your environment, the self-hosted path is the one to evaluate. Confirm the network egress each option needs with HashiCorp before you commit.

Is Terraform Enterprise covered by the remote Terraform MCP server?

No, the remote server does not support Terraform Enterprise. It is limited to HCP Terraform, and it always connects to HCP Terraform. Local and self-hosted servers support both HCP Terraform and Terraform Enterprise, through the terraform toolset. If your organization runs Terraform Enterprise, the remote server is not an option for that environment, and the self-hosted or local deployment is the path to evaluate. Confirm the current support matrix in the remote server documentation and the deployment guide before you write the requirement into your approval record.

Who pays for the Terraform MCP server review, and what drives the effort?

The server itself is published by HashiCorp in an MPL-2.0 licensed repository, so the software is not a license line item, but the review has costs. Your internal team spends time on token handling, client configuration, network egress, and reviewing the AI client's data terms. External help, if you use it, is paid for the work it covers. The effort rises when you run Terraform Enterprise, need self-hosted deployment, have several AI clients, or must document residency and retention for a regulator. It falls when you limit use to the remote server with a narrow set of approved clients. Ask any partner for a written scope that names the deployment option, the clients, the toolsets in use and the deliverables before you agree a quote.

Can our own security team complete the Terraform MCP server review?

Yes, most of the review can be done in-house if your team has Terraform and AI client expertise, and the vendor documents give a solid starting point. Work through the security model, the deployment and remote connection pages, and the reference for the three toolsets: registry, registry-private and terraform. Then test the setup yourself: confirm that tokens are not sent in query parameters, check which tools can write changes, and verify that writes go through review before they apply. Some teams bring in an outside firm for an independent test, and DeployOpen offers AI agent rollout security reviews that cover prompt injection, tool and file permissions, data exposure and credential handling, delivered as a findings report with fixes and a retest. Confirm scope in writing before any engagement starts.

Which Terraform MCP server data privacy terms should we get in writing?

Get written answers on four points before approval: how the HCP Terraform token is handled, whether requests or responses are logged or retained by the server, which services each deployment option calls, and the data terms of every AI client connected to it. The server documentation describes token handling, stateless operation and TLS, which are useful reference points, but they do not replace a contract. Ask HashiCorp which terms apply to the remote server during its beta period, and ask each client vendor for its retention and training commitments. Record the answers, the version of the documentation you relied on and the date you checked, so the approval can be re-verified when the beta changes.

Primary sources for each data privacy claim

Before approving the remote Terraform MCP server, a reviewer should check each data privacy claim against HashiCorp's own pages, starting with the security model for Terraform MCP server. That page is the main source for how the remote server handles the HCP Terraform token in the Authorization header, why it is used only for that request and not stored or logged, how requests run in stateless mode, and how TLS is applied to both client connections and the outbound link to HCP Terraform and the Terraform registry. It also states that foundational model training data and infrastructure deployment security sit outside its threat model. Record that exclusion in your review, because it means the AI client's own data terms must be assessed separately.

The connection rules belong to a second page, connect to the remote Terraform MCP server. Confirm that it still describes the same behavior: rejection of tokens passed in a query parameter, rejection of Terraform addresses supplied in headers or query parameters, the fixed connection to HCP Terraform, and the limit to HCP Terraform organizations in the United States. Because the remote server is listed as beta, and HashiCorp's docs discourage beta features in production, the reviewer should also note whether the endpoint and its terms match what the team intends to approve.

The deployment page explains the three options (local, self-hosted, and remote) and who controls server configuration in each. Use it to decide whether the traffic can stay inside your own infrastructure, which is the main reason to choose a self-hosted deployment. The GitHub repository is the place to confirm the published source, the MPL-2.0 license and the release you intend to run. Confirm current terms, retention statements and regional limits directly with HashiCorp before approval, and record the date and version you reviewed so that the evidence remains traceable.

How DeployOpen supports a Terraform MCP server data review

DeployOpen helps security, platform and procurement teams work out where Terraform MCP server tokens and requests go before anyone connects an AI agent. We scope the review against the deployment option you choose, build a self-hosted setup inside your own infrastructure where that fits your requirements, and hand over documented evidence your reviewers can check.

How we scope

  • Engagements are fixed-scope, with the deployment options, clients and data paths agreed in writing before work starts.
  • We confirm whether local, self-hosted or remote deployment applies, since the remote server is beta and limited to US HCP Terraform organizations.
  • The written scope names which tokens, toolsets and HCP Terraform or Terraform Enterprise targets are in the review.

How we build

  • We deploy self-hosted or local servers in your environment so you control server configuration and the network path.
  • We test token handling, including whether the token travels only in the Authorization header and never in a query parameter.
  • We check write-capable tools and confirm the plan-before-apply validation steps your team will follow.

How we hand over

  • You receive a written report covering each data flow, the services each server calls, and where tokens and requests are sent.
  • The evidence pack lists TLS settings, retention and logging findings, and the open questions to confirm with HashiCorp and your AI client vendor.
  • We walk your security and compliance reviewers through the findings and retest any fixes before close.

How we support

  • Ongoing support is available as a retainer for reviews of server version changes and new AI clients.
  • Retainers can include periodic retesting of token handling and tool permissions as the beta remote server changes.
  • Support covers questions from reviewers about data residency, client data terms and the security model's stated boundaries.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.