Set up Terraform
Looks up providers and modules in the Terraform Registry and, given a token, manages HCP Terraform workspaces.
- Publisher
- HashiCorp Official
- Run locally
docker run -i --rm -e TFE_TOKEN hashicorp/terraform-mcp-server:1.3.0- Transports
- stdio, streamable-http
- Authentication
- None for registry lookups; an HCP Terraform or Terraform Enterprise token for workspaces.
- Environment
TFE_TOKENTFE_ADDRESS- What it can touch
- Read-only without a token; read and write with TFE_TOKEN.
- Licence
- MPL-2.0
- Source
- github.com/hashicorp/terraform-mcp-server
- Status
- Active
Install
This server runs on your machine as a child process of the client. You need the runtime its command uses, such as Node.js for npx, uv for uvx or Docker, plus any variables listed under Environment.
Claude Code
claude mcp add --scope project terraform -- docker run -i --rm -e TFE_TOKEN hashicorp/terraform-mcp-server:1.3.0
Cursor
{
"mcpServers": {
"terraform": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"TFE_TOKEN",
"hashicorp/terraform-mcp-server:1.3.0"
]
}
}
}
Codex
[mcp_servers.terraform]
command = "docker"
args = ["run", "-i", "--rm", "-e", "TFE_TOKEN", "hashicorp/terraform-mcp-server:1.3.0"]
Other servers in cloud
Cloudflare
One endpoint for the whole Cloudflare API; separate servers cover docs, bindings, observability and browser.
AWS API
Runs validated AWS CLI commands so an agent can inspect and change your AWS resources.
Azure
Query and manage Azure resources such as Storage, Cosmos DB, Key Vault and Monitor. Version 2.0 is GA.
Firebase
The Firebase CLI as an MCP server: manage projects, Auth users, Firestore, Remote Config, security rules and more.
Vercel
Search Vercel docs and inspect projects, deployments and build logs. In Beta, and already supports spec 2026-07-28.
Netlify
Create, deploy and configure Netlify sites, environment variables and extensions from an agent.