Terraform for Cursor
io.github.hashicorp/terraform-mcp-server
Generate more accurate Terraform and automate workflows for HCP Terraform and Terraform Enterprise
client:Cursor
transport:stdio
runtime:oci
Install Terraform in Cursor
~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json
{
"mcpServers": {
"terraform-mcp-server": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/hashicorp/terraform-mcp-server:1.0.0"
]
}
}
}
Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs