About nwiizo/tfmcp
nwiizo/tfmcp is an MCP server published by nwiizo in the Cloud category: 🌍 Terraform Model Context Protocol (MCP) Tool - An experimental CLI tool that enables AI assistants to manage and operate Terraform environments. Supports reading Terraform configurations, analyzing plans, applying configurations, and managing state with Claude Desktop integration. ⚡️. Conduid read 84 tools from its source: action_run, analyze_module_health, analyze_plan, analyze_state, analyze_terraform, apply_terraform and 78 more. No package is published for it, so it installs from a source checkout.
The repository has 373 stars and 31 forks, is licensed MIT, and its last commit was on 26 Nov 2026. The latest release is v0.2.4 (2 Oct 2026): Changelog All notable changes to tfmcp are documented in this file. It follows v0.2.3 (8 Sep 2026), and the 5 most recent releases go back to v0.2.0 (26 Mar 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include cloud and terraform.
Install
git clone https://github.com/nwiizo/tfmcpTools (84)
action_runApply, discard, cancel, force-cancel, or force-execute a run when `ENABLE_TF_OPERATIONS=true`analyze_module_healthModule health with cohesion/coupling metricsanalyze_planNEW Analyze plan with risk scoring and recommendationsanalyze_stateNEW Analyze state with drift detectionanalyze_terraformAnalyze configurationapply_terraformApply the reviewed saved plan ID and verify state resource addressesattach_policy_set_to_workspaceAttach a policy set to a workspace when `ENABLE_TF_OPERATIONS=true`attach_variable_set_to_workspacesAttach a variable set to workspaces when `ENABLE_TF_OPERATIONS=true`check_provider_lockfileCheck `.terraform.lock.hcl` for reproducible provider selectionscreate_runQueue a run when `ENABLE_TF_OPERATIONS=true`create_variable_in_variable_setCreate a variable in a variable set when `ENABLE_TF_OPERATIONS=true`create_variable_setCreate a variable set when `ENABLE_TF_OPERATIONS=true`create_workspaceCreate a workspace when `ENABLE_TF_OPERATIONS=true`create_workspace_tagsCreate or attach workspace tags when `ENABLE_TF_OPERATIONS=true`create_workspace_variableCreate a workspace variable when `ENABLE_TF_OPERATIONS=true`delete_variable_in_variable_setDelete a variable from a variable set when `ENABLE_TF_OPERATIONS=true`delete_workspace_safelyUse the safe-delete workspace action when `ENABLE_TF_OPERATIONS=true`destroy_terraformApply a reviewed saved destroy plan with explicit deletion permissionsdetach_variable_set_from_workspacesDetach a variable set from workspaces when `ENABLE_TF_OPERATIONS=true`detect_drift_candidatesDetect drift candidates from readable state without modifying infrastructuredetect_terraform_entrypointsDetect likely root module entrypointsdiscard_terraform_planRemove an unneeded saved plan and free retention capacityget_apply_detailsGet apply detailsget_apply_logsGet apply logsget_latest_module_versionLatest module versionget_latest_provider_versionLatest provider versionget_module_detailsModule detailsget_plan_detailsGet plan detailsget_plan_json_outputGet Terraform JSON plan outputget_plan_logsGet plan logsget_policy_detailsPolicy library detailsget_private_module_detailsGet private registry module detailsget_private_provider_detailsGet private registry provider detailsget_provider_capabilitiesProvider resources, data sources, functions, and guidesget_provider_detailsProvider details (HashiCorp-compatible alias)get_provider_docsProvider documentationget_provider_infoProvider detailsget_resource_dependency_graphResource dependencies visualizationget_run_detailsGet run detailsget_security_statusSecurity scan with secret detectionget_stack_detailsGet Terraform stack detailsget_terraform_planGenerate a saved plan, or retrieve its redacted result and status by plan IDget_terraform_stateShow current stateget_token_permissionsInspect configured token account details without exposing the tokenget_workspace_detailsGet workspace details by ID or organization/nameget_workspace_policy_setsGet policy sets attached to a workspaceinit_terraformInitialize Terraform working directoryinspect_state_safetyInspect state readability, drift risk, lockfile status, and blockersinspect_terraform_projectInspect local Terraform directories, modules, and likely entrypointslist_runsList workspace runslist_stacksList Terraform stackslist_terraform_orgsList visible organizationslist_terraform_plansList saved plan IDs, targets, statuses, and destroy flagslist_terraform_projectsList projects in an organizationlist_terraform_resourcesList all managed resourceslist_variable_setsList organization variable setslist_workspace_variablesList workspace variableslist_workspacesList workspaces in an organizationprepare_terraform_changeGenerate blockers, warnings, and a recommended change sequenceread_workspace_tagsRead workspace tagsreview_terraform_planReview plan risk, blockers, destructive changes, and recommendationsrun_terraform_quality_checksRun CI-friendly validation, module health, guideline, and lockfile checkssearch_modulesSearch modules (HashiCorp-compatible alias)search_policiesSearch Sentinel/OPA policy librariessearch_private_modulesSearch private registry modulessearch_private_providersSearch private registry providerssearch_providersSearch providers (HashiCorp-compatible alias)search_terraform_modulesSearch modulessearch_terraform_providersSearch providersset_terraform_directoryChange active project directorysuggest_module_refactoringRefactoring suggestionssummarize_plan_for_prGenerate markdown plan summary for PR commentsterraform_fmtNEW Format codeterraform_graphNEW Generate dependency graphterraform_importNEW Import existing resourcesterraform_outputGet output values with sensitive values redacted, including named queriesterraform_providersNEW Get provider info with lock fileterraform_refreshNEW Refresh stateterraform_taintNEW Taint/untaint resourcesterraform_workspaceNEW Manage workspaces (list, show, new, select, delete)update_workspaceUpdate workspace settings when `ENABLE_TF_OPERATIONS=true`update_workspace_variableUpdate a workspace variable when `ENABLE_TF_OPERATIONS=true`validate_terraformValidate configuration syntaxvalidate_terraform_detailedDetailed validation with guidelinesSecurity checks
Static checks derived from the repository yesterday. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 3.8K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by Cargo.lock.
- ✓No dynamic code executionScanned 93 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- Streamable HTTPsrc/mcp/http.rs:18
- Starts other programs
- 20 callssrc/terraform/execution.rs:29, src/terraform/fmt.rs:42, src/terraform/fmt.rs:124
- Outbound network calls
- 12 callssrc/mcp/resources.rs:651, src/registry/client.rs:1, src/registry/policy.rs:6
- Writes or deletes files
- 17 callssrc/core/tfmcp.rs:41, src/core/tfmcp.rs:241, src/core/tfmcp.rs:388
- Lockfile
- Cargo.lock
Pattern matches on the source text of 93 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 3.8K words, fetched yesterday. The original in the repository is authoritative.
Read full README