Terraform MCP Server
Connect AI agents to Terraform Registry documentation and HCP Terraform infrastructure management tools through MCP.
Description
Terraform MCP Server is HashiCorp's official MCP server for Infrastructure as Code workflows. It gives AI agents information about providers, modules and policies in the Terraform Registry. In addition to documentation lookup, it offers HCP Terraform and Terraform Enterprise tools for organizations, projects, workspaces, variables and runs. Available operations depend on deployment mode and permissions. For example, an agent can look up provider settings, inspect a module and prepare a Terraform configuration. With HCP Terraform credentials, an authorized MCP client can also perform permitted workspace operations. A local version is published in the official MPL-2.0-licensed repository; the hosted HCP Terraform endpoint is in beta and needs an account and API token. Infrastructure changes can incur cloud provider costs, so plans and permissions should be reviewed before applying them.