Terraform MCP
by HashiCorp
Official listing: built and published by HashiCorp. More from HashiCorp
Official HashiCorp MCP server connecting AI assistants to Terraform Registry APIs for live provider docs, module search, and HCP Terraform workspace management.
Use it now
Keep it with up to 9 other tools you're setting up, then share them all as one link.
Try this first
Ask your assistant, with Terraform MCP connected:
- Registry Provider Lookup
Use Terraform MCP to search Terraform Registry for providers, modules, and policies: ‹what you're looking for›
- Manage HCP Workspaces
Use Terraform MCP to create HCP Terraform or Terraform Enterprise workspaces: ‹what you need›
- Generate IaC Configs
Use Terraform MCP to produce accurate Terraform configurations grounded in live provider schema: ‹what you need›
Connect it over MCP
{
"mcpServers": {
"terraform-mcp": {
"url": "https://mcp.terraform.io/mcp"
}
}
}claude mcp add --transport http terraform-mcp https://mcp.terraform.io/mcp
docker run -i --rm hashicorp/terraform-mcp-server
In Grok, ChatGPT and other assistants, add a custom connector with the address https://mcp.terraform.io/mcp (how, step by step).
It may ask you to sign in to HashiCorp or for a key when you add it; the setup guide says which.
Setup guide: developer.hashicorp.com/terraform/mcp-server/deploy
Compare
Press Compare to add it to the tray at the bottom of the window, then pick up to 2 others anywhere on the site.
- Access
- MCP
- Auth
- API Key
- Skills
- 3
Skills
Registry Provider Lookup
Search Terraform Registry for providers, modules, and policies with real-time docs instead of stale training data.
Manage HCP Workspaces
Create, update, and delete HCP Terraform or Terraform Enterprise workspaces, set variables, tags, and trigger runs.
Generate IaC Configs
Produce accurate Terraform configurations grounded in live provider schema and version metadata from the Registry.