terraform-mcp-server

terraform-mcp-server

4.6

terraform-mcp-server is hosted online, so all tools can be tested directly either in theTools tabor in theOnline Client.

If you are the rightful owner of terraform-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcpreview.com.

The Terraform MCP Server is a Model Context Protocol server that integrates with Terraform Registry APIs for advanced automation in Infrastructure as Code development.

getProviderDocs

Fetches up-to-date documentation for a specific service from a Terraform provider. You must call 'resolveProviderDocID' first to obtain the exact tfprovider-compatible providerDocID required to use this tool.

Try it

Exact tfprovider-compatible providerDocID, (e.g., '8894603', '8906901') retrieved from 'resolveProviderDocID'

      Result:

      moduleDetails

      Fetches up-to-date documentation on how to use a Terraform module. You must call 'searchModules' first to obtain the exact valid and compatible moduleID required to use this tool.

      Try it

      Exact valid and compatible moduleID retrieved from searchModules (e.g., 'squareops/terraform-kubernetes-mongodb/mongodb/2.1.1', 'GoogleCloudPlatform/vertex-ai/google/0.2.0')

          Result:

          resolveProviderDocID

          This tool retrieves a list of potential documents based on the serviceSlug and providerDataType provided. You MUST call this function before 'getProviderDocs' to obtain a valid tfprovider-compatible providerDocID. Use the most relevant single word as the search query for serviceSlug, if unsure about the serviceSlug, use the providerName for its value. When selecting the best match, consider: - Title similarity to the query - Category relevance Return the selected providerDocID and explain your choice. If there are multiple good matches, mention this but proceed with the most relevant one.

          Try it

          The type of the document to retrieve, for general information use 'guides', for deploying resources use 'resources', for reading pre-deployed resources use 'data-sources', for functions use 'functions', and for overview of the provider use 'overview'

            The name of the Terraform provider to perform the read or deployment operation

              The publisher of the Terraform provider, typically the name of the company, or their GitHub organization name that created the provider

                The version of the Terraform provider to retrieve in the format 'x.y.z', or 'latest' to get the latest version

                  The slug of the service you want to deploy or read using the Terraform provider, prefer using a single word, use underscores for multiple words and if unsure about the serviceSlug, use the providerName for its value

                      Result:

                      searchModules

                      Resolves a Terraform module name to obtain a compatible moduleID for the moduleDetails tool and returns a list of matching Terraform modules. You MUST call this function before 'moduleDetails' to obtain a valid and compatible moduleID. When selecting the best match, consider: - Name similarity to the query - Description relevance - Verification status (verified) - Download counts (popularity) Return the selected moduleID and explain your choice. If there are multiple good matches, mention this but proceed with the most relevant one. If no modules were found, reattempt the search with a new moduleName query.

                      Try it

                      Current offset for pagination

                        The query to search for Terraform modules.

                            Result: