Cloud and hosting - official HashiCorp (Terraform, Vault) server
Terraform MCP server
Self-hosted MCP server that gives agents current Terraform Registry provider, module, and Sentinel policy documentation, plus HCP Terraform and Terraform Enterprise workspace, run, variable, team, and private registry management when a TFE_TOKEN is supplied. It runs locally from docker.io/hashicorp/terraform-mcp-server (oci) with API key auth.
Last verified 15 tools6 sources
Install
Claude Code
About Claude Codeclaude mcp add terraform -s user -t stdio -- docker run -i --rm hashicorp/terraform-mcp-serverCodex
About Codexcodex mcp add terraform -- docker run -i --rm hashicorp/terraform-mcp-serverCursor
About Cursor{
"mcpServers": {
"terraform": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e", "TFE_ADDRESS=<<PASTE_TFE_ADDRESS_HERE>>",
"-e", "TFE_TOKEN=<<PASTE_TFE_TOKEN_HERE>>",
"hashicorp/terraform-mcp-server:1.3.0"
]
}
}
}VS Code
{
"mcp": {
"servers": {
"terraform": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e", "TFE_TOKEN=${input:tfe_token}",
"-e", "TFE_ADDRESS=${input:tfe_address}",
"hashicorp/terraform-mcp-server:1.3.0"
]
}
},
"inputs": [
{
"type": "promptString",
"id": "tfe_token",
"description": "Terraform API Token",
"password": true
},
{
"type": "promptString",
"id": "tfe_address",
"description": "Terraform Address",
"password": false
}
]
}
}Tools
search_providers- Find provider documentation by service name (renamed search_provider_docs in 1.3.1).
get_provider_details- Retrieve complete documentation for a specific provider component.
get_provider_capabilities- Discover all resource types a provider supports.
get_latest_provider_version- Retrieve the latest version of a provider.
search_modules- Find modules by name or functionality.
get_module_details- Get module inputs, outputs, examples, and submodules.
search_policies- Find Sentinel policies by topic or requirement.
get_policy_details- Retrieve detailed Sentinel policy documentation.
search_private_modules- Find private modules in your HCP Terraform or Terraform Enterprise organization.
list_terraform_orgs- Fetch all Terraform organizations the token can access.
list_workspaces- Search and list workspaces in an organization.
create_workspace- Create a new Terraform workspace.
create_run- Create a new Terraform run.
action_run- Apply, discard, or cancel runs (requires ENABLE_TF_OPERATIONS=true).
get_plan_json_output- Retrieve the structured JSON output of a Terraform plan.
As documented on October 17, 2026. A running server reports its current list through tools/list.
Notes and caveats
- Runs locally (Docker image or prebuilt binaries from releases.hashicorp.com); no vendor-hosted endpoint.
- Public registry tools need no auth; registry-private and terraform toolsets register only with a valid TFE_TOKEN (optional TFE_ADDRESS, default https://app.terraform.io).
- Destructive tools are disabled unless ENABLE_TF_OPERATIONS=true.
- Streamable HTTP mode via TRANSPORT_MODE=streamable-http (default port 8080, /mcp).
- Docs show no beta label on the 1.x line but give no explicit GA wording.
- Install snippets come from the official GitHub README.
More MCP servers for cloud and hosting
- HashiCorp (Terraform, Vault)
Consul MCP server
Self-hosted, read-oriented MCP server that lets agents query a Consul cluster: catalog services and nodes, health checks, KV store, ACLs, service mesh intentions and CA, peering, sessions, and operator status.
Transport: stdio, Streamable HTTPAuth: API key - HashiCorp (Terraform, Vault)Status: Beta
Vault MCP server
Self-hosted MCP server that lets agents manage Vault mounts, read and write KV secrets, and configure the PKI secrets engine (issuers, roles, certificate issuance) against a Vault server.
Transport: stdio, Streamable HTTPAuth: API key - HashiCorp (Terraform, Vault)Status: Beta
Vault Radar MCP server
Locally run MCP server that lets agents query an HCP Vault Radar project for data sources, resources, secret-leak events, and detected secret types.
Transport: stdioAuth: API key - AWS
Amazon EKS MCP server
Open source local MCP server from AWS Labs that gives agents EKS cluster and Kubernetes resource management, manifest generation and application, and troubleshooting tools.
Transport: stdioAuth: Other - AWS
AWS Infrastructure as Code MCP server
Open source local MCP server from AWS Labs for CloudFormation template validation and compliance checks, deployment troubleshooting, and CDK and CloudFormation documentation, samples and best practices.
Transport: stdioAuth: Other - AWSStatus: GA
AWS MCP server
AWS-managed remote MCP server, part of the Agent Toolkit for AWS, that lets agents look up AWS documentation and skills without credentials and run authenticated AWS API calls and Python scripts in a sandbox under IAM.
Transport: Streamable HTTPAuth: OAuth
Related reading
- What's New in Mastra (Late 2026): Harness, AgentController GA, Eval Gates and MCP 2.xMastra in late 2026: goals, schedules, signals, AgentController GA, eval gates and MCP 2.x, with type-checked TypeScript examples and honest tradeoffs.
- MCP vs A2A vs Function Calling: Which Layer Does What in 2026MCP vs A2A vs function calling compared on the 2026-07-28 MCP spec and A2A 1.0: what each protocol does, where they overlap, and how to stack them.
- Pydantic AI V2 in Late 2026: Capabilities, Graphs, Evals and MCPPydantic AI V2 explained through v2.57.0: capabilities, typed output, Conversation storage, caching, graphs, evals, MCP Apps and Logfire, with checked code.
- Reverse Engineer Anything (REA): What the MCP Server Does and Where the Line IsREA (Reverse Engineer Anything) is an MIT-licensed MCP server that lets Claude Code, Codex or Cursor inspect binaries, Electron apps and APKs. How to try it.
- Claude Opus 5.5 Built a Browser 3D World: The Higgsfield MCP WorkflowClaude Opus 5.5 and Higgsfield MCP built an interactive 3D Library of Alexandria in the browser. The verified connector setup and where the workflow holds up.
- Pi 1.0 Release Guide: MCP, Codemode and Pi DurablePi 1.0 adds built-in MCP through Codemode, a fullscreen TUI by default and Pi Durable. What changed, how to install it, and what breaks on upgrade.
FAQ
What does the Terraform MCP server do?
Self-hosted MCP server that gives agents current Terraform Registry provider, module, and Sentinel policy documentation, plus HCP Terraform and Terraform Enterprise workspace, run, variable, team, and private registry management when a TFE_TOKEN is supplied. The vendor documents 15 tools, including search_providers, get_provider_details, get_provider_capabilities and get_latest_provider_version.
How do I add the Terraform MCP server to Claude Code?
Run claude mcp add terraform -s user -t stdio -- docker run -i --rm hashicorp/terraform-mcp-server, copied from HashiCorp (Terraform, Vault)'s docs. This page also has snippets for Codex, Cursor and VS Code.
Does the Terraform MCP server need authentication?
Yes, API key. Transport: stdio, Streamable HTTP. Status: Unlabelled, last checked October 17, 2026.
Sources
Last verified against 6 HashiCorp (Terraform, Vault) pages, then re-checked independently.
- developer.hashicorp.comhttps://developer.hashicorp.com/terraform/mcp-server
- developer.hashicorp.comhttps://developer.hashicorp.com/terraform/mcp-server/reference
- raw.githubusercontent.comhttps://raw.githubusercontent.com/hashicorp/terraform-mcp-server/main/README.md
- raw.githubusercontent.comhttps://raw.githubusercontent.com/hashicorp/terraform-mcp-server/main/CHANGELOG.md
- raw.githubusercontent.comhttps://raw.githubusercontent.com/hashicorp/terraform-mcp-server/main/LICENSE
- api.releases.hashicorp.comhttps://api.releases.hashicorp.com/v1/releases/terraform-mcp-server?limit=3
Newsletter
New MCP servers, the week they ship
One email per week. New official MCP servers, the coding tools that support them and how developers wire them up.