Skip to main content
MCP server CX Codex

StackGen — Claude Code MCP server: cloud DevOps from prompts

StackGen — an MCP server for managing cloud infrastructure and apps through Claude Code. Generates Terraform configs, imports existing resources, queries logs.

no license updated 2026-10-29

Open on GitHub

What StackGen does

StackGen bundles several DevOps tools into one MCP tap. The main CLI generates infrastructure as code, terraform-importer pulls existing IaC into StackGen, cloud2code turns cloud resources into tfstate files, logexplorer queries logs, and genie handles generative infrastructure. StackBoot runs on macOS only.

Two environment variables are mandatory: STACKGEN_URL and STACKGEN_TOKEN. Without them the server will not start. The token comes from cloud.stackgen.com or your organization's StackGen instance. All tools install via the stackgenhq/homebrew-stackgen Homebrew tap.

Formulae ending in -beta track release candidates for the main CLI and cloud2code. Other formulae are stable.

What it helps with

  • generate Terraform configurations from infrastructure descriptions
  • import existing Terraform IaC into StackGen
  • convert cloud resources to tfstate files
  • query application logs from the CLI
  • manage cloud infrastructure through prompts

Example prompts for the agent

  • Set up STACKGEN_URL and STACKGEN_TOKEN in my .zshrc
  • Import all Terraform modules from infrastructure/modules into StackGen
  • Convert AWS resources from my account to tfstate using cloud2code

How to install StackGen

Install

The MCP registry has no launch command for it: see the repository README

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about StackGen

How to install StackGen in Claude Code?

Run brew tap stackgenhq/homebrew-stackgen, then brew install stackgenhq/homebrew-stackgen/stackgen. Check with stackgen version.

What does StackGen do?

Manages cloud infrastructure through AI: generates Terraform configs, imports IaC, converts cloud resources to code, queries logs. Ships as a collection of specialized tools under one tap.

What does StackGen require to run?

Two environment variables are mandatory: STACKGEN_URL (API endpoint, cloud or on-prem) and STACKGEN_TOKEN (access key from your account settings). The CLI will not start without them.

Similar MCP servers

All MCP servers for DevOps and infrastructure →

Project sponsors

Companies that keep this analytics open