AI-powered cloud architecture - describe infrastructure in natural language, get Terraform, cost estimates, and compliance reports
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
claude mcp add cloudwright -- python -m cloudwright-ai-mcp{
"mcpServers": {
"cloudwright": {
"command": "python",
"args": ["-m", "cloudwright-ai-mcp"],
"env": {
"ANTHROPIC_API_KEY": "<anthropic_api_key>"
}
}
}
}ANTHROPIC_API_KEYResumen de MCP Servers
# Cloudwright
*Describe a cloud architecture in English. Get Terraform, costs, and a compliance check.*
[](https://pypi.org/project/cloudwright-ai/)
[](https://github.com/xmpuspus/cloudwright/actions/workflows/ci.yml)
[](LICENSE)
[](https://pypi.org/project/cloudwright-ai/)
[](https://glama.ai/mcp/servers/xmpuspus/cloudwright)
<p align="center">
<img src="examples/cloudwright-hero.gif" alt="Cloudwright: prompt to spec, cost, compliance, Terraform" width="800">
</p>
<p align="center"><em>Prompt to spec, cost breakdown, compliance check, and Terraform in one pass.</em></p>
```bash
pip install 'cloudwright-ai[cli]'
export ANTHROPIC_API_KEY=sk-ant-...
cloudwright design "HIPAA healthcare API on AWS with Postgres and Redis"
```
Cloudwright takes a one-line description of a cloud system and produces a structured architecture spec, a per-component cost breakdown, a compliance report, and ready-to-apply Terraform, Pulumi (TypeScript or Python), or CloudFormation. It works across AWS, GCP, Azure, and Databricks. The latest work adds compliance scanning that maps every finding to the framework control it violates (HIPAA / SOC 2 / FedRAMP / PCI-DSS / ISO 27001 / NIST), a `cloudwright plan` step that proves the exported infrastructure actually deploys, and live import for GCP and Azure alongside AWS.
[Try it](#quickstart) - [What's new](#whats-new) - [Docs](docs/) - [MCP server](#mcp-server-claude--cursor--cline)
## What you get
- Architecture spec (typed YAML, version-controlled, the single source of truth)
- Cost breakdown across AWS, GCP, Azure, Databricks (region-aware, per-component, four pricing tiers, optional carbon + FOCUS CSV export). Each line carries a confidence flag — `high` from the bundled price catalog (deepest on AWS), `low` from formula/fallback — so an estimate never silently passes off a guess as a quote.
- Compliance report covering HIPAA, SOC 2, PCI-DSS, FedRAMP Moderate, GDPR, NIST 800-53, and Well-Architected, with OSCAL 1.1.2 export and control traceability
- Terraform, OpenTofu, Pulumi (TypeScript or Python), and CloudFormation export with safe defaults (encryption, IMDSv2, locked-down S3, sensible RDS settings)
- Diagrams in ASCII, Mermaid, D2, and a fully editable web canvas
- MCP server for AI agents (Claude Desktop, Cursor, Cline, and any MCP-compatible client)
## Quickstart
```bash
cloudwright design "HIPAA healthcare API on AWS with Postgres and Redis"
cloudwright cost spec.yaml --workload-profile medium
cloudwright validate spec.yaml --compliance hipaa,soc2
cloudwright export spec.yaml --format terraform -o ./infra
cloudwright chat --web # browser canvas at http://localhost:8765
```
All commands except `design`, `modify`, `chat`, and `adr` work fully offline. Set `ANTHROPIC_API_KEY` (preferred) or `OPENAI_API_KEY` to enable the LLM-powered ones. Drop `--json` on any command for machine-readable output.
## Smart Canvas + Module Catalog (v1.2)
<p align="center">
<img src="examples/cloudwright-smart-canvas-demo.gif" alt="Cloudwright Smart Canvas" width="800">
</p>
<p align="center"><em>Drag-and-drop canvas with per-provider resource catalog, approved modules, and standards checks.</em></p>
The web diagram is a fully editable architecture canvas. Edits (add, drag, connect, edit fields, delete) are deterministic frontend mutations, so they are instant, free, and reproducible. They do not call the LLM.
A left-side **Catalog drawer** has three tabs:
- **Resources** - the full catalog for the active provider, served by `/api/catalog/services` (case-insensitive `?provider=`).
- **Modules** - approved multi-resource patterns from `/api/modules`. Bundled: AWS Three-Tier Web, AWS Serverless API, AWS Data Lake, GCP Serverless API, Azure Three-Tier Web.
- **Standards** - runs `POST /api/canvas/validate` and surfaces orphan connections, partial modules, unapproved modules, naming-prefix violations, and missing required tags.
When a module instance is intact, the Terraform exporter emits a single `module "<id>"` block with the catalog's pinned `source` and `version`. Modified modules fall back to per-component resource rendering. Mixed specs work: catalog modules render as modules, ad-hoc resources as resources, side by side.
```bash
cloudwright chat --web
# Open http://localhost:8765, use the Catalog drawer, then Export -> Terraform
```
## MCP server (Claude / Cursor / Cline)
Expose Cloudwright as [Model Context Protocol](https://modelcontextprotocol.io/) tools so AI agents can design, cost, validate, and export architectures directly. 18 tools across 6 groups (design, cost, validate, analyze, export, session).
```bash
pip install cloudwright-ai-mcp
cloudwright mcp # all tools, stdio
cloudwright mcp --tools design,cost # subset
cloudwright mcp --transport sse # SSE for HTTP clients
```
`claude_desktop_config.json` (same shape works for Cursor and Cline):
```json
{
"mcpServers": {
"cloudwright": {
"command": "cloudwright",
"args": ["mcp"]
}
}
}
```
## Analysis
`cloudwright lint` (10 anti-pattern checks), `cloudwright score` (5-dimension quality grade), `cloudwright analyze` (blast radius and SPOF), `cloudwright drift <spec> <tfstate>` (design vs deployed), `cloudwright policy --rules policy.yaml` (policy-as-code with 9 built-in checks), `cloudwright security` (security anti-patterns; also scans exported Terraform HCL), `cloudwright compliance <spec> --frameworks hipaa,soc2,fedramp` (every finding mapped to its HIPAA / SOC 2 / FedRAMP / PCI-DSS / ISO 27001 / NIST control ID, with optional Checkov deep scan), and `cloudwright plan <spec> --target terraform` (proves the exported artifact validates / plans). Every command supports `--json`. See [docs/](docs/) and the `examples/` directory for end-to-end samples.
## Python API
```python
from cloudwright import ArchSpec
from cloudwright.cost import CostEngine
from cloudwright.validator import Validator
from cloudwright.exporter import export_spec
spec = ArchSpec.from_file("spec.yaml")
priced = CostEngine().estimate(spec, workload_profile="medium")
results = Validator().validate(spec, compliance=["hipaa", "pci-dss"])
hcl = export_spec(spec, "terraform", output_dir="./infra")
```
<a id="whats-new"></a>
## What's new in v1.6.0
<p align="center">
<img src="examples/cloudwright-review-demo.gif" alt="cloudwright review gives an offline, severity-ranked architecture critique; cloudwright compliance --oscal emits an OSCAL component-definition" width="900">
</p>
<p align="center"><em>`cloudwright review` — offline scorer + linter + validator in one report — then the same findings exported as OSCAL.</em></p>
The design engine now reviews and repairs its own output, compliance binds at design time with OSCAL output, and the cost estimate stops guessing silently.
- **The architect self-corrects.** Every `cloudwright design` runs the built-in critics (scorer, linter, validator) against the generated spec and, when blocking findings remain, repairs it in one bounded pass before you ever see it — recorded in `spec.metadata.critique`. The same engine is a free, offline command: `cloudwright review spec.yaml` gives a severity-ranked architecture review with no API key.
- **OSCAL + control traceability.** `cloudwright compliance spec.yaml --frameworks fedramp --oscal` emits an OSCAL 1.1.2 component-definition — control mapping a CSPM or evidence tool cannot produce before deploy. `--traceability` prints the chain design intent -> component -> Terraform resource -> control ID -> status.
- **Cost you can defend.** Region-aware pricing (every region used to be priced as us-east-1), data-transfer/egress estimation, a per-line pricing confidence (`high` = catalog, `low` = fallback), design-time carbon (`cloudwright cost --carbon`), and FOCUS-spec CSV export (`--focus`).
- **Drift -> remediation and OpenTofu.** `cloudwright drift ... --remediate` turns drift into a cost + compliance + plan preview (read-only). `cloudwright export --format opentofu` and a tofu-aware `plan`.
- **Hardening.** Terraform exporter injection hardening, `cloudwright plan` no longer carries the LLM key into the IaC subprocess, the WAF export is deployable, and the "compliance overrides workload profile" guarantee is now actually enforced for sandbox specs.
```bash
cloudwright review spec.yaml # offline, no API key
cloudwright compliance spec.yaml --frameworks fedramp --oscal # OSCAL component-definition
cloudwright cost spec.yaml --carbon --focus # region-aware + carbon + FOCUS CSV
cloudwright export spec.yaml --format opentofu -o ./infra
```
See [docs/](docs/) for getting-started, CLI, MCP, and troubleshooting guides.
## What's new in v1.5.0
Terminal — `cloudwright compliance` maps every finding to its framework control ID, then `cloudwright plan` proves the Terraform validates:
<p align="center">
<img src="examples/cloudwright-controls-demo.gif" alt="cloudwright compliance maps each finding to HIPAA/SOC2/FedRAMP control IDs, then cloudwright plan proves the Terraform validates" width="900">
</p>
Web canvas — the same checks as Compliance and Plan tabs:
<p align="center">
<img src="examples/cloudwright-controls-web-demo.gif" alt="Compliance and Plan tabs in the web canvas: control-mapped findings and a DEPLOYABLE verdict" width="900">
</p>
<table>
<tr>
<td width="50%"><img src="docs/screenshots/cloudwright-compliance-tab.png" alt="Compliance tab: per-framework posture table with controls satisfied/violated, scanner builtLo que la gente pregunta sobre cloudwright
¿Qué es xmpuspus/cloudwright?
+
xmpuspus/cloudwright es mcp servers para el ecosistema de Claude AI. AI-powered cloud architecture - describe infrastructure in natural language, get Terraform, cost estimates, and compliance reports Tiene 30 estrellas en GitHub y se actualizó por última vez today.
¿Cómo se instala cloudwright?
+
Puedes instalar cloudwright clonando el repositorio (https://github.com/xmpuspus/cloudwright) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.
¿Es seguro usar xmpuspus/cloudwright?
+
Nuestro agente de seguridad ha analizado xmpuspus/cloudwright y le ha asignado un Trust Score de 87/100 (tier: Trusted). Revisa el desglose completo de comprobaciones superadas y flags en esta página.
¿Quién mantiene xmpuspus/cloudwright?
+
xmpuspus/cloudwright es mantenido por xmpuspus. La última actividad registrada en GitHub es de today, con 3 issues abiertos.
¿Hay alternativas a cloudwright?
+
Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.
Despliega cloudwright en tu cloud
Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.
¿Mantienes este repo? Añade un badge a tu README
Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.
[](https://claudewave.com/repo/xmpuspus-cloudwright)<a href="https://claudewave.com/repo/xmpuspus-cloudwright"><img src="https://claudewave.com/api/badge/xmpuspus-cloudwright" alt="Featured on ClaudeWave: xmpuspus/cloudwright" width="320" height="64" /></a>Más MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
The fastest path to AI-powered full stack observability, even for lean teams.
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!
⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。