
AI Agent for Terraform Cloud MCP
Seamlessly manage your Terraform Cloud infrastructure through natural conversation with the Terraform Cloud MCP AI Agent. Integrate with AI assistants like Claude, Cursor, or Copilot Studio to automate account, workspace, project, run, plan, state, cost, and variable management. Enhance security, compliance, and efficiency—all via intuitive chat-driven workflows.

Conversational Terraform Cloud Automation
Accelerate your DevOps workflow by leveraging AI-driven automation for Terraform Cloud. Effortlessly create, update, and manage workspaces, projects, and runs through secure, compliant conversational commands. Transform manual infrastructure operations into streamlined, chat-based tasks.
- Workspace & Project Management.
- Create, update, lock/unlock, and manage Terraform Cloud workspaces and projects directly via AI chat.
- Run & Plan Operations.
- Initiate, track, and control Terraform runs and plans conversationally, with full support for approvals and discards.
- Audit & Compliance.
- Benefit from audit-safe response filtering and 100% compliance, ensuring every change is tracked and secure.
- Cost Estimation.
- Retrieve real-time cost estimates for infrastructure changes directly during your workflow.

Advanced Safety & Security Controls
Protect your infrastructure with robust safety features. Destructive operations are disabled by default, require explicit enablement, and provide clear warnings. Separate production and development safety settings to ensure peace of mind for critical environments.
- Destructive Operation Controls.
- Delete and destructive actions are off by default, requiring explicit enablement for extra safety.
- Destructive Hints.
- AI-driven warnings for potentially dangerous commands keep users informed and protected.
- Environment-Based Safety.
- Customize safety controls for production versus development, minimizing risk in critical environments.

Comprehensive Variable & State Management
Efficiently manage Terraform Cloud variables, variable sets, and state versions using natural conversation. Assign, update, and audit sensitive data and outputs with secure, role-based access—protecting your infrastructure's integrity at every step.
- Workspace Variables Management.
- List, create, update, assign, and securely manage Terraform and environment variables.
- State Version Control.
- List, retrieve, and download state versions and outputs, all with enhanced sensitivity protection.
- Variable Sets Automation.
- Easily manage variable sets and assignments across projects and workspaces through chat.
MCP INTEGRATION
Available Terraform Cloud MCP Integration Tools
The following tools are available as part of the Terraform Cloud MCP integration:
- get_account_details
Gets account information for the authenticated user or service account.
- list_workspaces
List and filter workspaces within an organization using pagination and search.
- get_workspace_details
Get detailed information about a specific workspace by ID, name, or organization.
- create_workspace
Create a new workspace in an organization with customizable parameters.
- update_workspace
Update an existing workspace's configuration and settings.
- delete_workspace
Delete a workspace and its content (requires delete tools to be enabled).
- safe_delete_workspace
Safely delete a workspace only if it is not managing any resources.
- lock_workspace
Lock a workspace to prevent new Terraform runs from starting.
- unlock_workspace
Unlock a workspace to allow new runs.
- force_unlock_workspace
Force unlock a workspace that is locked by another user.
- create_run
Create and queue a new Terraform run in a workspace.
- list_runs_in_workspace
List and filter runs in a specific workspace using its ID.
- list_runs_in_organization
List and filter runs across an entire organization.
- get_run_details
Get detailed information about a specific Terraform run.
- apply_run
Apply a run that is waiting for confirmation.
- discard_run
Discard a run that is waiting for confirmation.
- cancel_run
Cancel a run that is currently in planning or applying state.
- force_cancel_run
Forcefully cancel a run immediately.
- force_execute_run
Forcefully execute a pending run by canceling prior runs.
- get_plan_details
Get detailed information about a specific plan.
- get_plan_json_output
Retrieve the JSON execution plan for a specific plan.
- get_run_plan_json_output
Retrieve the JSON execution plan from a run.
- get_plan_logs
Retrieve logs from a plan operation.
- get_apply_details
Get detailed information about a specific apply operation.
- get_errored_state
Retrieve the errored state from a failed apply for recovery.
- get_apply_logs
Retrieve logs from an apply operation.
- create_project
Create a new project within an organization.
- update_project
Update an existing project's configuration.
- list_projects
List and filter projects in an organization.
- get_project_details
Get detailed information about a specific project.
- delete_project
Delete a project unless it contains workspaces (requires delete tools enabled).
- list_project_tag_bindings
List all tags bound to a specific project.
- add_update_project_tag_bindings
Add or update tag bindings for a project.
- move_workspaces_to_project
Move one or more workspaces into a project.
- get_organization_details
Get detailed information about a specific organization.
- get_organization_entitlements
Display the entitlement set for organization features.
- list_organizations
List and filter organizations with support for queries and pagination.
- create_organization
Create a new organization with optional parameters.
- update_organization
Update the settings of an existing organization.
- delete_organization
Delete an organization and all its content (requires delete tools enabled).
- get_cost_estimate_details
Get details about a specific cost estimate, including resource counts and cost projections.
- get_assessment_result_details
Get detailed information about a specific health assessment result.
- get_assessment_json_output
Retrieve the JSON execution plan from an assessment result.
- get_assessment_json_schema
Retrieve the JSON schema file from an assessment result.
- get_assessment_log_output
Retrieve logs from a health assessment operation.
- list_state_versions
List and filter state versions for a workspace.
- get_current_state_version
Get the current state version for a workspace.
- get_state_version
Get details about a specific state version.
- create_state_version
Create a new state version within a workspace.
- download_state_file
Download the raw or JSON-formatted state file.
- list_state_version_outputs
List outputs for a specific state version.
- get_state_version_output
Get details for a specific state version output.
- list_workspace_variables
List all Terraform and environment variables for a workspace.
- create_workspace_variable
Create a new variable in a workspace.
- update_workspace_variable
Update an existing variable within a workspace.
- delete_workspace_variable
Delete a workspace variable (requires delete tools enabled).
- list_variable_sets
List variable sets in an organization with pagination.
- get_variable_set
Get details for a specific variable set.
- create_variable_set
Create a new variable set within an organization.
- update_variable_set
Update the configuration of a variable set.
- delete_variable_set
Delete a variable set and all its variables (requires delete tools enabled).
- assign_variable_set_to_workspaces
Assign a variable set to one or more workspaces.
- unassign_variable_set_from_workspaces
Remove a variable set from one or more workspaces.
- assign_variable_set_to_projects
Assign a variable set to one or more projects.
- unassign_variable_set_from_projects
Remove a variable set from one or more projects.
- list_variables_in_variable_set
List all variables within a variable set.
- create_variable_in_variable_set
Create a new variable within a variable set.
- update_variable_in_variable_set
Update an existing variable in a variable set.
- delete_variable_from_variable_set
Delete a variable from a variable set (requires delete tools enabled).
Connect Your Terraform Cloud with FlowHunt AI
Connect your Terraform Cloud to a FlowHunt AI Agent. Book a personalized demo or try FlowHunt free today!
What is Terraform Cloud MCP
Terraform Cloud MCP is an open-source Model Context Protocol (MCP) server designed to integrate AI assistants with the Terraform Cloud API. Developed by severity1, this solution enables intelligent agents, bots, and other automated systems to manage infrastructure on Terraform Cloud using natural language or programmatic commands. By providing a bridge between AI models and Terraform's robust infrastructure-as-code platform, Terraform Cloud MCP empowers users to provision, update, inspect, and manage cloud resources securely and efficiently. The server leverages the FastMCP framework, ensuring fast, reliable, and extensible integration for any agentic coding tool. This makes Terraform Cloud MCP ideal for teams looking to automate DevOps workflows, enhance productivity, and reduce manual overhead in infrastructure management.
Capabilities
What we can do with Terraform Cloud MCP
Terraform Cloud MCP enables a range of powerful interactions between AI agents and Terraform Cloud, making infrastructure management more accessible and efficient. Here are some of the key features and use cases supported by the service:
- Natural Language Infrastructure Management
- Use AI assistants to provision, update, or delete Terraform resources with simple, human-like requests.
- Seamless API Integration
- Integrate with the Terraform Cloud API to automate routine infrastructure and DevOps tasks.
- Infrastructure Inspection
- Query the current state, status, or outputs of your Terraform-managed infrastructure directly through the MCP server.
- Extensible Agentic Workflows
- Build custom agents, bots, or tools that can interact with Terraform Cloud securely and intelligently.
- Automated Change Management
- Leverage the platform to review, plan, and apply infrastructure changes without manual intervention.

How AI Agents Benefit from Terraform Cloud MCP
AI agents benefit from using Terraform Cloud MCP by gaining the ability to interact programmatically and conversationally with complex infrastructure systems. This integration allows autonomous agents to manage cloud resources, execute infrastructure plans, and monitor deployments without requiring deep expertise in Terraform or manual command-line operations. The result is increased automation, reduced human error, and accelerated development and deployment cycles for organizations using AI-driven DevOps workflows.