CloudSweep

快速、严格只读的 AWS 资源浪费审计 CLI 和 MCP 服务器。可发现闲置的 NAT Gateway、未挂载的 EBS 卷、孤立的 Elastic IP,以及永不过期的 CloudWatch 日志组。

文档

CloudSweep

PyPI version Python 3.11+

Fast, strictly read-only AWS waste auditor CLI and MCP server. Find zombie cloud spend across regions in seconds—from your terminal or directly inside Claude Desktop, Cursor, or Gemini CLI.

CloudSweep Demo Output

What It Catches

  • Idle NAT Gateways (~$32.85/mo each with zero outbound traffic over 7 days)
  • Unattached EBS Volumes & gp2 → gp3 Upgrades ($0.08–$0.10/GB-mo)
  • Orphaned Elastic IPv4 Addresses ($3.65/mo each)
  • Never-Expiring CloudWatch Log Groups ($0.03/GB-mo accumulated)

Quick Start (Zero Install)

# 1. Preview realistic output offline (no AWS credentials needed)
uvx cloudsweep demo

# 2. Print the minimal read-only IAM policy
uvx cloudsweep policy

# 3. Scan your AWS account
uvx cloudsweep scan

Prefer pip? Install globally with pip install cloudsweep.

Free Preview vs. CloudSweep Pro ($49 One-Time)

FeatureFree PreviewCloudSweep Pro ($49)
Multi-region AWS waste scan & monthly cost totalsYesYes
Strictly read-only IAM policy generatorYesYes
Full unmasked AWS Resource IDs & IPsMaskedUnlocked
Safe, commented-out cleanup.sh remediation script—Unlocked
CSV / JSON audit exports—Unlocked
Full MCP server tool access for AI coding agentsPreviewUnlocked

No subscriptions—buy once, keep forever: Get CloudSweep Pro ($49)

After purchasing, activate on your machine:

uvx cloudsweep activate YOUR-LICENSE-KEY

AI Agent / MCP Server Mode

Generate a ready-to-paste MCP config block for Claude Desktop, Cursor, or Gemini CLI:

uvx cloudsweep mcp-config

Strictly Read-Only Safety Guarantee

CloudSweep never executes destructive AWS API calls—every scanner in src/cloudsweep/scanners/ only performs describe / list / get_metric_statistics reads. Pro remediation exports generate a commented-out cleanup.sh script for human review before anything is touched.