scstelz/security-investigator/mcp-usage-monitoring

Claude Code and agent skill by scstelz/security-investigator

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Use this skill when asked to monitor, audit, or analyze MCP (Model Context Protocol) server usage in the environment. Triggers on keywords like "MCP usage", "MCP server monitoring", "MCP activity", "Graph MCP", "Sentinel MCP", "Azure MCP", "MCP audit", "tool usage monitoring", "MCP breakdown", "who is using MCP", or when investigating MCP user activity, Graph API calls from MCP servers, or workspace query governance. This skill provides comprehensive MCP server telemetry analysis across Graph MCP, Sentinel MCP, and Azure MCP servers including usage trends, endpoint access patterns, user attribution, cross-server user analysis, sensitive API detection, workspace query governance, and security risk assessment with inline and markdown file reporting.

Install

npx vskill@latest install scstelz/security-investigator/mcp-usage-monitoring

SKILL.md

The same SKILL.md was published earlier as scstelz/security-investigator/mcp-usage-monitoring.

MCP Server Usage Monitoring — Instructions

Purpose

This skill monitors and audits Model Context Protocol (MCP) server usage across your Microsoft Sentinel and Defender XDR environment. MCP servers are AI-powered tools that enable language models to interact with Microsoft security services — and like any privileged access channel, they require monitoring.

What this skill tracks:

MCP ServerTelemetry SourceKey Identifier
Microsoft Graph MCP ServerMicrosoftGraphActivityLogsAppId = e8c77dc2-69b3-43f4-bc51-3213c9d915b4
Sentinel Data Lake MCPCloudAppEventsRecordType 403, Interface = IMcpToolTemplate
Sentinel Triage MCPMicrosoftGraphActivityLogs + SigninLogsAppId = 7b7b3966-1961-47b5-b080-43ca5482e21c ("Microsoft Defender Mcp") — dedicated AppId with full user attribution via delegated cert auth
Azure MCP ServerAzureActivityNo dedicated AppId — uses DefaultAzureCredential
Sentinel Data Lake — Direct KQLCloudAppEventsRecordType 379, Operation = KQLQueryCompleted
Workspace Query Sources (Analytics Tier)LAQueryLogsAll clients querying Log Analytics workspace

What this skill detects:

  • Graph API call volume, trends, and endpoint diversity via MCP
  • Sensitive/high-risk Graph endpoint access (PIM, credentials, Identity Protection)
  • Sentinel workspace query patterns by client application
  • User vs. Service Principal attribution across all MCP channels
  • Cross-server user analysis — identifies users with broadest MCP footprint (multiple server types, highest call volume)
  • Azure ARM operations potentially originating from Azure MCP Server
  • Non-MCP platform query sources for governance context (Sentinel Engine, Logic Apps)
  • Sentinel Data Lake MCP tool usage — tool call breakdown (query_lake, list_sentinel_workspaces, search_tables, etc.), success/failure rates, execution duration, tables accessed via CloudAppEvents (Purview unified audit)
  • MCP-driven vs Direct KQL delineation — distinguishes Data Lake queries initiated via MCP tools (RecordType 403, Interface IMcpToolTemplate) from direct KQL queries (RecordType 379) and Analytics tier queries (LAQueryLogs)
  • Anomalous access patterns: new users, new endpoints, volume spikes, error surges
  • MCP server usage as a proportion of total workspace activity

Extended landscape awareness: Beyond these four actively monitored MCP servers, Microsoft's MCP ecosystem includes 30+ additional servers (Copilot Studio built-in catalog, Power BI, Fabric RTI, Playwright, Security Copilot Agent Creation, and more). See Extended Microsoft MCP Server Landscape for the full catalog, telemetry surfaces, and monitoring expansion priorities.


📑 TABLE OF CONTENTS

  1. [Critical Workflow Rules](#-critical-workflow-rules---read-first-) - Start here!
  2. [Extended MCP Server Landscape](#extended-microsoft-mcp-server-landscape-reference) - Full Microsoft MCP ecosystem catalog
  3. [Output Modes](#output-modes) - Inline chat vs. Markdown file
  4. [Scalability & Token Management](#scalability--token-management) - Guidance for large environments
  5. [Quick Start](#quick-start-tldr) - 10-step investigation pattern
  6. [MCP Usage Score Formula](#mcp-usage-score-formula) - Composite health & risk scoring
  7. [Execution Workflow](#execution-workflow) - Complete 7-phase process
  8. [Sample KQL Queries](#sample-kql-queries) - Validated query patterns
  9. [Report Template](#report-template) - Output format specification
  10. [Proactive Alerting — KQL Data Lake Jobs](#proactive-alerting--kql-data-lake-jobs) - Scheduled anomaly detection
  11. [Known Pitfalls](#known-pitfalls) - Edge cases and false positives
  12. [Error Handling](#error-handling) - Troubleshooting guide
  13. [SVG Dashboard Generation](#svg-dashboard-generation) - Visual dashboard from completed report

⚠️ CRITICAL WORKFLOW RULES - READ FIRST ⚠️

Before starting ANY MCP usage monitoring analysis:

  1. ALWAYS enforce Sentinel workspace selection (see Workspace Selection section below)
  2. ALWAYS ask the user for output mode if not specified: inline chat summary or markdown file report (or both)
  3. ALWAYS ask the user for time range if not specified: default to 30 days, configurable
  4. ALWAYS query all MCP telemetry surfaces — do not skip any MCP server type
  5. ALWAYS include non-MCP workspace context (Sentinel Engine, Logic Apps) for governance proportion analysis
  6. ALWAYS run independent queries in parallel for performance
  7. ALWAYS attribute activity to specific users — never present anonymous aggregates
  8. NEVER conflate non-MCP platform activity with MCP activity — clearly label categories
  9. ALWAYS execute pre-authored queries from [Sample KQL Queries](#sample-kql-queries) EXACTLY as written — substitute only the time range parameter (e.g., ago(30d) → ago(90d)). These queries encode mitigations for schema pitfalls documented in Known Pitfalls. Writing equivalent queries from scratch is ❌ PROHIBITED

Known AppIds Reference
MCP Servers & AI Agents
AppIdServiceTelemetry TableNotes
e8c77dc2-69b3-43f4-bc51-3213c9d915b4Microsoft Graph MCP Server for EnterpriseMicrosoftGraphActivityLogsRead-only Graph API proxy
7b7b3966-1961-47b5-b080-43ca5482e21cSentinel Triage MCP ("Microsoft Defender Mcp")MicrosoftGraphActivityLogs, SigninLogs, AADNonInteractiveUserSignInLogsMicrosoft first-party AppId, same across all tenants. Dedicated AppId — visible in MicrosoftGraphActivityLogs (API calls to /security/* endpoints) and SigninLogs/AADNonInteractiveUserSignInLogs (AppDisplayName = "Microsoft Defender Mcp"). Delegated auth with certificate (ClientAuthMethod=2), full user attribution. Scopes: SecurityAlert.Read.All, SecurityIncident.Read.All, ThreatHunting.Read.All. Target resources: Microsoft Graph, WindowsDefenderATP. No local SPN — display name only visible in SigninLogs. 🔴 Confirmed Feb 2026: Empirical telemetry investigation identified 7b7b3966 as the Triage MCP AppId via MicrosoftGraphActivityLogs + SigninLogs correlation.
253895df-6bd8-4eaf-b101-1381ec4306ebSentinel Platform Services App RegSigninLogsSentinel-hosted MCP platform
04b07795-8ddb-461a-bbee-02f9e1bf7b46Azure MCP Server (local stdio via DefaultAzureCredential → Azure CLI)SigninLogs, AADNonInteractiveUserSignInLogs, LAQueryLogsShared AppId with Azure CLI. In LAQueryLogs, RequestClientApp is empty (not a unique fingerprint). Azure MCP appends `\n\limit N to query text — the only query-level differentiator. Read-only ARM ops don't appear in AzureActivity. 🔄 **Updated Feb 2026:** Previously documented as AppId 1950a258 (AzurePowerShellCredential) with csharpsdk,LogAnalyticsPSClient` — that fingerprint is obsolete; only 1 occurrence found in 30-day lookback.
(none — uses DefaultAzureCredential)Azure MCP Server (local stdio)AzureActivityARM write operations only; read ops not logged. Claims.appid = 04b07795. Inherits cred from Azure CLI/VS Code
(no AppId — Purview unified audit)Sentinel Data Lake MCPCloudAppEventsRecordType 403; Interface IMcpToolTemplate; tools: query_lake, list_sentinel_workspaces, search_tables
Sentinel MCP Collection Endpoints
Endpoint URLCollectionMonitored
https://sentinel.microsoft.com/mcp/data-explorationData Exploration (Data Lake MCP)✅ Phase 3
https://sentinel.microsoft.com/mcp/triageTriage (Triage MCP)✅ Phase 2
https://sentinel.microsoft.com/mcp/security-copilot-agent-creationSecurity Copilot Agent Creation❌ See Landscape
Client Applications
AppIdServiceTelemetry TableNotes
aebc6443-996d-45c2-90f0-388ff96faa56Visual Studio CodeSigninLogsVS Code as MCP client → Sentinel
9ba5f2e4-6bbf-4df2-b19b-7f1bcb926818PowerPlatform-sentinelmcp-ConnectorSigninLogsCopilot Studio → Sentinel MCP
04b07795-8ddb-461a-bbee-02f9e1bf7b46Azure CLI (DefaultAzureCredential)SigninLogs, AADNonInteractiveUserSignInLogs, LAQueryLogsPrimary Azure MCP Server credential path (field-tested Feb 2026). RequestClientApp is empty in LAQueryLogs. Azure MCP appends `\n\limit N to query text. Shared AppId with manual az CLI — disambiguate via query text pattern or session correlation. 🔄 Previously documented as 1950a258` (AzurePowerShellCredential) — that path is obsolete
Portal & Platform Applications (Non-MCP — for context)
AppIdServiceTelemetry TableNotes
80ccca67-54bd-44ab-8625-4b79c4dc7775M365 Security & Compliance Center (Sentinel Portal)LAQueryLogsASI_Portal, ASI_Portal_Connectors — Sentinel Portal backend, NOT an MCP server
95a5d94c-a1a0-40eb-ac6d-48c5bdee96d5Azure Portal — AppInsightsPortalExtensionLAQueryLogsAzure Portal blade for Log Analytics Usage dashboards/workbooks. RequestClientApp = AppInsightsPortalExtension. Executes billing/usage queries (e.g., `Usage \where IsBillable`). NOT MCP, NOT VS Code — runs when user opens Workspace Usage Dashboard in browser. No SPN or app registration in tenant (platform-level first-party app). Not in merill/microsoft-info known apps list.
de8c33bb-995b-4d4a-9d04-8d8af5d59601PowerPlatform-AzureMonitorLogs-ConnectorAADNonInteractiveUserSignInLogs, LAQueryLogsLogic Apps → Log Analytics (NOT MCP)
fc780465-2017-40d4-a0c5-307022471b92Sentinel Engine (analytics rules, UEBA, Advanced Hunting backend)LAQueryLogsBuilt-in scheduled query engine (NOT MCP). Also serves as the execution backend for Advanced Hunting — RequestClientApp = "M365D_AdvancedHunting" indicates AH queries from Triage MCP, Defender portal, or Security Copilot that hit connected LA tables (see Query 7). Separate from analytics rules (RequestClientApp empty or other values).

Extended Microsoft MCP Server Landscape (Reference)

Beyond the four MCP servers actively monitored by this skill, Microsoft's MCP ecosystem includes many additional servers. This section catalogs them for awareness, threat modeling, and future monitoring expansion.

Sentinel MCP Collections (Microsoft-Hosted)

Microsoft Sentinel exposes three official MCP collections, each at a distinct endpoint:

CollectionEndpoint URLPurposeMonitored by This Skill
Data Explorationhttps://sentinel.microsoft.com/mcp/data-explorationquery_lake, search_tables, list_sentinel_workspaces, entity analyzer✅ Phase 3 (CloudAppEvents)
Triagehttps://sentinel.microsoft.com/mcp/triageIncident triage, Advanced Hunting, entity investigation✅ Phase 2 (MicrosoftGraphActivityLogs + SigninLogs — AppId 7b7b3966)
Security Copilot Agent Creationhttps://sentinel.microsoft.com/mcp/security-copilot-agent-creationCreate Microsoft Security Copilot agents for complex workflows❌ Not yet monitored

Sentinel Custom MCP Tools: Organizations can create their own MCP tools by exposing saved KQL queries from Advanced Hunting as MCP tools. These execute through the same Sentinel MCP infrastructure and are audited in CloudAppEvents (RecordType 403) alongside built-in tools. See Create custom Sentinel MCP tools.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
200
Repository forks
51
7-day trend score
27

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 20 May 2026, 6 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/scstelz/security-investigator/mcp-usage-monitoring/badge)](https://verified-skill.com/skills/scstelz/security-investigator/mcp-usage-monitoring)

Something wrong with this skill or its page? Tell us.