cloudscope-mcp
CloudScope MCP
向您的 AI 询问您的云账单。
安装
Related MCP server: Azure FinOps Elite
功能介绍
CloudScope 为 AI 助手提供对您的 Azure 成本数据的只读访问权限。通过自然语言询问支出情况、查找异常、获取优化建议并预测下个月的账单。
支持的提供商
提供商 | 状态 |
Azure | ✅ 已支持 |
GCP | 即将推出 |
AWS | 使用 AWS 官方服务器 |
前置要求
已安装 Azure CLI 并已登录 (
az login)您的订阅 ID (
az account show --query id -o tsv)订阅上的 成本管理读取者 (Cost Management Reader) 角色
配置
添加到您的 MCP 客户端配置 (claude_desktop_config.json、Cursor 设置等):
{
"mcpServers": {
"cloudscope": {
"command": "npx",
"args": ["-y", "cloudscope-mcp"],
"env": {
"AZURE_SUBSCRIPTION_ID": "your-subscription-id"
}
}
}
}本地开发无需服务主体。DefaultAzureCredential 会自动获取您的 az login 会话。
变量 | 描述 |
| Azure AD 租户 ID |
| 应用注册客户端 ID |
| 应用注册客户端密钥 |
在上述 env 块中与 AZURE_SUBSCRIPTION_ID 一起设置这些变量。
工具
工具 | 描述 | 关键参数 |
| 按服务、组或区域划分的支出明细 |
|
| 查找与上一周期相比的支出激增情况 |
|
| Azure Advisor 成本优化建议 |
|
| 基于当前趋势预测支出 |
|
| 预算状态、当前支出、预计超支情况 | (无) |
| 两个日期范围的成本并排比较 |
|
| 最昂贵的单个资源 |
|
| 今天日期及当前/上个月的边界 | (无) |
示例提示词
“上个月 Azure 花了多少钱?”
“显示过去 7 天按资源组划分的支出”
“本周有任何成本异常吗?”
“下个月 Azure 的费用是多少?”
“向我展示成本优化建议”
“哪些服务的支出增长最大?”
安全性
CloudScope 是只读的。它无法创建、修改或删除任何 Azure 资源。所有 API 调用均使用“成本管理读取者”权限,且没有写入权限。
常见问题
这会修改我的 Azure 资源吗? 不会。仅限只读访问。
我需要服务主体吗? 不需要。az login 适用于本地使用。
GCP 怎么样? 即将推出。
Azure 成本管理 API 收费吗? 不收费。它是免费的。
开发
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许可证
Available Tools
15 toolscheck_budgetsBudget StatusARead-onlyIdempotent
Check budget status: current spend vs limit, percentage used, forecast, and overage risk. For GCP, requires GCP_BILLING_ACCOUNT_ID to be set.
Inputs: provider.
compare_periodsCompare Cost PeriodsARead-onlyIdempotent
Compare costs between two date ranges, showing per-service absolute and percentage changes.
Inputs: period_a_start (required), period_a_end (required), period_b_start (required), period_b_end (required), +2 more.
detect_anomaliesDetect Cost AnomaliesARead-onlyIdempotent
Compares daily spending over the last N days against the prior N days to find cost spikes. Returns a list of services where spending increased above the threshold percentage, sorted by increase amount. Each entry includes service name, previous cost, current cost, percentage change, and absolute change in USD. Returns an empty list if no anomalies found. Use this when the user asks about unexpected cost increases, billing surprises, or wants to know if anything changed recently.
Inputs: provider, days, threshold.
find_idle_resourcesFind Idle ResourcesARead-onlyIdempotent
Finds cloud resources that are provisioned but not actively used — unattached disks, orphaned network interfaces, unused IPs, idle VMs, and empty compute plans. Returns each resource with its name, type, resource group/project, reason it is idle, and estimated monthly cost in USD. Returns an empty list if no idle resources are found. Use this when the user asks about waste, idle or unused resources, cleanup opportunities, or wants to find resources to delete to reduce costs.
Inputs: provider.
find_untagged_resourcesFind Untagged ResourcesARead-onlyIdempotent
Finds resources that have no tags or labels applied. Returns each resource with its name, type, resource group/project, and location. Untagged resources cannot be attributed to teams or projects, making cost allocation and chargeback impossible. Returns an empty list if all resources are tagged. Use this when the user asks about tagging compliance, governance, cost attribution gaps, or wants to identify resources that need tags or labels.
Inputs: provider.
get_cost_by_tagCost by TagARead-onlyIdempotent
Breaks down costs by a specific tag or label key such as team, environment, or project. Returns a sorted table with each tag value, cost in USD, and percentage of total. Includes a total row and daily average. Returns an error if the date range is invalid or no tagged costs exist. Use this when the user asks about costs per team, per environment, cost allocation, chargeback, or wants to understand spending by any custom tag or label.
Inputs: tag_key (required), provider, start_date, end_date.
get_cost_forecastCost ForecastARead-onlyIdempotent
Projects future cloud spending for the next N days using a linear trend based on the last 30 days of actual costs. Returns the forecast period dates, projected total cost in USD, average daily projected cost, and the confidence basis (number of historical days used). Use this when the user asks "how much will I spend this month", wants to predict upcoming bills, or needs to plan budgets. Returns an error if insufficient historical data exists.
Inputs: provider, days.
get_cost_summaryCloud Cost SummaryARead-onlyIdempotent
Returns a cost breakdown for a date range grouped by service, resource group, tag, or region. Defaults to current month if dates are omitted. Output includes a sorted table with each group name, cost in USD, and percentage of total. Includes a total row, daily average, and collapses groups beyond the top 10 into an "Other" row. Returns an error if the date range is invalid. Use this when the user asks "how much am I spending", "what costs the most", "show me my cloud bill", or wants a spending overview.
Inputs: provider, start_date, end_date, group_by.
get_cross_project_costsCross-Project Cost SummaryARead-onlyIdempotent
Returns a combined cost breakdown across multiple GCP projects sorted by total spend. Each project shows its name, total cost in USD, and percentage of the combined total. Use this when the user asks about costs across all GCP projects, wants to compare project spending, or needs an organization-wide cost overview.
Inputs: provider (required), project_ids, start_date, end_date.
get_cross_subscription_costsCross-Subscription Cost SummaryARead-onlyIdempotent
Returns a combined cost breakdown across multiple Azure subscriptions sorted by total spend. Each subscription shows its name, total cost in USD, and percentage of the combined total. Handles partial failures gracefully — if some subscriptions are inaccessible, returns results for the rest with a warning. Use this when the user asks about costs across all subscriptions, wants to compare subscription spending, or needs an organization-wide cost overview.
Inputs: provider (required), subscription_ids, start_date, end_date.
get_current_dateCurrent DateARead-onlyIdempotent
Returns today's date and the start/end of current and previous months in YYYY-MM-DD format
Inputs: no named parameters.
list_projectsList GCP ProjectsARead-onlyIdempotent
Returns all GCP projects the current credential can access, with name, ID, and state. Shows which project is currently active. Use this when the user has multiple GCP projects and wants to see which ones are available, or before calling get_cross_project_costs.
Inputs: provider (required).
list_recommendationsCost Optimization RecommendationsARead-onlyIdempotent
Fetches cost-saving recommendations filtered by category. Returns a list of recommendations each containing: title, category, impact level (high/medium/low), estimated annual savings in USD, affected resource ID, and a short description of the suggested action. Returns an empty list if no recommendations exist for the selected category. Use this when the user wants to reduce costs, find waste, or optimize resource usage.
Inputs: provider, category.
list_subscriptionsList Azure SubscriptionsARead-onlyIdempotent
Returns all Azure subscriptions the current credential can access, with name, ID, and state. Shows which subscription is currently active. Use this when the user has multiple subscriptions and wants to see which ones are available, or to confirm which subscription is being queried.
Inputs: provider (required).
top_spending_resourcesTop Spending ResourcesARead-onlyIdempotent
Find the N most expensive individual resources over a time period. On GCP, requires the detailed billing export for resource-level data.
Inputs: provider, days, limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Most tools are clearly distinct by their focus (cost summary, tag breakdown, cross-project, anomalies, etc.). A minor potential confusion exists between get_cost_summary and get_cost_by_tag, but descriptions clarify the grouping dimension.
The majority of tools follow a verb_noun pattern (check_, compare_, detect_, find_, get_, list_). The exception is 'top_spending_resources' which uses a less standard verb form, but overall the pattern is consistent.
15 tools is well-scoped for a cloud cost management server, covering summary, breakdowns, forecasts, anomalies, optimization, and utilities without being overwhelming.
Core workflows are covered: cost review, forecast, anomalies, recommendations, and resource waste detection. Missing are write operations like budget creation or tagging, but the server appears read-only and covers its intended domain well.
Maintenance
Related MCP Connectors
Hosted MCP server for AWS cloud spend: service breakdowns, anomalies, savings and forecasts.
- Costory FinOps MCPDeprecatedio.costory
FinOps harness MCP: allocated cloud, data and LLM bills. Build on it or switch. Cloud read-only.
Hosted MCP server for LLM cost estimation, model comparison, and budget-aware routing.
Cloudflare Workers MCP server: ai-cost-optimizer
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server for unified cost tracking and analysis across AWS, OpenAI, and Anthropic. It enables users to query expenditures, compare costs across providers, and analyze usage trends through natural language.10MIT
- AlicenseNot gradedqualityDmaintenanceProduction-grade MCP server for enterprise Azure cost optimization, enabling spend anomaly detection, multi-tenant auditing, budget validation, and compliance-aware recommendations.1MIT
- AlicenseNot gradedqualityDmaintenanceAnalyzes Azure cloud costs, audits for waste, and provides budget insights via natural language through a secure local MCP server.35 PyPI2MIT
- AlicenseAqualityBmaintenanceLocal-first FinOps MCP server. Ask about your AWS, Azure, GCP, and SaaS costs in plain English. Anomaly detection, rightsizing, idle-resource cleanup, and Jira/Linear ticketing. Credentials never leave your machine.1020Apache 2.0