Best MCP Servers for Terraform (2026)

The best MCP servers for Terraform — give AI agents provider documentation, module search, and plan/state context for infrastructure as code.

Top 10 · ranked by installs, upvotes, stars and views · refreshed hourly

  1. Terraform MCP Server logo

    #1 Terraform MCP Server

    hashicorpOfficial

    Why it’s hereMost popular in this category on AllMCPs

    The official Terraform MCP Server seamlessly integrates with the Terraform ecosystem, enabling provider discovery, module analysis, and direct Registry API integration for advanced Infrastructure as Code workflows.

    Upvotes: 0Installs: 0GitHub stars: 1.6k
    Install
  2. Tfmcp logo

    #2 Tfmcp

    nwiizo

    Why it’s hereCommunity pick

    A Terraform MCP server allowing AI assistants to manage and operate Terraform environments, enabling reading configurations, analyzing plans, applying configurations, and managing Terraform state.

    Upvotes: 0Installs: 0GitHub stars: 371
    Install
  3. Why it’s hereCommunity pick

    AI-native architecture platform for engineering teams. Describe a system in natural language (e.g. "payment service with Stripe, Kafka, PostgreSQL") → get an interactive typed diagram with 167 cloud components → export to 14 production frameworks (Java Spring Boot, Python FastAPI, Go chi, Rust Axum, .NET, Kotlin Ktor, Ruby Rails, Elixir Phoenix, Docker Compose, Terraform, Mermaid, ADR, and more). Drift detection (syncarchitecture) scores saved diagrams against live code 0–100 with a structured diff. 9 quality-lint rules catch orphans, SPOFs, god services. Also includes a secondary persistent code-graph layer for AI coding agents (free offline via npx tentra-mcp --local init). Agent-as-LLM pattern — zero LLM cost on our side, zero API key on yours. 35 MCP tools. Works in Cursor, Claude Code, Codex, Windsurf.

    Upvotes: 0Installs: 0GitHub stars: 6
    Install
  4. Why it’s hereCommunity pick

    Pre-execution risk gate for AI coding agents on infrastructure: gates Terraform, kubectl and AWS commands; also runs as a local stdio MCP server.

    Upvotes: 0Installs: 0GitHub stars: 4
    Install
  5. Why it’s hereCommunity pick

    Oracle Cloud discovery + Terraform generation for AI agents — read-only, secret-safe.

    Upvotes: 0Installs: 0GitHub stars: 1
    Install
  6. Cloud Audit logo

    #6 Cloud Audit

    gebalamariusz

    Why it’s hereCommunity pick

    Open-source AWS security scanner with attack chain detection, breach cost estimation, and copy-paste remediation (CLI + Terraform). 47 checks, 16 attack chain rules. First free standalone AWS security MCP server.

    Upvotes: 0Installs: 0GitHub stars: 74
    Install
  7. Why it’s hereCommunity pick

    Safety-first Terraform operations: plan/apply/destroy with two-step confirmation gates, plan risk & cost analysis that flags expensive always-on resources (NAT gateways, EKS, Azure Firewall), drift detection, import/taint/refresh, provider auth pre-flight checks, and audit logging.

    Upvotes: 0Installs: 0GitHub stars: 1
    Install
  8. Why it’s hereCommunity pick

    Natural-language cloud architecture intelligence for AWS, GCP, Azure, and Databricks. 19 tools for architecture design, cost estimation, compliance validation (HIPAA, SOC 2, FedRAMP, GDPR, PCI-DSS, Well-Architected), security scanning, Terraform/CloudFormation export, and blast-radius analysis.

    Upvotes: 0Installs: 0GitHub stars: 33
    Install
  9. Why it’s hereCommunity pick

    Visualise diagrams, generate Terraform HCL, and manage Azure/AWS/GCP infrastructure with AI.

    Upvotes: 0Installs: 0GitHub stars: —
    Install
  10. Why it’s hereCommunity pick

    Fail-closed policy guardrails for AI agents running kubectl, terraform, helm, and argocd.

    Upvotes: 0Installs: 0GitHub stars: 15
    Install

Which Terraform MCP server should you use?

The safest Terraform servers give the agent documentation and registry lookups so it writes correct HCL, while you keep running plan and apply yourself. Servers that run apply let an agent change real infrastructure, so gate them behind manual approval.

Frequently asked questions about Terraform MCP servers

What is the best Terraform MCP server?

This page ranks Terraform MCP servers by real usage across the AllMCPs directory. Registry and documentation servers are the most common and lowest-risk starting point.

Should an AI agent run terraform apply?

Only with manual approval. Let the agent write HCL and read plan output, and keep the apply step with a human or a CI pipeline that requires review.

Does a Terraform MCP server need cloud credentials?

Documentation and registry servers need none. Servers that run plan or read state need the same provider credentials Terraform itself uses.