terraform-mcp-server

terraform-mcp-server

117

The Terraform Registry MCP Server is a tool for interacting with the Terraform Registry API, providing AI agents with functions to query Terraform provider and resource information effectively. It supports a variety of tools and prompts tailored for cloud infrastructure management and optimization.

What is the purpose of the Terraform Registry MCP Server?

The server facilitates interaction with the Terraform Registry API, allowing users to query and manage Terraform providers, resources, and modules.

How can I install the server in Cursor?

In Cursor, navigate to Settings > MCP tab, add a new MCP server with the command 'npx -y terraform-mcp-server', and enable it.

What are the core tools provided by this server?

Core tools include provider details, resource usage, module search, and more, enabling comprehensive access to Terraform data.

Can the server be configured with environment variables?

Yes, the server supports configuration via environment variables such as LOG_LEVEL, REQUEST_TIMEOUT_MS, and TFC_TOKEN.

What are the known issues with prompts?

There is a known issue with the 'getPrompt' functionality that may cause server crashes. It is recommended to use 'listPrompts' instead.