Turf

•
9
•

Manage Terraform and OpenTofu infrastructure through an AI-native engine and Model Context Protocol server.

Turf is an AI-powered infrastructure management CLI and MCP server built as an agentic companion to Terraform and OpenTofu. It allows AI models to safely plan, apply, and reconcile infrastructure configurations using standard HCL, module registries, and provider ecosystems. Users can run Turf interactively through its native TUI, automate runs via scriptable headless execution with JSON event streams, or connect its MCP server directly to AI coding assistants like Claude Code, Cursor, and VS Code.

主要功能

01Full compatibility with Terraform HCL, standard module registries, and OpenTofu providers
02Model Context Protocol (MCP) server integration for direct use with agents like Claude, Cursor, and Codex
03Interactive terminal user interface (TUI) featuring guided walkthroughs and conversational control
04Headless execution mode (`turf exec`) with structured JSON event streams for CI/CD automation
059 GitHub stars
06Unified credential management compatible with standard Terraform and OpenTofu CLI configurations

使用案例

01Equipping AI coding assistants with safe, plan-governed infrastructure deployment capabilities via MCP
02Executing complex cloud maintenance tasks and environment promotions through natural language terminal commands
03Automating multi-cloud resource provisioning and drift remediation within CI/CD pipelines