Terraform Registry
Enables AI assistants to search and retrieve information about Terraform providers and modules from the public Terraform registry, including detailed documentation, version information, and resource specifications.
What is Terraform Registry?
Terraform Registry is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enables ai assistants to search and retrieve information about terraform providers and modules from the public terraform registry, including detailed documentation, version information, and resource s...
Enables AI assistants to search and retrieve information about Terraform providers and modules from the public Terraform registry, including detailed documentation, version information, and resource specifications.
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Enables AI assistants to search and retrieve information abo
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx terraform-registry-mcp-serverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Terraform Registry
Terraform Registry MCP Server gives AI assistants direct, structured access to the public Terraform Registry, exposing 10 read-only tools for searching providers, retrieving resource documentation, inspecting module details, and listing data sources and functions. An additional 13 Terraform Cloud tools (activated with a TFC_TOKEN) enable live workspace management, run execution, and infrastructure state queries. Platform engineers and DevOps teams use it to let Claude look up accurate provider resource arguments and write correct Terraform configurations without having to paste docs into the conversation.
Prerequisites
- Node.js 18 or later
- An MCP-compatible client such as Claude Desktop, Claude Code, or Cursor
- A Terraform Cloud API token (TFC_TOKEN) only if you need the workspace management tools — the registry read tools work without authentication
Add the server to your MCP client configuration
No global installation is required. Add the server directly to your MCP client config using npx. It will be downloaded and started on demand.
{
"mcpServers": {
"terraform-registry": {
"command": "npx",
"args": ["-y", "terraform-mcp-server"]
}
}
}Add a Terraform Cloud token for workspace management (optional)
To unlock the 13 Terraform Cloud tools (list workspaces, create runs, apply, cancel, etc.), add your TFC_TOKEN to the server's environment block.
{
"mcpServers": {
"terraform-registry": {
"command": "npx",
"args": ["-y", "terraform-mcp-server"],
"env": {
"TFC_TOKEN": "your-terraform-cloud-token",
"DEFAULT_PROVIDER_NAMESPACE": "hashicorp"
}
}
}
}Restart your MCP client
Quit and relaunch Claude Desktop or reload your editor. The Terraform Registry server will start automatically and the registry tools will appear in the tool list.
Verify by searching for a provider
Ask your AI assistant to look up the AWS provider documentation. A successful response will return the provider namespace, version, and resource list from the live Terraform Registry API.
Configure optional rate limiting
For shared team environments or CI usage, enable rate limiting via environment variables to avoid hitting registry API limits.
RATE_LIMIT_ENABLED=true
RATE_LIMIT_REQUESTS=60
RATE_LIMIT_WINDOW_MS=60000Terraform Registry Examples
Client configuration (with Terraform Cloud)
Claude Desktop config for Terraform Registry MCP Server with both registry and Terraform Cloud access enabled.
{
"mcpServers": {
"terraform-registry": {
"command": "npx",
"args": ["-y", "terraform-mcp-server"],
"env": {
"TFC_TOKEN": "your-terraform-cloud-token",
"DEFAULT_PROVIDER_NAMESPACE": "hashicorp",
"LOG_LEVEL": "info",
"REQUEST_TIMEOUT_MS": "10000"
}
}
}
}Prompts to try
Example prompts that leverage the Terraform Registry and Terraform Cloud tools.
- "Show me the arguments for the aws_s3_bucket resource in the hashicorp/aws provider."
- "Find Terraform modules for deploying a Kubernetes cluster on GCP."
- "List all data sources available in the azurerm provider."
- "What version of the kubernetes provider supports the kubernetes_deployment resource?"
- "List all workspaces in my Terraform Cloud organization and show which ones are locked."Troubleshooting Terraform Registry
Terraform Cloud tools return 'TFC_TOKEN not set' or authorization errors
Add the TFC_TOKEN environment variable to the env block in your MCP client config. The token must have at least read access to the target organization. Generate tokens at app.terraform.io/app/settings/tokens.
Server crashes when using getPrompt
There is a known bug in getPrompt that causes crashes. Use listPrompts instead to browse available prompts, and avoid calling getPrompt directly until the issue is resolved upstream.
Registry API requests time out for large providers
Increase the REQUEST_TIMEOUT_MS environment variable (default 10000 ms). Large providers like hashicorp/aws have extensive documentation that may take longer to fetch. Setting it to 30000 (30 seconds) resolves most timeout issues.
Frequently Asked Questions about Terraform Registry
What is Terraform Registry?
Terraform Registry is a Model Context Protocol (MCP) server that enables ai assistants to search and retrieve information about terraform providers and modules from the public terraform registry, including detailed documentation, version information, and resource specifications. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Terraform Registry?
Follow the installation instructions on the Terraform Registry GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Terraform Registry?
Terraform Registry works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Terraform Registry free to use?
Yes, Terraform Registry is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.
Terraform Registry Alternatives — Similar Developer Tools Servers
Looking for alternatives to Terraform Registry? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Terraform Registry in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Terraform Registry?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.