● MaintainedCloud & DevOps
Terraform MCP Server
The Terraform MCP Server provides seamless integration with Terraform ecosystem, enabling advanced automation and interaction capabilities for Infrastructure as Code (IaC) development.
Install
docker run -i --rm -e TFE_TOKEN=${input:tfe_token} -e TFE_ADDRESS=${input:tfe_address} hashicorp/terraform-mcp-server:1.3.0Example config (Cursor / Claude Desktop)
{
"mcpServers": {
"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"
],
"env": {
"TFE_TOKEN": "<your-value>",
"TF_MCP_SHARED_SECRET": "<your-value>"
}
}
}
}VS Code uses "servers" instead of "mcpServers" (why). On Windows, wrap npx with cmd /c (fix).
At a glance
| Repository | hashicorp/terraform-mcp-server |
| GitHub stars | 1,551 |
| Last commit | 2026-10-15 (1 days ago) |
| Status | maintained |
| Clients mentioned in README | Claude Desktop, Claude Code, Cursor, VS Code, Codex |
| Auth | API key/token · TFE_TOKEN TF_MCP_SHARED_SECRET |
| Language / License | Go / MPL-2.0 |
| Official MCP registry | Listed ✓ |