
Cloudscope
io.github.alexpota由 GitHub 账号 alexpota 发布v0.3.3更新于 Oct 24, 2026
Azure + GCP cost management: spending, forecasts, anomalies, budgets, idle resources, and tags.
概览
只读的 MCP 服务器,让助手查询 Azure 与 GCP 云成本:支出、预测、异常、预算、闲置资源与标签。
- 可以做什么
- 分析支出:按服务、分组或区域汇总成本,按标签统计成本,对比两个时间段,列出花费最高的资源,并合并多个 Azure 订阅或 GCP 项目的成本
- 监控:检测支出异常,查看预算状态与预计超支,并预测未来支出
- 优化:列出成本优化建议,找出带成本估算的闲置资源,以及缺少标签的资源
- 查询上下文:当前日期与月份边界、Azure 订阅列表、GCP 项目列表
- 运行引导式报告提示词,例如月度成本回顾、浪费审计、成本激增排查、高管摘要与分摊报告
- 适用场景
- 适合希望让助手回答 Azure 或 GCP 账单问题、排查成本上涨、审计浪费或闲置资源,或定期生成成本回顾与分摊报告,而不必自己阅读原始计费数据的场景。
- 运行要求
- 通过 npx 在本地运行(需要 Node.js)。Azure:已安装并登录 Azure CLI(az login),并具备 Cost Management Reader 角色;可选设置 AZURE_SUBSCRIPTION_ID,或通过 AZURE_TENANT_ID、AZURE_CLIENT_ID 与 AZURE_CLIENT_SECRET 使用服务主体。GCP:已登录 gcloud 应用默认凭据,启用 BigQuery 计费导出,设置 GOOGLE_CLOUD_PROJECT 与 GCP_BILLING_TABLE,并具备 BigQuery Data Viewer 与 Job User 角色;可选 GCP_PROJECT_ID、GCP_BILLING_ACCOUNT_ID 与 GOOGLE_APPLICATION_CREDENTIALS。
安装
在 SourceWeft 中
- 打开 控制台中的 Cloudscope,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
CloudScope MCP
Ask your AI about your cloud bill.
[npm version] [MCP Registry] [Node.js] [TypeScript] [License: MIT]
What you get
Ask once: "Give me this month's cost review" — and CloudScope runs the full workflow (spend, deltas, anomalies, idle resources, budgets, forecast) and hands back a decision-ready report, not raw numbers to interpret yourself:
TL;DR
Month-to-date Azure spend is $4,312 (May 1–29), tracking +11% vs April. The mover is App Service (+$280) — a new staging slot left running. 2 idle resources cost $94/month;
prod-budgetis at 78% with 2 days left. Top action: delete the orphaned managed disk → save $63/month.Spend This Month
vs Last Month
+$427 (+11%) overall. App Service +$280 drove most of it; everything else flat. → new
staging-slot-2, created May 12, never torn down.Idle & Wasted Resources
Budget Status
prod-budget— 78% used, $4,312 / $5,500, on track (2 days left).Recommended Actions
- Delete
orphaned-osdisk-01(unattached 40 days) → $63/month- Tear down
staging-slot-2if staging is idle → ~$280/month- Release
old-lb-ip(no binding) → $31/month
Illustrative example showing the report format. Run /cloudscope:monthly-cost-review against your own subscription for live numbers.
Install
Azure is auto-detected from your
az loginsession. GCP requires BigQuery billing export setup (see below).
Supported Providers
Prerequisites
Azure
- Azure CLI installed and logged in (
az login) - Cost Management Reader role on the subscription
GCP
- gcloud CLI installed and logged in (
gcloud auth application-default login) - Billing export to BigQuery enabled — this is a one-time manual setup step, not enabled by default (the detailed export is recommended for resource-level cost queries)
- BigQuery Data Viewer + BigQuery Job User roles on the dataset project
- Note: BigQuery on-demand queries cost $6.25 per TiB scanned (pricing). The first 1 TiB/month is free. Billing export tables are small — typical CloudScope queries cost <$0.01 each.
Configuration
Azure (zero-config)
CloudScope auto-detects your subscription from az login. Just add the server:
To target a specific subscription, add an env block:
Advanced: Service Principal (CI/CD & automated environments)
Set these alongside AZURE_SUBSCRIPTION_ID in the env block above.
GCP
GCP requires a BigQuery billing export table. Find your table name in GCP Console > Billing > Billing export > BigQuery export.
Set GOOGLE_CLOUD_PROJECT to your GCP project ID. Override with GCP_PROJECT_ID if your billing dataset lives in a different project.
These variables apply only when using GCP; Azure-only users can skip them.
Both Providers
Azure is auto-detected from az login. Add AZURE_SUBSCRIPTION_ID to target a specific subscription.
Example Questions
- "How much did Azure cost last month?"
- "Show GCP spending by service for the last 7 days"
- "Any cost anomalies this week on GCP?"
- "What will Azure cost next month?"
- "Show me cost optimization recommendations for GCP"
- "Compare Azure and GCP costs across all projects and subscriptions"
Security
CloudScope is read-only. It cannot create, modify, or delete any cloud resources. Azure uses Cost Management Reader permissions. GCP uses BigQuery Data Viewer + Job User with no write access.
FAQ
Does this modify my cloud resources? No. Read-only access only.
Do I need a service principal? No. az login (Azure) or gcloud auth application-default login (GCP) works for local use.
Does the Azure Cost Management API cost money? No. It's free.
Do GCP BigQuery cost queries cost money? Yes, but typically <$0.01 per query ($6.25/TiB scanned, first 1 TiB/month free). See BigQuery pricing.
Can I use both Azure and GCP at the same time? Yes. Configure both sets of env vars and CloudScope queries whichever provider you specify in each tool call.
Development
Reference
Tools
Most tools accept a provider parameter (azure or gcp); the provider-specific tools (list_subscriptions, list_projects, and the cross-account tools get_cross_subscription_costs / get_cross_project_costs) are fixed to their own cloud. The default provider is auto-detected based on which providers are configured.
Cost Analysis
Monitoring
Optimization
Utility
Prompts
Guided workflows that produce structured reports. All prompts accept an optional provider argument (azure or gcp). In Claude Code, type /cloudscope: to see all prompts. In Claude Desktop, click the + button → Connectors → cloudscope.
License
来源:README.md,提交 99a2a7a
工具
0版本历史
1- v0.3.3最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分