Terraform MCP Server
HashiCorp Terraform MCP server for Infrastructure as Code workflows, including provider and module discovery through the Terraform Registry.
Connect
- Copy the MCP config below.
- In Cursor, open Settings → MCP and add a new global server, or create
.cursor/mcp.jsonin your project. - Paste the JSON, save, and refresh MCP connections.
- If the server needs extra setup, follow the GitHub readme.
MCP config
Paste into Cursor (.cursor/mcp.json) or Claude Desktop
{
"mcpServers": {
"terraform-mcp-server": {
"command": "npx",
"args": [
"-y",
"github:hashicorp/terraform-mcp-server"
]
}
}
}