hashicorp/terraform-mcp-server
The official Terraform MCP Server seamlessly integrates with the Terraform ecosystem, enabling provider discovery, module analysis, and direct Registry API integration for advanced Infrastructure as Code workflows.
Ads
Overview
The official Terraform MCP Server seamlessly integrates with the Terraform ecosystem, enabling provider discovery, module analysis, and direct Registry API integration for advanced Infrastructure as Code workflows.
Installation
claude mcp add terraform -s user -t stdio -- docker run -i --rm hashicorp/terraform-mcp-server
Configuration
{
"mcpServers": {
"terraform": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e", "TFE_ADDRESS=<<PASTE_TFE_ADDRESS_HERE>>",
"-e", "TFE_TOKEN=<<PASTE_TFE_TOKEN_HERE>>",
"hashicorp/terraform-mcp-server:1.3.0"
]
}
}Capabilities
- Search Terraform Registry
Ask to find providers or modules using `search_providers` and `get_provider_details` from the public registry.
- Manage HCP Terraform workspaces
Create, update, or delete workspaces and handle variables, tags, and runs via workspace operations.
- List organizations and projects
Retrieve organization and project listings from HCP Terraform or Terraform Enterprise.
- Access private registry content
Query private registry providers, modules, and policies with `registry-private` toolset.
- Filter available tools
Enable only needed capabilities using `--toolsets` or `--tools` flags like `list_workspaces`.
Tags
- devops-infrastructure
- cloud-infrastructure
- deployment
- development
- awesome-list
Related MCP servers
Metabase
OfficialOfficial Metabase MCP server for searching data, building queries on the semantic layer, and visualizing results through MCP clients.
AWS CloudTrail
OfficialThis AWS Labs Model Context Protocol (MCP) server for CloudTrail enables your AI agents to query AWS account activity for security investigations, compliance auditing, and operational troubleshooting.
AWS Bedrock KB Retrieval
OfficialQuery Amazon Bedrock Knowledge Bases using natural language to retrieve relevant information from your data sources.
AWS CDK
OfficialGet prescriptive CDK advice, explain CDK Nag rules, check suppressions, generate Bedrock Agent schemas, and discover AWS Solutions Constructs patterns.