terraform-cwd-mcp
This server exposes Terraform working-directory truth tools for coding agents, centered on pinned provider schemas and local plans/state/modules, without writing your root module.
List pinned providers and their resource/data/ephemeral counts with
tf_list_providers.Search pinned provider types by name with
tf_search_types.Get exact arguments, nested blocks, modes, and flags for a type at the pinned version with
tf_get_schema.Validate dotted argument paths before writing config with
tf_check_arguments.Summarize saved plan files or plan JSON, prioritizing deletes/replaces, updates, creates, imports, moves, drift, outputs, and destroy warnings with
tf_summarize_plan.Inspect root, local, or installed module variables, outputs, and module calls with
tf_module_interface.List current state addresses, with filters and optional
idlookup, viatf_state_addresses.Show one resource instance's state attributes with best-effort redaction via
tf_show_resource.Optionally assess provider upgrade breakage against actual configuration usage with
tf_upgrade_impactwhen enabled by the operator.Operate within configured directory boundaries and avoid writing the root module, lock file,
.terraform/, or state.
Answers from the hashicorp provider schemas actually locked in your working directory (e.g. hashicorp/aws, hashicorp/random) rather than from published registry docs, and complements HashiCorp's official terraform-mcp-server, which remains authoritative for usage docs, latest versions, public registry modules and HCP/TFE runs (whose plan JSON can be fed into this server's plan summarizer).
Reads the truth of a specific Terraform root module working directory: the exact provider schemas pinned in .terraform.lock.hcl (every argument, nested block, mode and flag of a type, with argument-path validation), saved plans (deletes, replaces, updates, creates, imports, moves, drift), state resource addresses and redacted instance attributes, local and installed module interfaces, and what a provider version upgrade would break. It never runs terraform init in the module and is read-only apart from throwaway temp copies used for upgrade validation.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@terraform-cwd-mcp check if aws_s3_bucket versioning.enabled is valid before I edit it"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@yawlabs/terraform-cwd-mcp
One click adds this to your local Yaw MCP config so it's available in every Yaw Terminal session. Tested with Yaw MCP 1.1.13 or newer. Or install manually below.
What is actually true in THIS Terraform working directory: the exact provider schemas pinned in your .terraform.lock.hcl (so coding agents stop writing arguments that do not exist, were removed, or are read-only), plus your saved plans, your state (redacted), your local and installed modules, and what a provider upgrade would break. It complements HashiCorp's terraform-mcp-server rather than replacing it: that server answers from the Terraform Registry docs, which describe the latest provider release; this one answers from terraform providers schema -json in your root module, which describes the version you actually locked. Run both.
Built and maintained by Yaw Labs.
Why this one?
Your lock file says hashicorp/aws 5.31.0; the registry docs (and the model's training data) say whatever came later or earlier. Agents then write arguments that were added after your pin, removed before it, or are computed-only and cannot be set at all. terraform validate catches it -- after the code is written. This server lets the agent check before it writes.
Pinned, not latest -- the source of truth is
terraform providers schema -jsonrun in your root module, with versions read from.terraform.lock.hcl.Never writes your root, never inits it -- it never runs
terraform initin your directory, so your lock file and.terraform/stay as they are. An uninitialized directory gets an actionable error telling you what to run. It is not free of side effects: it runsterraform, which starts provider plugins, and writes caches (see Security model). The one download is the opt-intf_upgrade_impact, in a temp dir.Cached per lock file -- dumps are cached in memory and on disk, keyed on the root path plus the lock file's bytes, so a provider upgrade invalidates the cache automatically. The AWS provider's schema is tens of MB; you pay for that dump once per lock-file change, not per question.
Small answers --
tf_get_schemarenders one type as a compact indented outline withrequired/optional/optional+computed/computed (read-only),[deprecated],[sensitive]and[write_only]flags, instead of handing the model raw JSON.Cross-platform -- macOS, Linux and Windows. Terraform is spawned directly (no shell) and its output is streamed, so there is no buffer ceiling.
Related MCP server: archview
Tools
Tool | What it does |
| Providers in the root module with their pinned versions and resource / data / ephemeral counts. Call this first. |
| Find type names containing a substring ( |
| Every argument and nested block of one type at the pinned version, with mode and flags. Use before writing or editing a block. |
| Validate dotted paths ( |
| Summarize a saved plan ( |
| Variables (exact type expression, required/optional, default, |
| Resource instance addresses in the current state ( |
| One instance's attribute values from state ( |
| Off unless you set |
Every tool takes an optional dir (the root module), which must be inside the server's directory or TERRAFORM_CWD_MCP_ALLOWED_DIRS; kind is resource (default), data or ephemeral.
Division of authority with HashiCorp's official server. This server wins on argument validity for the version you pinned and on what this directory's plan, state and modules contain. The official server wins on usage docs, latest versions, public registry modules and HCP/TFE runs. For an HCP run's plan, get its plan id there (get_run_details), fetch the plan with get_plan_json_output(plan_id) and pass the JSON to tf_summarize_plan as plan_json (those tools need the official server's terraform toolset and TFE_TOKEN).
What it writes, runs and reaches
Never written: your root module, its
.terraform/, its lock file and its state.terraform initis never run in it.Written: the schema cache, and for
tf_upgrade_impactthe plugin cache and temp dirs.Schema tools (
tf_list_providers,tf_search_types,tf_get_schema,tf_check_arguments) runterraform providers schema -jsonon a cache miss, which starts every installed provider plugin. A root with a configured backend is dumped from a temp dir holding its lock file and a link to its providers, so the backend is not contacted; that dump also lists Terraform's builtin provider.State tools (
tf_state_addresses,tf_show_resource) runterraform state list/terraform show -json, which never lock and never refresh. With a remote backend,terraform state listandterraform state pullread S3/GCS/HCP, andterraform showrenders the pulled copy from a private temp file. Those backend commands get no credential or proxy variables unless you setTERRAFORM_CWD_MCP_ALLOW_BACKEND_CREDENTIALS=1; credentials Terraform finds on its own (~/.aws, gcloud application-default login,terraform login) keep working without it.tf_state_addressesalso runsterraform state pullto check the listing, andterraform showwhen an address has a string instance key, to find keys that must be hidden; ifshowcannot run, every string key is hidden. Selecting a non-default workspace that does not exist would make Terraform create it (the s3 backend writes an empty state), so the server checksterraform workspace listfirst and refuses.tf_upgrade_impact(opt-in) downloads the target provider version withterraform initin a throwaway temp dir into a plugin cache (TERRAFORM_CWD_MCP_PLUGIN_CACHE, else yourTF_PLUGIN_CACHE_DIR, else<cache>/plugins), then runsterraform validateon a temp copy of your configuration whose.terraform/providersentries are links to the packages you already have. State and*.tfvarsare never copied. Calls are serialized (the plugin cache is not safe for concurrent installs).Redaction (
tf_show_resource, and instance keys intf_state_addresses) is best effort: Terraform's sensitive markers, plus any string, map key or instance key equal to (or containing) a marked value anywhere in state, plus values under secret-like keys (password,api_token,client_secret,aws_sk,DB_CRED, ... but notpassword_lengthorsecret_arn), plus secret-shaped strings, map keys and instance keys (private keys, JWTs, AWS access key IDs, GitHub/GitLab/Slack/npm tokens; URL passwords are masked in place). There is deliberately no "show sensitive" switch. An unmarked secret with an ordinary name and no known shape is printed, as are unmarked derived values Terraform itself shows (e.g.content_md5of a sensitive file). Do not treat the output as safe to publish.Every terraform child gets
CHECKPOINT_DISABLE=1, so no version check phones home.
Security model
Terraform provider plugins are programs, and they are found through files in the working directory. Anyone who can write .terraform/ or the lock file, including a coding agent, can decide what runs. This server limits what that code receives; it does not sandbox it.
Directory boundary.
dir, module paths and manifest entries must resolve (links included) inside the server's directory (TERRAFORM_CWD_MCP_DIR, else its working directory) orTERRAFORM_CWD_MCP_ALLOWED_DIRS.plan_filemust be insidedir.Credential variables are withheld. Every command that can start a plugin gets an allowlisted environment: OS and locale variables,
TF_CLI_CONFIG_FILE,TF_PLUGIN_CACHE_DIR,TF_DATA_DIR,TF_WORKSPACE, plus anything inTERRAFORM_CWD_MCP_PASS_ENV.AWS_*,TF_VAR_*,TF_TOKEN_*and the rest are removed.Backend credentials are opt-in. Backend configuration lives in the directory and can run a command (an S3 profile's
credential_process, a kubernetesexec), so by defaultterraform state list,state pullandworkspace listget the same allowlisted environment. WithTERRAFORM_CWD_MCP_ALLOW_BACKEND_CREDENTIALS=1they also get proxy settings and the variables of the backend type named in.terraform/terraform.tfstate(s3:AWS_*;gcs:GOOGLE_*,GCLOUD_*,CLOUDSDK_*;azurerm:ARM_*,AZURE_*, managed-identity and GitHub OIDC variables;remote/cloud:TF_TOKEN_*,TF_CLOUD_*,TFE_*;http:TF_HTTP_*;consul:CONSUL_*;cos:TENCENTCLOUD_*;oss:ALICLOUD_*,ALIBABA_CLOUD_*;kubernetes:KUBE_*,KUBECONFIG;pg:PG*). Never the rest of the environment. Other types get none; name what they need inTERRAFORM_CWD_MCP_PASS_ENV.terraform initfortf_upgrade_impactgets proxy settings andTF_TOKEN_*, which Terraform sends only to the matching host.The binary is not looked up in
dir. On Windows the server setsNoDefaultCurrentDirectoryInExePath, and empty or relativePATHentries are removed from what terraform children get.tf_upgrade_impactis opt-in because it fetches and runs whichever provider the lock file names.
What this does not protect against:
A plugin runs as your user. It can read anything you can, including
~/.aws/credentials,~/.terraform.d/credentials.tfrc.json, the fileTF_CLI_CONFIG_FILEnames and the temporary copy of pulled state, and it can use the network.With
TERRAFORM_CWD_MCP_ALLOW_BACKEND_CREDENTIALS=1, whoever can edit the directory controls what those variables reach: the backend configuration can send them to another endpoint or run a command that reads them, and editing.terraform/terraform.tfstatechooses which backend type's variables are passed. Set it only for directories whose contents you trust. Without it, such a command still runs, as your user, and can read your files like a plugin can.Keeping provider code out of the directory is your job: the boundary limits where the server looks, not what is planted inside it.
Plan JSON can be forged. A summary of
plan_jsonor a JSON file says what the document claims; only a binary plan is rendered by Terraform. The shape checks refuse the forgeries this server has seen (any instance address inplanned_valuesorprior_statethat the change, drift and deferred lists do not account for -- which catches a missing, emptied or decoy-replacedresource_changes, a managed delete relabelled as a data source is flagged as caller-supplied, a delete parked indeferred_changesis warned about) -- a new shape of forgery can always be found.An agent with a shell and the credential can bypass every control here. These controls cover what reaches an agent through this server.
Example tf_summarize_plan output (real plan, abridged):
plan (terraform 1.15.7, format 1.2): applyable, complete
totals: 1 delete, 5 replace, 1 update, 1 create, 0 read, 1 import, 1 move, 1 forget, 0 unchanged (terraform: 1 to import, 6 to add, 1 to change, 6 to destroy)
DELETE (1)
- null_resource.gone (not in configuration)
REPLACE (5)
-/+ local_sensitive_file.sf delete-then-create; forced by: content [sensitive]
+/- random_string.cbd create-before-destroy; forced by: keepers
...
UPDATE (1)
~ terraform_data.cfg: input.version, output (known after apply)
WARNING: 6 object(s) will be destroyed (1 delete, 5 replace). 1 moved block(s) applied; none covers these.Example tf_upgrade_impact output (real validate run):
upgrade hashicorp/random 2.3.1 -> 3.6.3 (major) for /work/infra
constraints: root pins 2.3.1 as local name rnd (change it to allow 3.6.3)
used types: resource random_password, random_id
affected arguments (2):
random_password.p.number (main.tf:18): DEPRECATED in 3.6.3
reads random_id.i.b64 (main.tf:36): REMOVED in 3.6.3
validate on a temp copy, 3.6.3 vs 2.3.1: 1 new error, 1 new warning, 1 warning resolved
error main.tf:36: Unsupported attribute - This object has no argument, nested block, or exported attribute named "b64".
warning main.tf:18 random_password.p: Attribute Deprecated - **NOTE**: This is deprecated, use `numeric` instead.
verdict: BREAKING (1 error after upgrade)Example tf_get_schema output:
resource random_password (registry.terraform.io/hashicorp/random 3.9.1)
bcrypt_hash: string computed (read-only) [sensitive] - A bcrypt hash of the generated random password. ...
keepers: ["map","string"] optional - Arbitrary map of values that, when changed, will trigger recreation of resource. ...
length: number required - The length of the password desired. ...
number: bool optional+computed [deprecated] - Include numeric characters in the result. ...
result: string computed (read-only) [sensitive] - The generated random password.Quick start
1. Initialize the root module once (you, not the server):
terraform init -backend=false-backend=false is enough: the schema only needs the providers, not state.
2. Add the server. Claude Code, from the root module:
# macOS / Linux / WSL
claude mcp add terraform-cwd -- npx -y @yawlabs/terraform-cwd-mcp@latest
# Windows
claude mcp add terraform-cwd -- cmd /c npx -y @yawlabs/terraform-cwd-mcp@latestOr add it to .mcp.json in the root module (or anywhere, and set TERRAFORM_CWD_MCP_DIR):
macOS / Linux / WSL:
{
"mcpServers": {
"terraform-cwd": {
"command": "npx",
"args": ["-y", "@yawlabs/terraform-cwd-mcp@latest"]
}
}
}Windows:
{
"mcpServers": {
"terraform-cwd": {
"command": "cmd",
"args": ["/c", "npx", "-y", "@yawlabs/terraform-cwd-mcp@latest"]
}
}
}Why the extra step on Windows? Since Node 20,
child_process.spawncannot directly execute.cmdfiles (that's whatnpxis on Windows). Wrapping withcmd /cis the standard workaround.
3. Restart your MCP client and ask, for example: "Add a versioned S3 bucket -- check the arguments against our pinned AWS provider first."
Tell your agent to use it
Agents use the server reliably when the project tells them to. Paste this into the root module's CLAUDE.md (or AGENTS.md):
## Terraform provider schemas
This repo pins provider versions in `.terraform.lock.hcl`; registry docs and your
training data describe other versions. Use the terraform-cwd MCP server:
- Call `tf_list_providers` once per session to see the pinned versions.
- Before writing or editing any `resource`, `data` or `ephemeral` block, call
`tf_get_schema` for that type.
- Call `tf_check_arguments` with every argument path you set (dotted for nested
blocks, e.g. `versioning.enabled`). Never use an argument it reports as
`UNKNOWN` or `READ-ONLY (computed)`; replace a `[deprecated]` one if the
schema offers an alternative.
- Before calling a module, read its inputs with `tf_module_interface`.
- After `terraform plan -out=tfplan`, review it with `tf_summarize_plan`
(plan_file: tfplan) and call out every DELETE and REPLACE.
- Before bumping a provider version, run `tf_upgrade_impact` (if the server has it enabled).Pairs well with
HashiCorp's terraform-mcp-server
hashicorp/terraform-mcp-server answers registry and HCP questions; this server answers what is true in your working directory. Run both -- they do not overlap, and when they disagree the table says who wins:
Question | Authority |
Is argument X valid for the provider version I have pinned? | terraform-cwd-mcp |
Which arguments I use break if I upgrade to vN? | terraform-cwd-mcp ( |
What does this saved plan, this state, or this local / installed module contain? | terraform-cwd-mcp |
How is resource X meant to be used? What do the docs and examples say? | terraform-mcp-server |
What is the latest provider or module version? | terraform-mcp-server |
Which public registry module should I use? | terraform-mcp-server |
HCP Terraform / TFE workspaces and runs | terraform-mcp-server |
An HCP run's plan | terraform-mcp-server fetches it ( |
The official server starts with only its registry toolset. The HCP / TFE rows need it started with --toolsets=registry,terraform (or all) and TFE_TOKEN. Its docs search tool is search_provider_docs from v1.3.1 on (search_providers before; a BREAKING rename), which matters if you allowlist tools by name.
Yaw Mode skills
Yaw Terminal's Yaw Mode ships four skills that drive both servers, degrade gracefully when either is missing, and stop at terraform plan (they never apply or destroy):
/yaw-tf-- everyday write / edit / fix: check every argument against the pinned schema, then fmt, validate, plan and summarize; hands off to the three below./yaw-tf-refactor-- renames, module moves and imports withmoved/import/removedblocks, done only when the plan shows zero destroys and replaces./yaw-tf-plan-review-- go / no-go punch list for a local saved plan or an HCP run: destroys first, then checkov / trivy and IAM, network and encryption hot spots./yaw-tf-upgrade-- provider bumps: latest version,tf_upgrade_impact(when enabled) against the arguments you actually use, the upgrade guide, then edits, re-pin, validate and plan.
Configuration
All optional.
Env var | Default | Purpose |
| the server's working directory | Root module used when a tool call passes no |
| (none) | More directories tools may use, separated like |
| (off) |
|
| (off) |
|
| (none) | Comma-separated variable names to pass to terraform children that are otherwise scrubbed, e.g. what a version-manager wrapper needs. Do not list credentials: provider plugins can read them. |
|
| Where schema dumps are cached ( |
|
| Binary to run, e.g. a full path, or |
|
| Kill any terraform command (schema dump, state read, target init, validate) after this long. |
|
| Where |
Runtime (oam or Node):
The terraform-cwd-mcp command prefers oam when it finds a
usable one and otherwise runs on Node. It never serves on an oam older than 0.21.1.
Env var | Default | Purpose |
|
|
|
| (unset) | Path to the oam binary to use. Otherwise the launcher checks |
An outdated oam is fixed with oam self-update. Under Yaw MCP, which runs servers
on oam by default, yaw-mcp set <namespace> runtime=node switches this server to
Node. There is no --permission sandbox option: the server spawns terraform, which
starts provider plugins, so there is nothing narrow to grant.
Requirements
Node.js 20+
Terraform (or OpenTofu) on
PATH, recent enough to haveterraform providers schema -json(0.12+; ephemeral resources need 1.10+)An initialized root module (
.terraform/and.terraform.lock.hclpresent) for every tool excepttf_module_interfaceon the root or a local path, andtf_summarize_planwith plan JSONState tools: the backend initialized (
terraform init, not-backend=false), and credentials Terraform can find without environment variables, or those variables in the server's environment plusTERRAFORM_CWD_MCP_ALLOW_BACKEND_CREDENTIALS=1tf_upgrade_impact:TERRAFORM_CWD_MCP_ALLOW_UPGRADE=1, and registry access the first time a target version is requested (later runs for that version are offline).terraform/at<dir>/.terraform:TF_DATA_DIRis not honoured
Contributing
git clone https://github.com/YawLabs/terraform-cwd-mcp.git
cd terraform-cwd-mcp
npm install
npm run lint # Biome check
npm run lint:fix # Auto-fix
npm run build # tsup bundle + declarations
npm test # Vitest (the integration test runs only when terraform is on PATH)
npm run typecheck # oam check . when oam is installed, else tsc --noEmit
npm run check:oam-floor # the oam floor agrees across the repo and matches the latest oam releaseSee CONTRIBUTING.md for the full workflow, including release process.
License
MIT
Available Tools
9 toolstf_check_argumentsAIdempotent
Validate argument / nested-block paths against the PINNED schema before writing them, e.g. ["bucket", "region", "versioning.enabled"]. Flags unknown, read-only and deprecated paths. Executes code: unless the schema is cached, this runs terraform providers schema, which starts the provider plugins installed under dir/.terraform/providers (with credential environment variables removed; they still run as your user).
Inputs: arguments (required), type_name (required), dir, kind.
tf_get_schemaAIdempotent
Exact arguments and nested blocks for one type at the PINNED provider version. Use BEFORE writing or editing any resource/data/ephemeral block; only arguments listed here exist. 'computed (read-only)' attributes cannot be set. kind: resource | data | ephemeral. Executes code: unless the schema is cached, this runs terraform providers schema, which starts the provider plugins installed under dir/.terraform/providers (with credential environment variables removed; they still run as your user).
Inputs: type_name (required), dir, kind, max_depth, +1 more.
tf_list_providersAIdempotent
List providers and their PINNED versions for a Terraform root module (default: cwd). Call this first so code targets the versions actually locked in .terraform.lock.hcl, not the latest release. Lists only the providers locked in THIS directory; it does not search the registry. For registry search, provider docs or the latest version, use the official terraform MCP server (search_provider_docs / get_latest_provider_version). Executes code: unless the schema is cached, this runs terraform providers schema, which starts the provider plugins installed under dir/.terraform/providers (with credential environment variables removed; they still run as your user).
Inputs: dir.
tf_module_interfaceARead-onlyIdempotent
Variables (exact type expression, required/optional, default, sensitive/nullable/ephemeral, validation count), outputs and module calls of a module in THIS working directory: the root, a local module directory, or an installed module by address (module.network, resolved through .terraform/modules/modules.json, so downloaded registry/git modules work). Module calls are checked against what is installed. For public registry modules you have not installed, use the official terraform MCP server.
Inputs: dir, module, description_chars.
tf_search_typesAIdempotent
Find resource / data source / ephemeral resource type names containing query (e.g. 's3_bucket') in the pinned providers. kind: resource | data | ephemeral. Executes code: unless the schema is cached, this runs terraform providers schema, which starts the provider plugins installed under dir/.terraform/providers (with credential environment variables removed; they still run as your user).
Inputs: query (required), dir, kind, limit.
tf_show_resourceAIdempotent
Show one resource instance's attribute values from the current Terraform state (terraform show -json). Does not change state: never locks, never refreshes. Executes code: terraform show starts the provider plugins (credential environment variables removed; a remote state is fetched first by terraform state pull, which gets the backend's variables only if the operator sets TERRAFORM_CWD_MCP_ALLOW_BACKEND_CREDENTIALS=1). Redaction is best effort: Terraform's own markers, plus values and map keys equal to a marked one, secret-like names and secret-shaped strings; an unmarked secret with an ordinary name and shape is shown. A footer says what was hidden and why.
Inputs: address (required), dir, include_null, max_value_chars.
tf_state_addressesAIdempotent
List resource instance addresses in the current Terraform state (terraform state list), optionally filtered. Does not change state: never locks, never refreshes. Credential environment variables are withheld unless the operator sets TERRAFORM_CWD_MCP_ALLOW_BACKEND_CREDENTIALS=1, which passes a remote backend its own variables. Instance keys that look secret or equal a sensitive value are hidden. Executes code when any address has a string key: finding sensitive keys runs terraform show, which starts the provider plugins. A non-default workspace that does not exist is refused (reading it would create it).
Inputs: id, dir, limit, filter.
tf_summarize_planAIdempotent
Summarize a saved Terraform plan: deletes and replaces first (with the attribute that forces each replace), updates with changed paths, creates, imports, moves, forgets, drift and output changes, plus a destroy warning that names renames needing a moved block. Pass plan_file (binary from terraform plan -out, rendered with terraform show -json in dir, or a plan JSON file) or plan_json (e.g. from the official terraform MCP server's get_plan_json_output(plan_id) for an HCP run; get the plan id from its get_run_details). Prints no values: sensitive paths are truncated, import IDs omitted. plan_json and JSON files are unverified caller input: their shape is checked, but nothing proves Terraform produced them. plan_file must be inside dir. Executes code for a binary plan: terraform show starts the provider plugins (credential environment variables removed).
Inputs: dir, max_paths, plan_file, plan_json, +1 more.
tf_upgrade_impactAIdempotent
What breaks if a pinned provider is upgraded (or downgraded) to an exact version: compares the pinned schema with the target's for the arguments, nested blocks and attribute reads this configuration uses (root and installed modules), checks version constraints, and confirms with terraform validate on a temp copy. Disabled unless the operator sets TERRAFORM_CWD_MCP_ALLOW_UPGRADE=1. Executes code: it downloads the target provider named through the lock file into a cache (temp dirs only; never touches dir) and runs that plugin and the pinned ones, with credential environment variables removed. For the latest version number or upgrade guides, use the official terraform MCP server.
Inputs: version (required), provider (required), dir, validate, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool targets a distinct slice of the Terraform workflow: provider listing, type search, full schema fetch, path validation, plan summarization, module interface, state address listing, single-instance inspection, and upgrade impact. Descriptions explicitly state when to use a tool and when to defer to the official terraform MCP server, so near-misses like tf_search_types vs tf_get_schema vs tf_check_arguments are cleanly separated by intent (find name / read schema / validate paths).
All tools share a clear `tf_` namespace prefix and snake_case, which makes the set predictable. However the verb style is mixed: list/search/get/check/summarize/show are verb-led, while tf_module_interface, tf_state_addresses and tf_upgrade_impact are noun phrases, and read operations split between 'get' and 'show'.
Nine tools is well within the ideal range and each maps to a concrete inspection step (providers -> types -> schema -> validation; plan; module; state; upgrade). No tool feels redundant or filler, and deferred concerns (registry search, latest versions) are intentionally pushed to another server rather than bloating this one.
The read-only inspection surface is thorough: schema discovery, configuration validation, plan analysis, module interface, and state inspection are all covered end to end. Minor gaps remain, such as no tool to enumerate or switch workspaces (despite workspace handling in tf_state_addresses) and no aggregate config/output-value view, but these are workaroundable.
Maintenance
Related MCP Connectors
Unified API to query AWS, GCP, Azure and generate Terraform/CLI execution kits for AI agents.
Read-only AI coding tools for change verification, release readiness, capacity, and guidance.
Detects database migration table locks, terraform cost leaks, and OWASP API flaws.
Statically audits MCP tool surfaces for token cost, schema quality, and design issues.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA read-only MCP server for inspecting and diagnosing HCP Terraform workspaces, runs, and plan summaries from ChatGPT and other MCP clients. It provides tools to list workspaces, inspect runs, and summarize plans without exposing sensitive data.MIT
- AlicenseNot gradedqualityDmaintenanceProvides agents with read-only access to local code architecture graphs (structure from tree-sitter, semantic summaries from LLMs), including per-workspace graph/config/status/rebuild tools, while enforcing that topology comes only from static analysis.MIT
- AlicenseNot gradedqualityDmaintenanceEnables safe, local DevOps inspection through a JSON-lines server with schema validation, path isolation, and redaction, supporting read-only Git operations, Kubernetes YAML validation, Terraform plan summaries, and sanitized log analysis.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to query a repository's verified semantic model, including capabilities, ownership, contracts, constraints, impact, health, and verification status, without re-deriving project facts. It exposes read-only tools for inspecting, reasoning about, and verifying the provenance-tracked surface.2Apache 2.0