Terraform MCP Server

https://news.ycombinator.com/rss Hits: 6
Summary

Terraform MCP Server The Terraform MCP Server is a Model Context Protocol (MCP) server that provides seamless integration with Terraform Registry APIs, enabling advanced automation and interaction capabilities for Infrastructure as Code (IaC) development. Use Cases Automating Terraform provider and module discovery Extracting and analyzing data from Terraform Registry Getting detailed information about provider resources and data sources Exploring and understanding Terraform modules Caution: The outputs and recommendations provided by the MCP server are generated dynamically and may vary based on the query, model, and the connected MCP server. Users should thoroughly review all outputs/recommendations to ensure they align with their organization's security best practices, cost-efficiency goals, and compliance requirements before implementation. Prerequisites To run the server in a container, you will need to have Docker installed. Once Docker is installed, you will need to ensure Docker is running. Installation Usage with VS Code Add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing Ctrl + Shift + P and typing Preferences: Open User Settings (JSON) . More about using MCP server tools in VS Code's agent mode documentation. { "mcp" : { "servers" : { "terraform" : { "command" : " docker " , "args" : [ " run " , " -i " , " --rm " , " hashicorp/terraform-mcp-server " ] } } } } Optionally, you can add a similar example (i.e. without the mcp key) to a file called .vscode/mcp.json in your workspace. This will allow you to share the configuration with others. { "servers" : { "terraform" : { "command" : " docker " , "args" : [ " run " , " -i " , " --rm " , " hashicorp/terraform-mcp-server " ] } } } More about using MCP server tools in Claude Desktop user documentation. Usage with Claude Desktop { "mcpServers" : { "terraform" : { "command" : " docker " , "args" : [ " run " , " -i " , " --rm " , " hashicorp/terraform-mcp-server "...

First seen: 2025-05-20 00:57

Last seen: 2025-05-20 05:57