infrastructure
OpenTofu MCP servers and skills
There are 90 ways to connect OpenTofu to Claude, ChatGPT, Cursor and other AI assistants: 5 MCP servers and 61 skills. The most used is MCP Wizard (12 GitHub stars).
Best OpenTofu MCP servers, compared →Most used
Guides Terraform and OpenTofu work on modules, remote state, plan and apply workflows, and policy as code. Aimed at engineers who manage infrastructure as code for teams or enterprise environments.
Guides a move from HashiCorp Terraform to the open-source OpenTofu fork. It covers state compatibility, provider registry setup and CI/CD pipeline updates for teams adopting OpenTofu.
Runs a Terraform and OpenTofu validation suite on changes to the kube-hetzner module. It also runs a plan against an existing test cluster root. Built for maintainers who check module changes before release.
Connects AI coding agents to the StackGuardian platform so they can deploy Terraform, OpenTofu and Ansible code. One command installs the MCP server and skills for Claude Code, Cursor, Codex, VS Code and more. Aimed at teams that run infrastructure through StackGuardian.
Terraform skill guides AI coding agents through writing, reviewing, and debugging Terraform and OpenTofu modules, tests, CI, scans, and state operations. It is for developers and teams who manage infrastructure as code.
Terraform & OpenTofu Skill is a best-practices skill for AI coding agents. It covers testing, module design, remote state, CI/CD and security scanning for teams writing infrastructure code.
MCP servers (5)
- 1MCP Wizard StackGuardian · Cloud and DevOpsConnects AI coding agents to the StackGuardian platform so they can deploy Terraform, OpenTofu and Ansible code. One command installs the MCP server and skills for Claude Code, Cursor, Codex, VS Code and more. Aimed at teams that run infrastructure through StackGuardian.80
- 2Opentofu MCP Server opentofu · Search and webGives AI assistants access to the OpenTofu Registry. It lets them search providers, modules, resources and data sources, and read their details and documentation. Built for developers who work with OpenTofu.65
- 3Stackguardian MCP StackGuardian · Cloud and DevOpsConnects AI coding agents to StackGuardian to deploy Terraform, OpenTofu and Ansible. Adds MCP tools and ready-to-use skills for workflows, approvals, policies and troubleshooting. Built for teams that run infrastructure deployments with these tools.64
- 4Zombie hunter tastenkasperle · SecurityFinOps-powered Cloud Governance & Shadow-IT Detection engine for Terraform & OpenTofu. Discovers orphaned cloud zombies, calculates monthly burn ($/mo), and provides Model Context Protocol (MCP) tools for autonomous DevOps agents.39
- 5OpenTofu Test ogormans-deptstack · Cloud and DevOpsMCP server for the OpenTofu/Terraform native test framework: scaffold, mock, validate, run tests27
Skills (61)
- 1terraform-specialist sickn33 · Cloud and DevOpsGuides Terraform and OpenTofu work on modules, remote state, plan and apply workflows, and policy as code. Aimed at engineers who manage infrastructure as code for teams or enterprise environments.91
- 2opentofu-migration sickn33 · Cloud and DevOpsGuides a move from HashiCorp Terraform to the open-source OpenTofu fork. It covers state compatibility, provider registry setup and CI/CD pipeline updates for teams adopting OpenTofu.89
- 3test-changes mysticaltech · Cloud and DevOpsRuns a Terraform and OpenTofu validation suite on changes to the kube-hetzner module. It also runs a plan against an existing test cluster root. Built for maintainers who check module changes before release.81
- 4tfaction suzuki-shunsuke · Cloud and DevOpsGuides an assistant through tfaction, a GitHub Action for running Terraform or OpenTofu on GitHub Actions. It is for teams that want terraform plan on pull requests and terraform apply on merge.77
- 5terraform-best-practices terramate-io · Cloud and DevOpsGives an AI assistant Terraform and OpenTofu best practice guidelines for writing, reviewing, and refactoring infrastructure code. Published by Terramate for teams working on modules, state, and IaC optimization.72
- 6tirith-policies StackGuardian · Cloud and DevOpsWrites, validates, runs and debugs Tirith IaC governance policies, and adds Tirith to CI pipelines. It is for engineers who gate Terraform or OpenTofu changes before apply. Tirith checks the plan a pipeline produces against JSON policies.72
- 7tirith-standards StackGuardian · Cloud and DevOpsGenerates a Tirith policy set for an existing Terraform or OpenTofu repository. It covers standards such as required tags, naming, allowed regions and encryption defaults, for teams adding guardrails or codifying conventions.72
- 8terraform-specialist henryalouf · Cloud and DevOpsterraform-specialist guides an AI assistant as a Terraform and OpenTofu specialist. It covers modules, remote state, plan and apply workflows, and policy as code. It is for engineers who manage infrastructure as code.71
- 9pack-opentofu-spacelift ChiefGyk3D · SecurityRules for OpenTofu run through Spacelift: plan before apply, name the blast radius and rollback, one explicit stanza per stack, never apply to a live system without the maintainer, the Spacelift MCP session is read-only (mcp:read) and write (mcp:write, the mutate and intent tools) needs a named task, state and drift handling, measured run, policy and secret gotchas. Load for OpenTofu or Terraform code, Spacelift stacks, runs, policies or MCP sessions. Not for provider design, Twingate or Doppler setup, or a security audit.71
- 10terraform-basics projectious-work · Cloud and DevOpsGives an AI assistant Terraform and OpenTofu guidance for writing .tf files, managing state and backends, using modules, and running plan and apply safely. Aimed at engineers working on infrastructure-as-code.64
- 11terraform-iac-expert curiositech · Cloud and DevOpsTerraform IaC Expert guides infrastructure as code work with Terraform and OpenTofu. It covers module design, remote state, multi-environment setups, secrets management, and CI/CD integration. It is for engineers who manage cloud infrastructure with these tools.64
- 12terraform magnus919 · Cloud and DevOpsOperates Terraform and OpenTofu across module structure, state backends, plan and apply, drift detection, and diagnostics. Built for operators and agents who run or inspect plans, applies, state files, and imports.64
- 13opentofu-modules ionfury · Cloud and DevOpsWrite OpenTofu modules and tests for homelab infrastructure (infrastructure/modules/). Use when: creating new modules, writing or modifying .tftest.hcl test files, adding variables/outputs/resources, debugging test failures, or questions about tftest syntax. Triggers: "opentofu module", "terraform module", "tofu module", "create module", ".tftest.hcl", "tftest", "test my module", "module test", "infrastructure test", "variables.tf", "outputs.tf", "module testing", "assertion", "task tg:test", "test-config"63
- 14opentofu-migration BagelHole · Cloud and DevOpsMigrates infrastructure-as-code projects from HashiCorp Terraform to the open-source OpenTofu fork. Covers state compatibility, provider registry setup, and CI/CD pipeline updates for teams adopting OpenTofu.60
- 15terragrunt-skill jfr992 · Cloud and DevOpsGuides an AI assistant through Terragrunt work with OpenTofu or Terraform, from catalogs and explicit stacks to remote state, multi-account setups and CI/CD. It is for engineers who build or maintain Terragrunt infrastructure code.59
- 16terraform iliaal · Cloud and DevOpsTerraform skill that guides an AI assistant through Terraform and OpenTofu work, covering modules, native tests, state management and HCL review. It is aimed at engineers who write, test or review infrastructure as code.58
- 17terraform-specialist nvdung250405 · Cloud and DevOpsGuides an AI assistant through provisioning cloud infrastructure with Terraform or OpenTofu. Covers modules, remote state, and policy as code for teams that manage infrastructure as code.58
- 18developing-components cloudposse · Cloud and DevOpsGuides an AI assistant through creating or changing Terraform and OpenTofu components. It is written for Cloud Posse reference architecture projects and covers required files, catalog defaults, stack configuration and naming.56
- 19terraform-modules sawrus · Cloud and DevOpsGuides an AI assistant through creating or changing a Terraform or OpenTofu module. It covers inputs, outputs, provider pins, checks, and moved blocks that avoid resource recreation.55
- 20terraform-review NotHarshhaa · Cloud and DevOpsReviews Terraform or OpenTofu code and infrastructure design as a senior IaC engineer. It produces a prioritized findings table and remediation plans for teams that manage cloud infrastructure with Terraform.54
- 21opentofu-migration ibrdot · Cloud and DevOpsGuides a move from Terraform to the open-source OpenTofu fork, covering state compatibility, provider registry setup and CI/CD pipeline updates. Written for teams adopting OpenTofu for licensing reasons or evaluating it.54
- 22first-plan-lens-terraform vynazevedo · Cloud and DevOpsAdds a Terraform and infrastructure-as-code lens to the first-plan Discovery phase. It covers module layout, state backends, environments, providers, and naming and tagging. Intended for projects that contain Terraform, OpenTofu, or similar IaC files.50
- 23glab-opentofu vince-winkintel · Cloud and DevOpsManages OpenTofu and Terraform state stored in the GitLab-managed state backend. It is built for engineers and agents working with infrastructure as code in GitLab repositories.49
- 24terragrunt TerminalSkills · Cloud and DevOpsTeaches an assistant to use Terragrunt to keep Terraform or OpenTofu configurations DRY, manage remote state, and run many modules in dependency order. Aimed at platform teams managing multiple environments and AWS accounts.49
- 25opentofu TerminalSkills · Cloud and DevOpsOpenTofu is the open-source (MPL-2.0, Linux Foundation) fork of Terraform: it provisions cloud infrastructure from HCL files with the `tofu` command and reads existing Terraform configurations, providers and state. Use when someone asks to "set up OpenTofu", "migrate from Terraform to OpenTofu", "encrypt Terraform state", "write a tofu module", "add tests to my infrastructure code", or "store state in S3 with locking".49
- 26opentofu-reviewer domehahn · Developer toolsReview OpenTofu modules, providers, plans, state, drift, lifecycle, tests, and safe apply or destroy boundaries.42
- 27cncf-opentofu-reviewer domehahn · Cloud and DevOpsReview OpenTofu using its official documentation and repository in the Provisioning / Automation & Configuration category. OpenTofu is an open source infrastructure as code tool that enables users to safely and predictably provision and manage cloud and on-prem infrastructure. It's a community-driven fork of Terraform that maintains backward compatibility while offering enhanced features, stability.42
- 28devops-iac enowdev · Cloud and DevOpsGuides an assistant through infrastructure as code with Terraform or OpenTofu. It covers remote state, modules, CI plans with approval, drift, imports and secrets. Built for engineers who write or change infrastructure code.42
- 29OpenTofu Open Source Infrastructure as Code Tool agentskillexchange · Cloud and DevOpsOpenTofu is an open-source infrastructure as code tool that lets you declaratively manage cloud and on-premises resources. A CNCF project and community-driven fork of Terraform, it provides execution plans, resource graphs, and change automation for safe infrastructure provisioning.40
- 30opentofu-cloud-engineering linuxmalaysiaCovers procedures, standards, and troubleshooting patterns for OpenTofu configurations, network designs, compute nodes, databases, and DNS configurations.40
- 31opentofu-neon-explorer shivamchopra7 · DatabasesExplore and manage Neon Postgres serverless database resources using OpenTofu/Terraform40
- 32opentofu oakoss · Cloud and DevOpsInfrastructure as code with OpenTofu (open-source Terraform fork) and Pulumi. Covers OpenTofu HCL syntax, providers, resources, data sources, modules, state management with remote backends, workspaces, importing existing infrastructure, plan/apply workflow, variable management, output values, provisioners, and state encryption (OpenTofu-exclusive). Includes Pulumi TypeScript/Python SDKs, stack management, component resources, config/secrets, state backends, policy as code, and automation API. Common patterns for multi-environment setups, module composition, CI/CD integration, drift detection, and secret management. Use when writing or reviewing HCL configurations, managing cloud infrastructure state, migrating from Terraform to OpenTofu, building Pulumi programs in TypeScript or Python, setting up multi-environment IaC pipelines, or implementing state encryption.39
- 33civiltekk-opentofu-skill darellchua2 · DatabasesOpenTofu/Terraform infrastructure as code, four routes. first-time-setup: configure cloud providers, authentication, and remote state backends (S3, Azure Storage, GCS). plan-apply: provisioning workflow — plan→apply discipline, resource lifecycle, state management and drift. explore: AWS, Kubernetes, Neon Postgres, and Keycloak resources as code. shared-infra-split: provision-once shared modules (ECR/Amplify pattern) vs per-env stacks, and live migrations between the two. Triggers: opentofu, tofu, terraform plan, terraform apply, infrastructure as code, IaC, provider setup, provider pin, state backend, remote state, drift, tofu import, Neon branching, Keycloak realm, Helm release, Kubernetes as code, shared module, provision once, module split, shared infra.34
- 34opentofu-ecr-provision shivamchopra7 · Cloud and DevOpsProvision AWS Elastic Container Registry (ECR) repositories with GitHub OIDC integration following BETEKK standards34
- 35opentofu javimoschOpen-source infrastructure as code tool33
- 36terraform-opentofu four43 · Cloud and DevOpsTerraform and OpenTofu HCL configuration guidelines for cloud infrastructure. Use when writing or modifying Terraform/OpenTofu code, creating stacks, or working with AWS/cloud resources.33
- 37glab-opentofu a-ng-d · Cloud and DevOpsWork with OpenTofu state management in GitLab. Use when managing Terraform/OpenTofu state, configuring state backends, or working with infrastructure as code. Triggers on OpenTofu, Terraform, state management, infrastructure as code, IaC.32
- 38opentofu-kubernetes-explorer diegosouzapw · Cloud and DevOpsExplore and manage Kubernetes clusters and resources using OpenTofu/Terraform32
- 39platform-engineering-opentofu Harmitx7 · Cloud and DevOpsUse when configuring, automating, deploying, and debugging platform engineering opentofu pipelines, containers, servers, and cloud infrastructure.31
- 40terraform-opentofu-module-architecture hamzabellouch · Cloud and DevOpsMaster production-grade Terraform and OpenTofu module architecture, state management, dependency injection, testing, and multi-environment orchestration.31
- 41opentofu-provider-setup David-Li0406Configure OpenTofu with cloud providers, manage authentication, and setup state backends31
- 42opentofu-keycloak-explorer David-Li0406 · Cloud and DevOpsExplore and manage Keycloak identity and access management resources using OpenTofu/Terraform31
- 43opentofu Yesterday-AI · Cloud and DevOpsManage infrastructure via OpenTofu (Terraform fork). Use when: provisioning servers, DNS, or cloud resources. Covers: init, plan, apply, destroy, import.30
- 44opentofu-module shafibabar · Cloud and DevOpsTeaches the OpenTofu Module standards for Infrastructure as Code — one module per infrastructure concern, explicit variable and output contracts, remote state with locking, plan-before-apply in CI gated by OPA compliance checks, provider and module version pinning, the no-console-changes rule (drift is an incident), and the workspaces-versus-directories decision for per-tenant stamping with a worked tenant-stamp module. Used by the platform-engineer during Deploy.30
- 45opentofu-coder David-Li0406 · Cloud and DevOpsThis skill guides writing Infrastructure as Code using OpenTofu (open-source Terraform fork). Use when creating .tf files, managing cloud infrastructure, configuring providers, or designing reusable modules.29
- 46opentofu-provisioning-workflow David-Li0406Infrastructure as Code development patterns, resource lifecycle management, and state management workflows with OpenTofu29
- 47opentofu-iac majesticlabs-devBuild and maintain OpenTofu infrastructure, providers, state, plans, and modules.28
- 48opentofu UltronCore · Cloud and DevOpsOpenTofu — the open-source, community-driven fork of Terraform (maintained by the Linux Foundation). Use this skill whenever the user mentions OpenTofu, tofu CLI, migrating from Terraform to OpenTofu, needs HCL infrastructure-as-code, state management, provider configuration, modules, workspaces, or any Terraform-compatible IaC workflow. Trigger for "tofu plan", "tofu apply", OpenTofu providers, or "open source terraform".28
- 49opentofu debackerlManage infrastructure through IaC principles using OpenTofu.26
- 50opentofu gitseed · AI and LLM toolsLoad before running OpenTofu commands. Planning rules, read-only agent credentials, and sensitive state bucket constraints.25
- 51opentofu-infrastructure-design SongketMail · SecurityGuidelines for managing, validation, and designing the secure AWS 3-Tier OpenTofu architecture, modules, and security parameters.25
- 52migrate-opentofu-s3-backend-with-cached-overrides atimofeev · Cloud and DevOpsMigrate OpenTofu S3 state safely when init did not detect a moved backend, local .terraform already points to empty destination, or cached -backend-config overrides prevent init -migrate-state from switching.25
- 53opentofu-mcp-schema-lookup talkops-ai · Cloud and DevOpsWorkflow for querying the OpenTofu MCP server to inspect AWS provider resource schemas, data source schemas, module inputs/outputs, and provider initialization requirements before writing or editing HCL code. Use when: (1) writing any new AWS resource block and need to confirm exact argument names and types via get-resource-docs, (2) looking up data source schemas via get-datasource-docs, (3) discovering providers or modules via search-opentofu-registry, (4) inspecting provider configuration requirements via get-provider-details, (5) analysing third-party module interfaces via get-module-details, or (6) pinning provider versions. Do NOT use for non-AWS providers, state operations, or CI/CD pipeline configuration.24
- 54opentofu-vpc-networking talkops-ai · DatabasesVPC networking patterns for OpenTofu AWS modules covering VPC endpoint provisioning strategies, private connectivity prioritisation, Gateway endpoints (S3, DynamoDB), Interface endpoints (PrivateLink), and cost-aware routing decisions. Use when: (1) deploying aws_vpc_endpoint resources for AWS services, (2) distinguishing between Gateway and Interface endpoint implementations, (3) configuring route table associations for Gateway endpoints, (4) placing Interface endpoints in private subnets with security groups, (5) enabling private_dns_enabled for transparent SDK routing, or (6) optimising NAT Gateway costs via private endpoint routing. Do NOT use for IAM policies (use opentofu-iam-security) or encryption enforcement (use opentofu-data-security).24
- 55opentofu-modules David-Li0406 · Cloud and DevOpsWrite OpenTofu/Terraform modules and comprehensive tests for homelab infrastructure. Use when: (1) Creating new OpenTofu or Terraform modules, (2) Writing or modifying .tftest.hcl test files, (3) Adding variables, outputs, or resources to modules, (4) Debugging test failures, (5) Understanding module testing patterns, (6) Writing infrastructure unit tests, (7) Questions about tftest syntax or assertions. Triggers: "opentofu module", "terraform module", "tofu module", "create module", ".tftest.hcl", "tftest", "test my module", "module test", "infrastructure test", "test infrastructure", "variables.tf", "outputs.tf", "module testing", "assertion", "task tg:test", "test-config", "test failures" This skill covers OpenTofu v1.11 testing syntax, variable inheritance patterns, assertion best practices, and repository-specific conventions in infrastructure/modules/.24
- 56opentofu-state-management talkops-ai · DatabasesOpenTofu-native state management patterns covering client-side AES-256-GCM state encryption, native S3 state locking without DynamoDB, and KMS key rotation with fallback blocks. Use when: (1) configuring state encryption using the encryption block with aws_kms key_provider, (2) enabling enforced encryption to prevent accidental plaintext state writes, (3) implementing key rotation with fallback blocks for zero-downtime migration, (4) configuring native S3 locking via use_lockfile = true, or (5) eliminating legacy DynamoDB table requirements from backend config. Do NOT use for resource-level encryption (use opentofu-data-security) or IAM policies (use opentofu-iam-security).24
- 57opentofu-testing-validation talkops-ai · SecurityTesting, validation, and policy enforcement patterns for OpenTofu modules covering lifecycle preconditions and postconditions, the native .tftest.hcl testing framework, and Open Policy Agent (OPA) / Conftest integration. Use when: (1) embedding precondition checks to validate assumptions before resource creation, (2) embedding postcondition checks to verify guarantees after resource creation, (3) authoring .tftest.hcl test files with run blocks and assert blocks, (4) writing negative tests with expect_failures to prove defensive posture, (5) exporting tofu plan to JSON for policy-as-code validation, or (6) integrating Conftest with Rego policies for corporate governance. Do NOT use for state encryption (use opentofu-state-management) or IAM policies (use opentofu-iam-security).24
- 58opentofu-iam-security talkops-ai · SecurityComprehensive IAM security patterns for OpenTofu AWS modules covering service roles, instance profiles, policy document authoring, exclusive policy management, permissions boundaries, and resource-based policies (S3, KMS, SNS). Use when: (1) creating EC2 service roles with the IAM role/instance profile/instance trinity, (2) authoring IAM policies using aws_iam_policy_document data sources, (3) handling AWS runtime variable interpolation with &{...} syntax, (4) preventing ClickOps drift via aws_iam_role_policies_exclusive, (5) enforcing least privilege with permissions_boundary, (6) writing S3 bucket policies with ACL deprecation and public access blocking, (7) preventing KMS key root lockout, or (8) protecting against Confused Deputy attacks in SNS topic policies. Do NOT use for network security groups or VPC endpoints (use opentofu-vpc-networking).24
- 59opentofu-module-layout talkops-ai · SecurityStandardised architecture, file layout, variable conventions, provider configuration, tagging standards, OCI registry module distribution, and end-to-end module authoring workflow for production-grade OpenTofu modules. Use when: (1) creating, scaffolding, or structuring OpenTofu modules, (2) setting up versions.tf/provider.tf/variables.tf/ outputs.tf/main.tf, (3) defining variable declarations with type, description, validation, and sensitive attributes, (4) configuring the AWS provider with default_tags, (5) sourcing modules from OCI registries (oci:// scheme), or (6) decomposing complex modules into logical file splits. Do NOT use for HCL iteration patterns, IAM policy construction, security enforcement, VPC networking, state management, or testing.24
- 60cncf-opentofu-reviewer domehahn · AI and LLM toolsDescribe what this skill helps an agent do.24
- 61opentofu-aws-explorer David-Li0406 · Cloud and DevOpsExplore and manage AWS cloud infrastructure resources using OpenTofu/Terraform24
Questions
Is there an official OpenTofu MCP server?
Check the publisher on each listing: servers published by OpenTofu itself are the official ones. The most used OpenTofu server here is MCP Wizard by StackGuardian.
How do I connect OpenTofu to Claude?
Pick a server below, open its page and copy the install command for Claude Code, or the config block for Claude Desktop. Most OpenTofu servers need an API key or token from your OpenTofu account.