Prototyp · Vorschau: alle Server aus der offiziellen Registry, alle 30 Minuten synchronisiert. Bewertungen und Benutzerkonten folgen in einem späteren Schritt.
PopNx MCPMCP-Server für alle, die KI nutzen · in einfachen Worten erklärt

Azure FinOps MCP Server

von raviteja-pegataVersion 0.1.1i★ –iLäuft auf deinem Computer
Name in der Registryio.github.raviteja-pegata/azure-finops-mcp

Installieren

Überblick

Beschreibung vom Entwickler (englisches Original)

Azure FinOps MCP: cost, budgets, forecasting and optimization for Claude, VS Code and Cursor.

Die drei Säulen von PopNx MCP

Diese drei werden nie zu einer Punktzahl zusammengefasst: Meinungen, Messungen und Beliebtheit sind verschiedene Dinge.

Was du damit machen kannst

Für diesen Server haben wir noch keine Zusammenfassung in einfacher Sprache geschrieben. Unten stehen die Fakten, die wir aus der Registry gelesen haben.

  • Verbindung: Läuft auf deinem Computer
  • Transport: stdio
  • Kategorie: Entwicklertools
  • Das musst du eintragen: AZURE_ALLOWED_SUBSCRIPTIONS, AZURE_DEFAULT_SUBSCRIPTION

Installation

Wähle die KI-App, die du nutzt, und kopiere die Einstellungen.

Bevor du installierst

  • Basischecks: 1 von 1 bestanden
  • Läuft auf deinem Computer mit den Rechten deines Benutzerkontos (Dateien, Netzwerk, Apps).
  • Das trägst du selbst ein: AZURE_ALLOWED_SUBSCRIPTIONS, AZURE_DEFAULT_SUBSCRIPTION, FINOPS_CACHE_TTL_SECONDS

Du brauchst

  • PyPIuv für Python installiert (für den Befehl uvx)

Welche App nutzt du?

Wähle oben deine App. Wir merken sie uns, damit der Button beim nächsten Mal „In … installieren“ anzeigt.

Öffne Claude Desktop → Settings → Developer → Edit Config und füge dies in claude_desktop_config.json ein

{
  "mcpServers": {
    "azure-finops": {
      "command": "uvx",
      "args": [
        "azure-finops-mcp"
      ],
      "env": {
        "AZURE_ALLOWED_SUBSCRIPTIONS": "your-value",
        "AZURE_DEFAULT_SUBSCRIPTION": "your-value",
        "FINOPS_CACHE_TTL_SECONDS": "your-value"
      }
    }
  }
}

Führe das in deinem Terminal aus

claude mcp add azure-finops --env AZURE_ALLOWED_SUBSCRIPTIONS=your-value --env AZURE_DEFAULT_SUBSCRIPTION=your-value --env FINOPS_CACHE_TTL_SECONDS=your-value -- uvx azure-finops-mcp

Trag die leeren Werte ein, bevor du ihn startest.

In Cursor öffnen

Oder kopier die Einstellungen selbst

In .cursor/mcp.json in deinem Projekt oder in ~/.cursor/mcp.json einfügen

{
  "mcpServers": {
    "azure-finops": {
      "command": "uvx",
      "args": [
        "azure-finops-mcp"
      ],
      "env": {
        "AZURE_ALLOWED_SUBSCRIPTIONS": "your-value",
        "AZURE_DEFAULT_SUBSCRIPTION": "your-value",
        "FINOPS_CACHE_TTL_SECONDS": "your-value"
      }
    }
  }
}

Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.

In VS Code öffnen

Oder kopier die Einstellungen selbst

In .vscode/mcp.json in deinem Projekt einfügen

{
  "servers": {
    "azure-finops": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "azure-finops-mcp"
      ],
      "env": {
        "AZURE_ALLOWED_SUBSCRIPTIONS": "your-value",
        "AZURE_DEFAULT_SUBSCRIPTION": "your-value",
        "FINOPS_CACHE_TTL_SECONDS": "your-value"
      }
    }
  }
}

Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.

Dieser Server läuft auf deinem Computer, und ChatGPT kann sich nur mit Servern im Internet verbinden. Wähle eine andere App.

Deine Auswahl bleibt in einem Cookie auf diesem Gerät; kein Konto nötig.

Werte, die du selbst einträgst

  • AZURE_ALLOWED_SUBSCRIPTIONS erforderlich env
    Comma-separated list of Azure subscription IDs this server may query
  • AZURE_DEFAULT_SUBSCRIPTION erforderlich env
    Default subscription ID used when none is specified in a query (must be in AZURE_ALLOWED_SUBSCRIPTIONS)
  • FINOPS_CACHE_TTL_SECONDS env
    TTL for cost query cache in seconds (default: 900)

Diese Einstellungen werden aus dem Registry-Eintrag des Entwicklers erzeugt. Wenn in der README etwas anderes steht, folge der README.

Was er kann

Läuft auf deinem Computer; die Tool-Liste erscheint nach der Installation in deiner KI-App.

Basischecksi

Wir prüfen Informationen, die jeder sehen kann; den Code haben wir nicht gelesen. Checks, die nicht zutreffen, werden nicht mitgezählt. · Geprüft am 8. Nov. 2026

  • ✓ Bestanden

    Entwickler passt zum Repo

    Der Registry-Name wurde mit dem GitHub-Konto raviteja-pegata bestätigt, dem das Repo gehört

  • … Noch nicht geprüft

    Wird noch gepflegt

    Dieses Repo haben wir noch nicht von GitHub gelesen

  • … Noch nicht geprüft

    Hat eine Lizenz

    Dieses Repo haben wir noch nicht von GitHub gelesen

  • – Nicht zutreffend

    Endpunkt antwortet

    Dieser Server läuft auf deinem Computer; es gibt keinen Endpunkt im Internet

  • – Nicht zutreffend

    Anmeldung mit OAuth

    Läuft auf deinem Computer und nutzt stattdessen lokale Einstellungen

  • … Noch nicht geprüft

    Keine versteckten Anweisungen in Tool-Beschreibungen

    Läuft auf deinem Computer; Tool-Listen können wir nur von Endpunkten im Internet lesen

Im Vergleich mit anderen in Entwicklertoolsi

  • Mehr Sterne als 0 % der anderen 5555 Server in dieser Kategorie
  • Neuer in der Registry veröffentlicht als 15 % der anderen 5555 Server in dieser Kategorie
  • Basischecks gleich gut wie oder besser als bei 100 % der anderen 5555 Server in dieser Kategorie

Verglichen mit allen aktiven Servern dieser Kategorie in der Registry. Sterne zählen nur, wenn dem Herausgeber das Repo gehört.

Häufige Fragen

Ist Azure FinOps MCP Server sicher?

Er hat 1 von 1 zutreffenden Basischecks bestanden. Den Code haben wir nicht gelesen. Bevor du einen Schlüssel oder Token hinzufügst, sieh nach, welche Zugriffe der Server verlangt, und nutze einen Schlüssel, der nur die Berechtigungen hat, die du brauchst.

Welche Schlüssel oder Codes braucht er?

Das musst du eintragen: AZURE_ALLOWED_SUBSCRIPTIONS, AZURE_DEFAULT_SUBSCRIPTION

Läuft er auf meinem Computer oder in der Cloud?

Er läuft auf deinem Computer. Deine KI-App startet ihn bei Bedarf, und die Daten laufen nicht über die Server des Entwicklers (außer der Server ruft selbst einen Onlinedienst auf).

Wird er noch gepflegt?

Das GitHub-Repo wurde zuletzt – geändert, und die neueste Version (0.1.1) kam vor 6 Monaten in die Registry.

Welche Apps können ihn nutzen?

Apps, die MCP unterstützen, etwa Claude Desktop, Claude Code, Cursor und VS Code. Außerdem brauchst du Python (uv) auf deinem Computer.

Was kann ich stattdessen nutzen?

In derselben Kategorie: GitHub, Desktop Commander, Cloudflare MCP

Alternativen

Server derselben Kategorie von anderen Entwicklern, sortiert nach Sternen.

So liest du eine Karte:↓ Downloads pro Wochei★ GitHub-SterneiDrei Säulen: Bewertungen · Checks · NutzungiAktualisiert = neueste Version in der Registry veröffentlichti

GitHub

Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

von githubWeit verbreitet★ 34.245Aktualisiert vor 5 Tagen

Computer oder Cloud

Desktop Commander

MCP server for terminal commands, file operations, and process management

von wonderwhy-erWeit verbreitet↓ 709.596/Wo.★ 10.225Aktualisiert vor 17 Tagen

Läuft auf deinem Computer

Cloudflare MCP

Cloudflare MCP servers

von cloudflareWeit verbreitet★ 4446Aktualisiert vor 14 Monaten

Läuft in der Cloud✓ mcp.cloudflare.com

README vom Entwickler

README öffnen

Unverändert aus dem Repo des Entwicklers übernommen. PopNx MCP hat den Inhalt weder geprüft noch empfiehlt es ihn. HTML, Bilder und Skripte wurden entfernt. Links führen von dieser Website weg.

Azure FinOps MCP Server

An MCP server that gives LLM clients (Claude Desktop, Claude Code, VS Code, Cursor) conversational access to Azure cost analysis, budget tracking, forecasting, and resource optimization — across multiple subscriptions.

Tools

Discovery
ToolPurpose
list_subscriptionsList allowed subscriptions with friendly names
Cost Analysis
ToolPurpose
get_cost_summaryTotal cost for a date range (single sub)
get_cost_by_dimensionCost breakdown by service / RG / location / meter
get_cost_by_tagCost grouped by tag value (showback/chargeback)
get_month_to_date_costCurrent-month spend (single sub)
get_portfolio_month_to_date_costCurrent-month spend across ALL subs
Budgets
ToolPurpose
get_budget_statusBudget consumption for a single sub
get_portfolio_budget_statusBudget status across ALL subs
Optimization
ToolPurpose
find_idle_resourcesUnattached disks, stranded IPs/NICs, stopped VMs
find_idle_resources_portfolioIdle resources across ALL subs
get_advisor_recommendationsAzure Advisor cost recs with annual savings
get_vm_utilizationCPU stats to validate rightsizing
Forecasting
ToolPurpose
forecast_month_end_spendPredicted month-end cost (single sub)
forecast_portfolio_month_end_spendPredicted month-end cost across ALL subs

Quick Install

pip install azure-finops-mcp

Then add it to your MCP client config using the installed command — no cloning needed:

{

"mcpServers": { "azure-finops": { "command": "azure-finops-mcp", "env": { "AZURE_ALLOWED_SUBSCRIPTIONS": "sub-id-1,sub-id-2", "AZURE_DEFAULT_SUBSCRIPTION": "sub-id-1" } } } }

See the Client Configuration section below for per-client config file locations.


Prerequisites

  • Python 3.11+
  • Azure CLI installed and logged in (az login)

Azure RBAC Permissions

The identity running this server (your user, a service principal, or a managed identity) needs three roles assigned on each subscription you want to query:

RolePurpose
Cost Management ReaderCost analysis, forecasting, budget queries
ReaderResource inventory via Resource Graph
Monitoring ReaderVM utilization metrics via Azure Monitor
Assign via Azure CLI
SUBSCRIPTION_ID="<your-subscription-id>"

PRINCIPAL_ID=" "

for ROLE in "Cost Management Reader" "Reader" "Monitoring Reader"; do az role assignment create \ --assignee "$PRINCIPAL_ID" \ --role "$ROLE" \ --scope "/subscriptions/$SUBSCRIPTION_ID" done

Repeat for each subscription listed in AZURE_ALLOWED_SUBSCRIPTIONS.

Local development (your own user)
az login

az account set --subscription " "

Check your object ID

az ad signed-in-user show --query id -o tsv

Your user already has these roles if you're a subscription Owner or Contributor. If not, ask your Azure admin to assign them.

Managed Identity (Container Apps deployment)

After deploying with deploy.sh, the script automatically assigns these three roles to the Container App's system-assigned managed identity on each allowed subscription. No credentials or secrets are needed — DefaultAzureCredential picks up the managed identity automatically at runtime.

Install

git clone <your-repo-url> azure-finops-mcp

cd azure-finops-mcp

python3 -m venv .venv source .venv/bin/activate # Windows: .venv\Scripts\activate pip install -e .

cp .env.example .env

Edit .env: set your subscription IDs

Configure .env

# Required: comma-separated subscription IDs the server may query

AZURE_ALLOWED_SUBSCRIPTIONS=sub-id-1,sub-id-2,sub-id-3

Required: default subscription (must be in the list above)

AZURE_DEFAULT_SUBSCRIPTION=sub-id-1

Test with MCP Inspector

The Inspector is a web UI that lets you call tools interactively and see raw JSON-RPC messages. Always test here before connecting to Claude Desktop.

# Use the venv's python3 explicitly — the Inspector launches a subprocess

and needs the binary that has mcp + azure SDKs installed.

npx @modelcontextprotocol/inspector $(which python3) -m azure_finops_mcp.server

In the Inspector UI:

  1. Verify Transport Type is STDIO
  2. Click Connect — should succeed and show "azure-finops" as the server name
  3. Navigate to Tools, click List Tools — you should see all 15 tools
  4. Try list_subscriptions first (no arguments needed)
  5. Try get_month_to_date_cost (no arguments needed — uses default sub)

Client Configuration

Find the absolute path to your venv's Python first — you'll need it in every config below:

# With your venv activated:

which python3

e.g. /Users/yourname/azure-finops-mcp/.venv/bin/python3


Claude Desktop

Edit claude_desktop_config.json:

OSPath
macOS~/Library/Application Support/Claude/claude_desktop_config.json
Windows%APPDATA%\Claude\claude_desktop_config.json
Linux~/.config/Claude/claude_desktop_config.json
{

"mcpServers": { "azure-finops": { "command": "/absolute/path/to/.venv/bin/python3", "args": ["-m", "azure_finops_mcp.server"], "env": { "AZURE_ALLOWED_SUBSCRIPTIONS": "sub-1,sub-2,sub-3", "AZURE_DEFAULT_SUBSCRIPTION": "sub-1", "FINOPS_CACHE_TTL_SECONDS": "900" } } } }

Restart Claude Desktop. A tool icon in the chat input confirms the server connected.


VS Code (GitHub Copilot / Agent mode)

Create .vscode/mcp.json in your workspace (or add to user settings.json under "mcp"):

{

"servers": { "azure-finops": { "type": "stdio", "command": "/absolute/path/to/.venv/bin/python3", "args": ["-m", "azure_finops_mcp.server"], "env": { "AZURE_ALLOWED_SUBSCRIPTIONS": "sub-1,sub-2,sub-3", "AZURE_DEFAULT_SUBSCRIPTION": "sub-1", "FINOPS_CACHE_TTL_SECONDS": "900" } } } }

Requires VS Code 1.99+ with the GitHub Copilot extension. Open the Chat panel, switch to Agent mode, and the azure-finops tools will appear automatically.


Cursor

Create or edit ~/.cursor/mcp.json:

{

"mcpServers": { "azure-finops": { "command": "/absolute/path/to/.venv/bin/python3", "args": ["-m", "azure_finops_mcp.server"], "env": { "AZURE_ALLOWED_SUBSCRIPTIONS": "sub-1,sub-2,sub-3", "AZURE_DEFAULT_SUBSCRIPTION": "sub-1", "FINOPS_CACHE_TTL_SECONDS": "900" } } } }

Or add it via Cursor Settings → MCP → Add new global MCP server. Restart Cursor. The tools appear in Cursor's Agent/Composer panel.


Claude Code (CLI)
claude mcp add azure-finops \

/absolute/path/to/.venv/bin/python3 \ -m azure_finops_mcp.server \ -e AZURE_ALLOWED_SUBSCRIPTIONS=sub-1,sub-2,sub-3 \ -e AZURE_DEFAULT_SUBSCRIPTION=sub-1


Remote HTTP (after deploying to Azure Container Apps)

All clients support connecting to the deployed server over HTTP — no local Python needed:

Claude Desktop / Cursor — add to the same config files above:

{

"mcpServers": { "azure-finops": { "type": "http", "url": "https:// /mcp" } } }

VS Code — in .vscode/mcp.json:

{

"servers": { "azure-finops": { "type": "http", "url": "https:// /mcp" } } }

Claude Web — Settings → Integrations → Add → https:// /mcp

Example Prompts

Try these once connected:

  • "What are our allowed subscriptions?"
  • "What's our total month-to-date spend across all subscriptions?"
  • "Which 10 services cost the most on our prod subscription last month?"
  • "Break down last quarter's spend by the costcenter tag."
  • "Are any budgets close to breaching?"
  • "Show me idle resources across all our subscriptions."
  • "What does Azure Advisor recommend for cost savings?"
  • "Is VM my-analytics-vm actually being used? Check its CPU over 14 days."
  • "Compare our forecast for this month against our budgets."

Architecture

Claude Desktop ◄─┐

VS Code ◄─┤ Cursor ◄─┼──stdio / HTTP──► Azure FinOps MCP Server ◄──REST──► Azure APIs Claude Code ◄─┤ │ Claude Web ◄─┘ ├── config.py ← env + allowlist ├── azure_clients.py ← shared credential ├── cache.py ← TTL cache ├── server.py ← FastMCP + registration └── tools/ ├── subscriptions ← discovery ├── cost ← queries + portfolio ├── budgets ← budget status ├── optimization ← idle + advisor + metrics └── forecast ← predictions

Key design decisions

Narrow tools over flexible tools. The LLM picks among well-named tools far better than it constructs complex query objects. 15 purpose-built tools beats 3 configurable ones.

Subscription allowlist. A frozenset loaded from env. Every tool calls resolve_subscription() which refuses any ID not in the list. Prevents the LLM from querying unauthorized subscriptions — important for prompt injection defense.

Portfolio tools catch per-sub errors. When querying 5+ subscriptions, one might have different RBAC or be in a weird state. Portfolio tools (get_portfolio_*) wrap each sub in try/except so partial results are returned with errors listed separately.

Cache on Cost Management only. Cost queries are expensive and rate-limited (~30 req/min per tenant). Cost data updates hourly at best. Default 15-minute TTL trades almost nothing in freshness for significant rate-limit headroom. Resource Graph and Advisor are fast and cheap — no caching needed.

Structured returns, not prose. Tools return dicts with columns/rows/metadata. The LLM narrates them naturally. This avoids encoding English into tool responses (which makes them brittle to prompt changes).

Deploying to Azure (Remote Mode)

For team-wide access, deploy as a remote HTTP server:

  1. Transport swap in server.py:
   mcp.run(transport="streamable-http", host="0.0.0.0", port=8000)
  1. Dockerfile:
   FROM python:3.12-slim

WORKDIR /app COPY . . RUN pip install --no-cache-dir -e . CMD ["azure-finops-mcp"]

  1. Deploy to Azure Container Apps with a user-assigned managed identity.
  1. Grant RBAC to the managed identity (same 3 roles: Cost Management Reader, Reader, Monitoring Reader) on each subscription.
  1. Add auth via APIM or Azure Front Door + Entra ID. MCP supports OAuth for remote servers.
  1. DefaultAzureCredential picks up the managed identity automatically — no code changes needed.

Troubleshooting

ProblemFix
DefaultAzureCredential auth errorsRun az login and verify with az account show
429 throttling on Cost ManagementIncrease FINOPS_CACHE_TTL_SECONDS
Empty budget listBudgets must exist in the portal — the API doesn't create them
find_idle_resources errorsYou need Reader RBAC at subscription scope

| Inspector "Connection Error" | Use absolute path to venv's python3 in Command f

Nur der Anfang wird gezeigt; den Rest findest du im Repo

PopNx fragen