Cloudscope
概览
作者提供的说明(英文原文)
Azure + GCP cost management: spending, forecasts, anomalies, budgets, idle resources, and tags.
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 开发者工具
- 你需要填写:AZURE_CLIENT_SECRET, GOOGLE_APPLICATION_CREDENTIALS
安装
选择你使用的 AI 应用,然后复制设置。
通过 2/2 项检查 · 在你的电脑上运行
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要 Cloudscope 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
打开电脑版 Claude 应用的设置文件
SettingsDeveloperEdit Config
粘贴这些设置并保存文件
{ "mcpServers": { "cloudscope": { "command": "npx", "args": [ "-y", "cloudscope-mcp" ], "env": { "AZURE_SUBSCRIPTION_ID": "your-value", "AZURE_TENANT_ID": "your-value", "AZURE_CLIENT_ID": "your-value", "AZURE_CLIENT_SECRET": "your-value", "GOOGLE_CLOUD_PROJECT": "your-value", "GCP_BILLING_TABLE": "your-value", "GCP_PROJECT_ID": "your-value", "GCP_BILLING_ACCOUNT_ID": "your-value", "GOOGLE_APPLICATION_CREDENTIALS": "your-value" } } } }只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
退出 Claude 再重新打开
试一试
用 Cloudscope 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Cloudscope,或回答中出现 Cloudscope 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Cloudscope
Cloudscope 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
A · 使用能连接 Cloudscope 的应用
- 需要 Cloudscope 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
- 需要 Cloudscope 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Node.js(只需一次)
- 需要 Cloudscope 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Node.js(只需一次)
- 需要 Cloudscope 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Node.js(只需一次)
B · 开发者工具 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- Sentry✓ ChatGPT
- Front-End Checklist✓ ChatGPT
- Compiler Explorer✓ ChatGPT
可连接 Claude Code,但需要先准备
需要 Cloudscope 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Node.js(只需一次)
注册并创建 Cloudscope 的密钥
打开开发者网站,注册账户并创建 API 密钥,下一步要用。可能收费。
获取密钥的方法见下方开发者的 README
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
claude mcp add cloudscope --env AZURE_SUBSCRIPTION_ID=your-value --env AZURE_TENANT_ID=your-value --env AZURE_CLIENT_ID=your-value --env AZURE_CLIENT_SECRET=your-value --env GOOGLE_CLOUD_PROJECT=your-value --env GCP_BILLING_TABLE=your-value --env GCP_PROJECT_ID=your-value --env GCP_BILLING_ACCOUNT_ID=your-value --env GOOGLE_APPLICATION_CREDENTIALS=your-value -- npx -y cloudscope-mcp按 Enter 前,把“your-value”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Claude Code 中输入 /mcp
应能看到 Cloudscope 在列表中并显示已连接
试一试
用 Cloudscope 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Cloudscope,或回答中出现 Cloudscope 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要 Cloudscope 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Node.js(只需一次)
注册并创建 Cloudscope 的密钥
打开开发者网站,注册账户并创建 API 密钥,下一步要用。可能收费。
获取密钥的方法见下方开发者的 README
填写你的密钥
在 Cloudscope 的设置中,AZURE_SUBSCRIPTION_ID, AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, GOOGLE_CLOUD_PROJECT, GCP_BILLING_TABLE, GCP_PROJECT_ID, GCP_BILLING_ACCOUNT_ID, GOOGLE_APPLICATION_CREDENTIALS 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 Cloudscope 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Cloudscope,或回答中出现 Cloudscope 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要 Cloudscope 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Node.js(只需一次)
注册并创建 Cloudscope 的密钥
打开开发者网站,注册账户并创建 API 密钥,下一步要用。可能收费。
获取密钥的方法见下方开发者的 README
填写你的密钥
在 Cloudscope 的设置中,AZURE_SUBSCRIPTION_ID, AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, GOOGLE_CLOUD_PROJECT, GCP_BILLING_TABLE, GCP_PROJECT_ID, GCP_BILLING_ACCOUNT_ID, GOOGLE_APPLICATION_CREDENTIALS 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 Cloudscope 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Cloudscope,或回答中出现 Cloudscope 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 JSON 设置
安装在电脑上
Claude Code
claude mcp add cloudscope --env AZURE_SUBSCRIPTION_ID=your-value --env AZURE_TENANT_ID=your-value --env AZURE_CLIENT_ID=your-value --env AZURE_CLIENT_SECRET=your-value --env GOOGLE_CLOUD_PROJECT=your-value --env GCP_BILLING_TABLE=your-value --env GCP_PROJECT_ID=your-value --env GCP_BILLING_ACCOUNT_ID=your-value --env GOOGLE_APPLICATION_CREDENTIALS=your-value -- npx -y cloudscope-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"cloudscope": {
"command": "npx",
"args": [
"-y",
"cloudscope-mcp"
],
"env": {
"AZURE_SUBSCRIPTION_ID": "your-value",
"AZURE_TENANT_ID": "your-value",
"AZURE_CLIENT_ID": "your-value",
"AZURE_CLIENT_SECRET": "your-value",
"GOOGLE_CLOUD_PROJECT": "your-value",
"GCP_BILLING_TABLE": "your-value",
"GCP_PROJECT_ID": "your-value",
"GCP_BILLING_ACCOUNT_ID": "your-value",
"GOOGLE_APPLICATION_CREDENTIALS": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"cloudscope": {
"command": "npx",
"args": [
"-y",
"cloudscope-mcp"
],
"env": {
"AZURE_SUBSCRIPTION_ID": "your-value",
"AZURE_TENANT_ID": "your-value",
"AZURE_CLIENT_ID": "your-value",
"AZURE_CLIENT_SECRET": "your-value",
"GOOGLE_CLOUD_PROJECT": "your-value",
"GCP_BILLING_TABLE": "your-value",
"GCP_PROJECT_ID": "your-value",
"GCP_BILLING_ACCOUNT_ID": "your-value",
"GOOGLE_APPLICATION_CREDENTIALS": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"cloudscope": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"cloudscope-mcp"
],
"env": {
"AZURE_SUBSCRIPTION_ID": "your-value",
"AZURE_TENANT_ID": "your-value",
"AZURE_CLIENT_ID": "your-value",
"AZURE_CLIENT_SECRET": "your-value",
"GOOGLE_CLOUD_PROJECT": "your-value",
"GCP_BILLING_TABLE": "your-value",
"GCP_PROJECT_ID": "your-value",
"GCP_BILLING_ACCOUNT_ID": "your-value",
"GOOGLE_APPLICATION_CREDENTIALS": "your-value"
}
}
}
}需要你填写的值
AZURE_SUBSCRIPTION_IDenvAzure subscription ID to query for cost data. Optional; auto-detected from az login session if not set.AZURE_TENANT_IDenvAzure tenant ID for service principal authentication. Optional; falls back to DefaultAzureCredential (e.g. az login) if unset.AZURE_CLIENT_IDenvService principal client ID. Optional; required only when using ClientSecretCredential.AZURE_CLIENT_SECRET机密 envService principal client secret. Optional; required only when using ClientSecretCredential.GOOGLE_CLOUD_PROJECTenvGCP project ID. Recommended to set explicitly in the MCP client env block — may not be inherited from gcloud shell configuration.GCP_BILLING_TABLEenvFully-qualified BigQuery billing export table (project.dataset.table_name). Required for GCP cost queries.GCP_PROJECT_IDenvOverride GCP project ID if the billing dataset lives in a different project than GOOGLE_CLOUD_PROJECT.GCP_BILLING_ACCOUNT_IDenvGCP billing account ID (format: XXXXXX-XXXXXX-XXXXXX). Optional; needed only for budget monitoring.GOOGLE_APPLICATION_CREDENTIALS机密 envPath to GCP service account JSON key file. Optional; falls back to Application Default Credentials (gcloud auth).
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
一览
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月11日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 alexpota 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于3个月前
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“开发者工具”中的其他服务器比较i
- 星标数多于此分类中其他 5755 个服务器的 69%
- 发布到注册中心的时间比此分类中其他 5755 个服务器的 15% 更新
- 基础检查结果等于或优于此分类中其他 5755 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Cloudscope 安全吗?
它在 2 项适用的基础检查中通过了 2 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:AZURE_CLIENT_SECRET, GOOGLE_APPLICATION_CREDENTIALS
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于3个月前,最新版本(0.3.3)于6个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
有什么可以替代它?
同一分类中有:REA, Netdata, Front-End Checklist
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Netdata
Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.
Front-End Checklist
Review frontend code and live pages against 386 quality-gated web development rules.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
CloudScope MCP
Ask your AI about your cloud bill.
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
| Service | Cost | % |
|------------------|----------|------|
| Virtual Machines | $2,140 | 49.6% |
| App Service | $890 | 20.6% |
| Storage | $612 | 14.2% |
| Redis Cache | $410 | 9.5% |
| Networking | $260 | 6.0% |
## 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
| Resource | Type | $/month |
|-----------------------|-------------|---------|
|
orphaned-osdisk-01| Managed Disk| $63 |
|
old-lb-ip| Public IP | $31 |
## Budget Status
prod-budget— 78% used, $4,312 / $5,500, on track (2 days left).
## Recommended Actions
1. Delete
orphaned-osdisk-01(unattached 40 days) → $63/month
2. Tear down
staging-slot-2if staging is idle → ~$280/month
3. 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
| Provider | Status |
|---|---|
| Azure | ✅ Supported |
| GCP | ✅ Supported |
| AWS | Use AWS's official server |
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:
{
"mcpServers": { "cloudscope": { "command": "npx", "args": ["-y", "cloudscope-mcp"] } } }
To target a specific subscription, add an env block:
{
"mcpServers": { "cloudscope": { "command": "npx", "args": ["-y", "cloudscope-mcp"], "env": { "AZURE_SUBSCRIPTION_ID": "your-subscription-id" } } } }
Advanced: Service Principal (CI/CD & automated environments)
| Variable | Description |
|---|---|
AZURE_TENANT_ID | Azure AD tenant ID |
AZURE_CLIENT_ID | App registration client ID |
AZURE_CLIENT_SECRET | App registration client secret |
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.
{
"mcpServers": { "cloudscope": { "command": "npx", "args": ["-y", "cloudscope-mcp"], "env": { "GOOGLE_CLOUD_PROJECT": "my-project", "GCP_BILLING_TABLE": "my-project.my_dataset.gcp_billing_export_resource_v1_XXXXXX" } } } }
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.
| Variable | Description | Required |
|---|---|---|
GOOGLE_CLOUD_PROJECT | GCP project ID | Yes |
GCP_BILLING_TABLE | Fully-qualified BigQuery table (project.dataset.table) | Yes |
GCP_PROJECT_ID | Override project ID if different from GOOGLE_CLOUD_PROJECT | No |
GCP_BILLING_ACCOUNT_ID | Billing account ID for budget monitoring | No |
GOOGLE_APPLICATION_CREDENTIALS | Path to service account JSON key file | No |
Both Providers
{
"mcpServers": { "cloudscope": { "command": "npx", "args": ["-y", "cloudscope-mcp"], "env": { "AZURE_SUBSCRIPTION_ID": "your-subscription-id", "GOOGLE_CLOUD_PROJECT": "my-project", "GCP_BILLING_TABLE": "my-project.my_dataset.gcp_billing_export_resource_v1_XXXXXX" } } } }
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
git clone https://github.com/alexpota/cloudscope-mcp.git
cd cloudscope-mcp npm install npm run build npm test npx @modelcontextprotocol/inspector node dist/index.js
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
| Tool | Description | Key Parameters |
|---|---|---|
get_cost_summary | Spending breakdown by service, group, or region | start_date, end_date, group_by |
get_cost_by_tag | Costs grouped by a tag/label key | tag_key, start_date, end_date |
compare_periods | Side-by-side cost comparison of two date ranges | period_a_start/end, period_b_start/end |
top_spending_resources | Most expensive individual resources | days, limit |
get_cross_subscription_costs | Combined costs across Azure subscriptions | subscription_ids, start_date, end_date |
get_cross_project_costs | Combined costs across GCP projects | project_ids, start_date, end_date |
Monitoring
| Tool | Description | Key Parameters |
|---|---|---|
detect_anomalies | Find spending spikes vs previous period | days, threshold |
check_budgets | Budget status, current spend, projected overage | _(none)_ |
get_cost_forecast | Predict spending based on current trends | days |
Optimization
| Tool | Description | Key Parameters |
|---|---|---|
list_recommendations | Cost optimization suggestions (Azure Advisor / GCP Recommender) | category |
find_idle_resources | Provisioned but unused resources with cost estimates | _(none)_ |
find_untagged_resources | Resources with no tags/labels (cost attribution gaps) | _(none)_ |
Utility
| Tool | Description | Key Parameters |
|---|
| get_current_date | Today's date and current/previous month