Sponsored by Deepsite.site

CloudScope MCP

Created By
alexpotaa month ago
Cloud cost management MCP server for Azure. Ask your AI about your cloud bill.
Overview

CloudScope MCP

Ask your AI about your cloud bill.

npm version MCP Registry Node.js TypeScript License: MIT

Install

Claude CodeCursorVS Code
claude mcp add cloudscope -- npx -y cloudscope-mcpInstallInstall

Azure is auto-detected from your az login session. GCP requires BigQuery billing export setup (see below).

What It Does

CloudScope gives AI assistants read-only access to your Azure and GCP cost data. Ask about spending, find anomalies, get optimization recommendations, and forecast next month's bill — all through natural language. Works across multiple subscriptions/projects, supports tag-based cost allocation, and includes five guided-workflow prompts for common FinOps tasks.

Supported Providers

ProviderStatus
Azure✅ Supported
GCP✅ Supported
AWSUse 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)
VariableDescription
AZURE_TENANT_IDAzure AD tenant ID
AZURE_CLIENT_IDApp registration client ID
AZURE_CLIENT_SECRETApp 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.

VariableDescriptionRequired
GOOGLE_CLOUD_PROJECTGCP project IDYes
GCP_BILLING_TABLEFully-qualified BigQuery table (project.dataset.table)Yes
GCP_PROJECT_IDOverride project ID if different from GOOGLE_CLOUD_PROJECTNo
GCP_BILLING_ACCOUNT_IDBilling account ID for budget monitoringNo
GOOGLE_APPLICATION_CREDENTIALSPath to service account JSON key fileNo

Both Providers

{
  "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"
      }
    }
  }
}

Azure is auto-detected from az login. Add AZURE_SUBSCRIPTION_ID to target a specific subscription.

Tools

All tools accept a provider parameter (azure or gcp). The default is auto-detected based on which providers are configured.

Cost Analysis

ToolDescriptionKey Parameters
get_cost_summarySpending breakdown by service, group, or regionstart_date, end_date, group_by
get_cost_by_tagCosts grouped by a tag/label keytag_key, start_date, end_date
compare_periodsSide-by-side cost comparison of two date rangesperiod_a_start/end, period_b_start/end
top_spending_resourcesMost expensive individual resourcesdays, limit
get_cross_subscription_costsCombined costs across Azure subscriptionssubscription_ids, start_date, end_date
get_cross_project_costsCombined costs across GCP projectsproject_ids, start_date, end_date

Monitoring

ToolDescriptionKey Parameters
detect_anomaliesFind spending spikes vs previous perioddays, threshold
check_budgetsBudget status, current spend, projected overage(none)
get_cost_forecastPredict spending based on current trendsdays

Optimization

ToolDescriptionKey Parameters
list_recommendationsCost optimization suggestions (Azure Advisor / GCP Recommender)category
find_idle_resourcesProvisioned but unused resources with cost estimates(none)
find_untagged_resourcesResources with no tags/labels (cost attribution gaps)(none)

Utility

ToolDescriptionKey Parameters
get_current_dateToday's date and current/previous month bounds(none)
list_subscriptionsAzure subscriptions with active indicator(none)
list_projectsGCP projects with active indicator(none)

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 → Connectorscloudscope.

PromptDescriptionArguments
monthly-cost-reviewComplete monthly review: spending, last-month comparison, anomalies, top resources, budgets, forecast, savings opportunitiesprovider (optional)
waste-auditFind wasted spend: top resources, optimization recommendations, at-risk budgets, total potential savingsprovider (optional)
cost-spike-investigationRoot-cause analysis for a cost increase: which services, which resources, trend vs one-time, recommended actionsdays (optional), provider (optional)
executive-summaryBrief non-technical cost summary for leadership: spend, trend, budget status, top drivers, forecast, key recommendationprovider (optional)
chargeback-reportCost allocation by tag/label key for chargeback: spending per value, untagged resources, tagged vs untagged split, month-over-monthtag_key (required), provider (optional)

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

License

MIT

Server Config

{
  "mcpServers": {
    "cloudscope": {
      "command": "npx",
      "args": [
        "-y",
        "cloudscope-mcp"
      ],
      "env": {
        "AZURE_SUBSCRIPTION_ID": "your-subscription-id"
      }
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Serper MCP ServerA Serper MCP Server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
WindsurfThe new purpose-built IDE to harness magic
RedisA Model Context Protocol server that provides access to Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Playwright McpPlaywright MCP server
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
ChatWiseThe second fastest AI chatbot™
CursorThe AI Code Editor
Tavily Mcp
DeepChatYour AI Partner on Desktop
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Amap Maps高德地图官方 MCP Server