mjrestivo16/mcp-terraform
If you are the rightful owner of mcp-terraform and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
The Terraform MCP Server is a Model Context Protocol server designed to manage Terraform Infrastructure as Code operations efficiently.
Tools
Functions exposed to the LLM to take actions
tf_version
Get Terraform version information
tf_init
Initialize Terraform working directory
tf_validate
Validate Terraform configuration syntax
tf_plan
Create execution plan showing proposed changes
tf_apply
Apply Terraform changes to infrastructure
tf_destroy
Destroy Terraform-managed infrastructure
tf_output
Get Terraform output values
tf_state_list
List all resources in Terraform state
tf_state_show
Show detailed information for a specific resource
tf_state_rm
Remove a resource from Terraform state
tf_state_mv
Move/rename a resource in Terraform state
tf_import
Import existing infrastructure into Terraform state
tf_refresh
Refresh Terraform state from real infrastructure
tf_fmt
Format Terraform configuration files
tf_workspace_list
List all Terraform workspaces
tf_workspace_select
Switch to a different workspace
tf_workspace_new
Create a new workspace
tf_workspace_delete
Delete a workspace
tf_providers
List Terraform providers in use
tf_graph
Generate resource dependency graph in DOT format
tf_taint
Mark a resource for recreation on next apply
tf_untaint
Remove taint marking from a resource
tf_show_plan
Show details of a saved execution plan file
tf_list_files
List Terraform files in a directory
tf_read_file
Read contents of a Terraform configuration file
tf_write_file
Write content to a Terraform configuration file
Prompts
Interactive templates invoked by user choice
No prompts
Resources
Contextual data attached and managed by the client