TE

Terraform-Cloud

Created 5 months ago

A Model Context Protocol (MCP) server that integrates AI assistants with the Terraform Cloud API.

development documentation public terraform mcp

What is Terraform-Cloud?

An MCP server that integrates AI assistants with the Terraform Cloud API, allowing you to manage your infrastructure through natural conversation.

Documentation

Features

  • Account Management: Get account details for authenticated users or service accounts.
  • Workspace Management: Create, read, update, lock/unlock workspaces, and optionally delete workspaces (with safety controls).
  • Project Management: Create, list, update projects, and optionally delete projects; manage project tag bindings and move workspaces between 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.
  • Assessment Results: Retrieve health assessment details, JSON output, schema files, and logs from Terraform Cloud health assessments.
  • State Version Management: List, retrieve, create, and download state versions; get current state for workspaces.
  • State Version Outputs: List and retrieve specific outputs from state versions including values and sensitivity information.
  • Variables Management: Complete workspace variable and variable set management including creation, updates, assignments, and optionally deletion (with safety controls).

Performance Features

  • Audit-Safe Response Filtering: Conservative token optimization (5-15% reduction) with 100% audit compliance - preserves all user accountability, security configuration, and change tracking data for comprehensive compliance scenarios.

Safety Features

  • Destructive Operation Controls: Delete operations are disabled by default and require explicit enablement via environment variable.
  • Destructive Hints: MCP clients receive proper destructive operation warnings for potentially dangerous tools.
  • Environment-Based Safety: Production and development environments can have different safety configurations.

Server Config

{
  "mcpServers": {
    "terraform-cloud-server": {
      "command": "npx",
      "args": [
        "terraform-cloud"
      ]
    }
  }
}

Links & Status

Repository: github.com
Hosted: No
Global: No
Official: No

Project Info

Hosted Featured
Created At: Jul 02, 2025
Updated At: Aug 07, 2025
Author: severity1
Category: community
License: Not specified
Tags:
development documentation public