API & MCP
Everything a person can do on Terraform Plan & Drift Explorer, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://terraformdriftexplorer.usefulweb.site/api/v1/calculate– run Terraform Plan & Drift ExplorerGET https://terraformdriftexplorer.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Terraform Plan & Drift Explorer
Paste the JSON of a saved plan (`terraform show -json tfplan`) or the `terraform plan -json` stream. You get counts per action, every resource change with Terraform's own reason (tainted, cannot update, removed from config…), attribute-level before/after diffs with sensitive values masked and "known after apply" marked, the drift Terraform detected outside of Terraform during refresh, and risk flags for deleting or replacing databases, buckets and other stateful resources or for opening access.
| Field | Type | Default | Description |
|---|---|---|---|
text | textarea | — | Terraform plan JSON. Run `terraform plan -out=tfplan && terraform show -json tfplan` (full detail) or paste `terraform plan -json` output (actions and reasons only, no attribute values). |
file | file | — | Or upload the file. Read in memory as UTF-8 text and not stored. Max 5 MiB. |
showNoOp | boolean | false | List unchanged (no-op) resources too |
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://terraformdriftexplorer.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
terraform_drift_explorer - Local stdio connector:
node src/mcp-stdio.ts --tool=terraform-drift-explorer
{
"mcpServers": {
"terraform-drift-explorer": { "type": "http", "url": "https://terraformdriftexplorer.usefulweb.site/mcp" }
}
}