The Terraform MCP server exposes Terraform's IaC capabilities to AI agents. It provides tools to plan, apply, and destroy infrastructure, and connects to Terraform's backend APIs. Developers use it to automate infrastructure provisioning and management, and to integrate Terraform workflows into larger AI-driven systems.
The Terraform MCP server exposes Terraform's IaC capabilities to AI agents. It provides tools to plan, apply, and destroy infrastructure, and connects to Terraform's backend APIs. Developers use it to automate infrastructure provisioning and management, and to integrate Terraform workflows into larger AI-driven systems.
Add this configuration to your claude_desktop_config.json:
{
"mcpServers": {
"hashicorp-terraform-mcp-server-github": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-hashicorp-terraform-mcp-server-github"
]
}
}
}Restart Claude Desktop, then ask:
"What tools do you have available from terraform?"
API Key Required
This server requires an API key from terraform. Add it to your environment or config.
| Variable | Required | Description |
|---|---|---|
| TERRAFORM_API_KEY | Yes | Your terraform API key |
"What resources are available in terraform?"
Claude will query available resources and return a list of what you can access.
"Show me details about [specific item] in terraform"
Claude will fetch and display detailed information about the requested item.
"Create a new [item] in terraform with [details]"
Claude will use the appropriate tool to create the resource and confirm success.
We build custom MCP integrations for B2B companies. From simple connections to complex multi-tool setups.