mcp-server-hcp-terraform logo

mcp-server-hcp-terraform

by dulltz

This MCP server integrates with the HCP Terraform Cloud/Enterprise API, allowing you to search for Terraform modules and retrieve module information. It enables interaction with HCP Terraform through MCP.

View on GitHub

Last updated: N/A

What is mcp-server-hcp-terraform?

This is an MCP server designed to interact with the HashiCorp Terraform Cloud/Enterprise API. It provides tools for searching and retrieving information about Terraform modules within your HCP organization.

How to use mcp-server-hcp-terraform?

To use this server, you need Python 3.13+, an HCP Terraform Cloud/Enterprise account, and an access token. Set the required environment variables (HCP_TERRAFORM_TOKEN, HCP_TERRAFORM_ORG) and optionally HCP_TERRAFORM_BASE_URL. Then, configure your MCP client to run the server.py script using the provided example configuration.

Key features of mcp-server-hcp-terraform

  • Search Private Modules

  • Get Module Details

  • Integration with HCP Terraform API

  • Module Discovery

  • Private Registry Support

Use cases of mcp-server-hcp-terraform

  • Automating Terraform module discovery

  • Integrating Terraform module information into workflows

  • Searching for modules based on provider and query

  • Retrieving detailed information about specific modules

  • Managing Terraform modules in a private registry

FAQ from mcp-server-hcp-terraform

What is the required Python version?

Python 3.13 or higher is required.

What environment variables do I need to set?

You need to set HCP_TERRAFORM_TOKEN and HCP_TERRAFORM_ORG. HCP_TERRAFORM_BASE_URL is optional.

How do I search for modules?

Use the hcp_terraform_search_private_modules tool with a query and optional provider and limit parameters.

How do I get details for a specific module?

Use the hcp_terraform_get_module tool with the module name, provider, and optional registry_name and namespace parameters.

What is the default registry name?

The default registry name is private.