Best Terraform & IaC MCP servers

Look up providers and modules, plan changes and work with infrastructure-as-code from your assistant. We compared 8 Terraform & IaC MCP servers — 8 updated in the last 90 days, 3 with one-click install — ranked by relevance and GitHub stars.

Official: terraform-mcp-server by hashicorp

Quick comparison

Top 8 by relevance. Status: maintained = commit in the last 90 days.

ServerStarsStatusUpdatedInstallAPI key
terraform-mcp-serverhashicorp★ 1.5kMaintainedtodayCommandLikely
terravisionpatrickchugh★ 1.7kMaintained7 days agoCommandLikely
stackqlstackql★ 1.1kMaintainedyesterdayOne-clickNot mentioned
mcp-gateway-registryagentic-community★ 978MaintainedtodaySee READMENot mentioned
mcp-gatewaymicrosoft★ 875Maintained11 days agoOne-clickLikely
formaeplatform-engineering-labs★ 775Maintained5 days agoSee READMENot mentioned
speakeasyspeakeasy-api★ 452Maintained2 days agoOne-clickNot mentioned
tfmcpnwiizo★ 373Maintained5 days agoCommandLikely

All 8 Terraform & IaC MCP servers

Showing all 8 servers

terraform-mcp-server

by hashicorp · Go

The Terraform MCP Server provides seamless integration with Terraform ecosystem, enabling advanced automation and interaction capabilities for Infrastructure as Code (IaC) development.

Cloud & DevOpsMaintainedRemote1.5k

terravision

by patrickchugh · Python

Cloud architecture diagrams in both directions: AI prompt or JSON to diagram, diagram to Terraform via MCP server, and Terraform to diagram via CLI or CI/CD. Using Official AWS, Azure and GCP icons.

Cloud & DevOpsMaintained1.7k

stackql

by stackql · Go

Query, provision and operate Cloud, SaaS, API and Model Context Protocol (MCP) resources through a unified SQL-based framework for humans and AI agents.

Cloud & DevOpsMaintained1.1k

mcp-gateway-registry

by agentic-community · Python

Enterprise-ready MCP Gateway & Registry that centralizes AI development tools with secure OAuth authentication, dynamic tool discovery, and unified access for both autonomous AI agents and AI coding assistants. Transform scattered MCP server chaos into governed, auditable tool access with Keycloak/Entra integration.

Gateways, Hubs & ManagersMaintainedRemote978

mcp-gateway

by microsoft · C#

MCP Gateway is a reverse proxy and management layer for MCP servers, enabling scalable, session-aware stateful routing and lifecycle management of MCP servers in Kubernetes environments.

Gateways, Hubs & ManagersMaintainedRemote875

formae

by platform-engineering-labs · Go

Open-source Infrastructure As Code that starts from what already runs. formae discovers your estate, versions drift and hands back current code. A Terraform and Pulumi alternative built on Pkl, with an MCP server for AI agents.

Cloud & DevOpsMaintained775

speakeasy

by speakeasy-api · JavaScript

Build APIs your users love ❤️ with Speakeasy. ✨ Polished and type-safe SDKs. 🌐 Terraform providers, MCP servers, CLIs and Contract Tests for your API. OpenAPI native.

Cloud & DevOpsMaintained452

tfmcp

by nwiizo · Rust

🌍 Terraform Model Context Protocol (MCP) Tool - An experimental CLI tool that enables AI assistants to manage and operate Terraform environments. Supports reading Terraform configurations, analyzing plans, applying configurations, and managing state with Claude Desktop integration. ⚡️

Cloud & DevOpsMaintainedRemote373

Terraform & IaC MCP server FAQ

What is the best Terraform & IaC MCP server?

Based on GitHub stars and recent activity, terraform-mcp-server by hashicorp (★ 1.5k, updated today) is the most popular actively maintained option on HookMCP, followed by terravision and stackql. The right choice depends on whether you need write access, a hosted (remote) endpoint, or a server that runs locally without an API key.

Is there an official Terraform & IaC MCP server?

Yes — terraform-mcp-server by hashicorp is published by the vendor or the MCP project. Official servers are usually the safest first install.

How do I install a Terraform & IaC MCP server in Claude, Cursor or VS Code?

Open the server's page on HookMCP, choose your client tab (Claude Desktop, Cursor, VS Code or Claude Code) and copy the config — 3 of the 8 servers here have one-click install links for Cursor and VS Code. Restart your AI app and the new tools appear automatically.

Do Terraform & IaC MCP servers need an API key?

4 of 8 servers here mention API keys or tokens in their README; 4 don't mention any. Check each listing's Details panel, and pass keys as environment variables rather than pasting them into chat.

Related integrations

Or browse by category: Gateways, Hubs & Managers, Cloud & DevOps.