Terraform MCP Server

Terraform MCP Server

DevOps
HashiCorp
claudecursorvscodecodexgeneric
FreeOpen Source

About

The official Terraform MCP server by HashiCorp. Lets AI agents seamlessly integrate with the Terraform ecosystem: manage state files, plan execution, and write Infrastructure as Code (IaC).

Our Verdict

Terraform MCP Server brings devops capabilities to the MCP ecosystem. Its GitHub popularity reflects community trust, and the standardized protocol ensures broad compatibility across AI clients.

Pricing

free
Free and open source

Use Cases

  • Integrating devops capabilities into AI agent workflows
  • Building custom AI-powered tools with Terraform MCP Server
  • Enhancing AI agent functionality with standardized MCP access

Pros

  • Terraform MCP Server provides standardized MCP protocol access
  • Open source with 1,492 GitHub stars
  • Active development and community support

Cons

  • Requires MCP-compatible client (Claude, Cursor, etc.)
  • Setup complexity varies by client
  • Some features may depend on client capabilities

Installation

docker run -i --rm hashicorp/terraform-mcp-server

Frequently Asked Questions

What can Terraform MCP do?

Lets AI agents directly write and execute Terraform configurations: manage state files, view and create execution plans, preview resource changes, and read Terraform configurations and outputs. Making infrastructure management smarter and more efficient.

Does Terraform MCP require Terraform to be installed?

Yes, you need Terraform CLI installed locally. The MCP server executes operations by calling the local terraform command, so you'll need Terraform installed and cloud provider credentials configured.

Is Terraform MCP free?

Completely free and open source (BUSL license), officially maintained by HashiCorp. The MCP server itself is free, but managing cloud resources with Terraform will incur charges from your cloud provider based on resource usage.