Terraform MCP Server
MCP tools for developers · Free
An official HashiCorp MCP for Terraform Registry and HCP Terraform APIs: provider/module search, documentation, and infrastructure context.
Also known as: hashicorp/terraform-mcp-server

What you can use for free
You can use the code under the stated license; servers, APIs, and compute must be provided separately.
Paid features and costs
MPL-2.0 applies to the MCP; Terraform/HCP, cloud resources, and the AI client have separate terms.
Access and limitations
You can use the code under the stated license; servers, APIs, and compute must be provided separately. MPL-2.0 applies to the MCP; Terraform/HCP, cloud resources, and the AI client have separate terms.
Use cases
- Request current provider/module documentation and compare it with the configuration.
- Prepare a Terraform plan and check the workspace, state, and impact on resources before apply.
Example workflow
A possible workflow; this is not a report of hands-on testing.
Official HashiCorp MCP for Terraform Registry and HCP Terraform APIs
Before you start
- An IaC project, provider versions, and HCP workspace if needed.
Steps
- Request current provider/module documentation and compare it with the configuration.
- Prepare a Terraform plan and check the workspace, state, and impact on resources before apply.
- Compare the result with the workflow's goal; after changing the project, run its standard checks.
Check your result
- The plan reflects the required changes; the workspace and provider version match.
- Check connection permissions and dependency terms; confirm external service costs if the workflow requires them.
Choosing Terraform MCP Server
Request current provider/module documentation and compare it with the configuration.
Choose this when
- Request current provider/module documentation and compare it with the configuration.
- Prepare a Terraform plan and check the workspace, state, and impact on resources before apply.
Requirements
- Determine whether only Registry or HCP workspace access is needed; prepare HCP settings for the latter.
Things to consider
- Costs and limits of free use: MPL-2.0 applies to the MCP; Terraform/HCP, cloud resources, and the AI client have separate terms.
- Terms of use: MPL-2.0 for Terraform MCP Server code; licenses for Terraform, HCP, and cloud products must be checked separately.
- Workspace management tools can create, change, and delete objects; the server cannot be considered universally read-only.
Frequently asked questions
What can you use for free in Terraform MCP Server?
You can use the code under the stated license; servers, APIs, and compute must be provided separately.
What additional costs might arise with Terraform MCP Server?
MPL-2.0 applies to the MCP; Terraform/HCP, cloud resources, and the AI client have separate terms.
What terms of use matter for Terraform MCP Server?
MPL-2.0 for Terraform MCP Server code; licenses for Terraform, HCP, and cloud products must be checked separately.
How do you get started with Terraform MCP Server?
Request current provider/module documentation and compare it with the configuration. Prepare a Terraform plan and check the workspace, state, and impact on resources before apply. Compare the result with the workflow's goal; after changing the project, run its standard checks.
Is an HCP Terraform token needed for every documentation search?
Terraform Registry search and HCP Terraform management are different server components. For HCP, configure TFE_TOKEN and, if necessary, TFE_ADDRESS; in HTTP mode, TFE_ADDRESS is set by the server environment rather than a client request.
License
MPL-2.0 for Terraform MCP Server code; licenses for Terraform, HCP, and cloud products must be checked separately.
MPL 2.0 — file-level copyleft
You can use the code in a commercial product and combine it with closed-source files. When distributing it, make the source code of MPL-covered files available, including your changes to those files, and retain notices. Independent new files can remain closed-source. Internal use alone does not require publishing the code.
License termsTechnologies and topics
- Terraform MCP Server
- hashicorp
- MCP