Install Terraform in Claude Code
claude mcp add terraform -- docker run -i --rm docker.io/hashicorp/terraform-mcp-server:1.4.1{
"mcpServers": {
"terraform": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/hashicorp/terraform-mcp-server:1.4.1"
]
}
}
}Frequently asked questions
What does the Terraform MCP server do?
Terraform ecosystem integration: provider discovery, module analysis and Terraform Registry API access for infrastructure-as-code workflows.
Is the Terraform MCP server free?
The server is free, but you will likely need an account. The server itself is free, but it connects to a service that needs an account or API key, which may have paid tiers. Check the provider for current pricing.
Does Terraform run locally or remotely?
Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.
How do I add Terraform to Claude Code?
Run: claude mcp add terraform -- docker run -i --rm docker.io/hashicorp/terraform-mcp-server:1.4.1
More cloud platforms MCP servers
View allCloudBase
TencentCloudBase/CloudBase-AI-ToolKit
Backend services for WeChat Mini Programs and full-stack apps: serverless cloud functions, databases and one-click deployment.
Kubernetes
Flux159/mcp-server-kubernetes
Kubernetes cluster operations for pods, deployments and services.
Kubectl
rohitg00/kubectl-mcp-server
Interact with Kubernetes clusters through natural language.
Azure DevOps
microsoft/azure-devops-mcp
The MCP server for Azure DevOps, bringing the power of Azure DevOps directly to your agents.
K8m
weibaohui/k8m
Multi-cluster Kubernetes management and operations with a management UI and logging, covering common DevOps tasks for standard and CRD resources.
Azure
microsoft/mcp
All Azure MCP tools to create a seamless connection between AI agents and Azure services.