Terraform-Cloud

Terraform-Cloud

An MCP server that connects AI assistants to Terraform Cloud for managing infrastructure via natural conversation.

18
Stars
8
Forks
20
Releases

Overview

Terraform Cloud MCP Server is an MCP server that connects AI assistants to the Terraform Cloud API, enabling natural-language management of Terraform Cloud resources. Built with Pydantic models and organized into domain-specific modules, it is designed to be compatible with any MCP-enabled platform including Claude, Claude Code CLI, Claude Desktop, Cursor, Copilot Studio, and others. Core capabilities span account, workspace, project, run, plan, apply, organization, cost estimation, assessment results, state version, state version outputs, and variables management, enabling end-to-end Terraform Cloud interactions through conversation. The server includes safety features such as destructive operation controls (disabled by default; enable via ENABLE_DELETE_TOOLS), a read-only mode (READ_ONLY_TOOLS), destructive hints, and environment-based safety configurations. An audit-safe response filtering system reduces token usage by 5-15% while preserving audit data. Documentation and examples cover development, API references, and sample conversations, with emphasis on production readiness and explicit safety configurations.

Details

Owner
severity1
Language
Python
License
MIT License
Updated
2025-12-07

Features

Account Management

Get account details for the authenticated user or service accounts.

Workspace Management

Create, read, update, lock/unlock workspaces, and optionally delete workspaces (with safety controls).

Project Management

Create, list, update projects; manage project tag bindings and move workspaces between projects; optionally delete projects.

Run Management

Create runs, list runs, get run details, apply/discard/cancel runs.

Plan Management

Retrieve plan details and JSON execution output with advanced HTTP redirect handling.

Apply Management

Get apply details and recover from failed state uploads.

Organization Management

List, create, update organizations, view organization entitlements, and optionally delete organizations (with safety controls).

Cost Estimation

Retrieve detailed cost estimates for infrastructure changes including proposed monthly costs, prior costs, resource counts, and usage projections.

Tags

Terraform CloudMCPAI assistantsTerraformWorkspace ManagementProject ManagementRun ManagementPlan ManagementApply ManagementOrganization ManagementCost EstimationState Version ManagementState Version OutputsVariables ManagementSafetyAudit-SafePydanticPython 3.12+