OpenTofu MCP Server (Official)

Official OpenTofu MCP server enabling AI agents to interact with OpenTofu's infrastructure-as-code platform — running plans, applying changes, managing state, querying the registry for providers and modules, and integrating IaC workflows into agent-driven infrastructure management.

Evaluated Mar 06, 2026 (0d ago) vcurrent
Homepage ↗ Repo ↗ Developer Tools opentofu terraform iac mcp-server official infrastructure open-source
⚙ Agent Friendliness
80
/ 100
Can an agent use this?
🔒 Security
79
/ 100
Is it safe for agents?
⚡ Reliability
80
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
75
Documentation
80
Error Messages
80
Auth Simplicity
88
Rate Limits
82

🔒 Security

TLS Enforcement
85
Auth Strength
80
Scope Granularity
75
Dep. Hygiene
82
Secret Handling
75

Local execution. State files may contain secrets. Cloud creds in env vars. Encrypt remote state backends.

⚡ Reliability

Uptime/SLA
80
Version Stability
80
Breaking Changes
82
Error Recovery
78
AF Security Reliability

Best When

An agent needs to manage infrastructure-as-code with OpenTofu (Terraform-compatible) — especially for cloud resource provisioning and IaC workflows.

Avoid When

You're using Pulumi, AWS CDK, or another IaC tool.

Use Cases

  • Running terraform/tofu plan from infrastructure validation agents
  • Applying infrastructure changes from CI/CD pipeline agents
  • Querying the OpenTofu/Terraform registry for modules and providers
  • Managing Tofu state files from infrastructure management agents
  • Generating IaC configurations for provisioning agents
  • Detecting infrastructure drift from compliance monitoring agents

Not For

  • Teams using Pulumi, CDK, or Crossplane for IaC
  • Non-cloud infrastructure management
  • Real-time infrastructure monitoring (use Datadog/Prometheus for that)

Interface

REST API
No
GraphQL
No
gRPC
No
MCP Server
Yes
SDK
No
Webhooks
No

Authentication

Methods: none
OAuth: No Scopes: No

OpenTofu itself uses cloud provider credentials (AWS, GCP, Azure) — not API keys for OpenTofu itself. MCP server communicates with local Tofu binary.

Pricing

Model: free
Free tier: Yes
Requires CC: No

OpenTofu is fully free and open source — the community-led fork of Terraform after HashiCorp's BSL license change. No cost for OpenTofu itself (cloud costs apply separately).

Agent Metadata

Pagination
none
Idempotent
Full
Retry Guidance
Not documented

Known Gotchas

  • Plan and apply are destructive — agents must confirm before applying changes
  • State files contain sensitive data — handle with extreme care
  • Working directory must contain valid .tf files before plan/apply
  • Cloud credentials must be configured in environment before running
  • Tofu apply can fail mid-way leaving partial state — agents must handle gracefully
  • Module registry queries use Terraform-compatible registry API

Alternatives

Full Evaluation Report

Detailed scoring breakdown, competitive positioning, security analysis, and improvement recommendations for OpenTofu MCP Server (Official).

$99

Scores are editorial opinions as of 2026-03-06.

5220
Packages Evaluated
26151
Need Evaluation
173
Need Re-evaluation
Community Powered