# Microsoft Defender XDR MCP Server & Agent Skill

> Source: https://ibl.ai/developer/connectors/microsoft-defender

Connector · Extended detection and response (XDR)

Last updated: October 20, 2026

**ibl.ai publishes a free Microsoft Defender XDR agent skill: a SKILL.md that teaches an AI agent to read and write Microsoft Defender XDR data and expose it as an MCP tool. Download it, connect your own Microsoft Defender XDR credentials, and run the agent on ibl.ai Agentic OS, where you own all the code and the data.**

Microsoft Defender XDR correlates alerts from Defender for Endpoint, Identity, Office 365, Cloud Apps and Entra ID Protection into incidents, and keeps 30 days of raw device, email and identity events for advanced hunting.

## What is the Microsoft Defender XDR API, and what can an agent read from it?

Graph exposes security/incidents, security/alerts_v2 and security/runHuntingQuery (KQL), plus Secure Score and threat intelligence. The Defender for Endpoint API adds device response actions such as isolating a machine.

- API: Microsoft Graph security API and Microsoft Defender for Endpoint API (REST)
- Access: Issued by your administrator
- Base URL: https://graph.microsoft.com/v1.0/security/ (response actions: https://api.security.microsoft.com/api/)
- Authentication: Microsoft Entra ID OAuth 2.0 (application permissions); Microsoft Entra ID OAuth 2.0 (delegated permissions)

An admin of the customer's Microsoft Entra tenant registers an app and consents to permissions such as ThreatHunting.Read.All or Machine.Isolate. Microsoft recommends app-only tokens for Defender for Endpoint data.

Graph calls use an Entra token with permissions such as ThreatHunting.Read.All. Delegated isolate calls also need the user's 'Active remediation actions' role and access to the device's group.

### What can an agent read from Microsoft Defender XDR?

- **Incidents** — GET /security/incidents, with ?$expand=alerts to include correlated alerts.
- **Alerts** — GET /security/alerts_v2 with evidence, severity, status and the source product.
- **Advanced hunting (KQL)** — POST /security/runHuntingQuery over the last 30 days of Defender data; permission ThreatHunting.Read.All.
- **Secure Score** — GET /security/secureScores and secureScoreControlProfiles.

### What can an agent write to Microsoft Defender XDR?

- **Update an incident** — PATCH /security/incidents/{id} to set status, assignment, classification or tags.
- **Update an alert** — PATCH an alert to set status, assignment or classification.
- **Isolate a device** — POST /api/machines/{id}/isolate (Full, Selective or UnManagedDevice); permission Machine.Isolate. Confirm with the user first.

Limits: Hunting: at least 45 calls per minute per tenant, 100,000 rows and 50 MB per result, 3-minute timeout, CPU quota per 15-minute cycle (429 when hit). Isolate machine: 100 calls per minute and 1,500 per hour.

Incident, alert and hunting data reveal an organization's devices, users and weaknesses. Use least-privilege app permissions and confirm every isolation with a person.

## How do I connect Microsoft Defender XDR to an AI agent over MCP?

Microsoft Corporation publishes an official MCP server: [Microsoft Sentinel MCP server: triage collection](https://learn.microsoft.com/en-us/azure/sentinel/datalake/sentinel-mcp-triage-tool).

Hosted at https://sentinel.microsoft.com/mcp/triage. Tools list incidents and alerts, run advanced hunting, and look up Defender devices, files and IPs. Home tenant only.

You can register that server on ibl.ai as it is, or use the SKILL.md below when you want the agent to call the Microsoft Graph security API and Microsoft Defender for Endpoint API directly.

On ibl.ai an MCP connection is three records, and a working integration always needs all three:

1. **Register the server** — `POST …/mcp-servers/` with its URL, a transport (`sse`, `websocket` or `streamable_http`) and an `auth_type` of `none`, `token` or `oauth2`.
2. **Create a connection** that holds the credential, scoped to the whole organization (`platform`), to a single agent, or to each user (`user`).
3. **Enable it on the agent** — `mcp-tool` in `tool_slugs` and the server id in `mcp_servers`. Both lists are replaced, not merged, so read the settings first.

For an API key or a service credential, one `token` connection at `platform` scope serves the whole organization; scope a connection to a single agent when that agent needs narrower access than the rest.

The field reference is in [MCP server connections](https://ibl.ai/developer/platform/mcp/mcp-connections), and the [/iblai-api-agent-mcp](https://ibl.ai/developer/skills/iblai-api-agent-mcp) skill runs all three steps from a coding agent.

## What does the Microsoft Defender XDR agent skill do?

The Microsoft Defender XDR skill is one SKILL.md file named `iblai-connect-microsoft-defender`. It gives an agent the auth conventions, what to read, which writes need a person's confirmation, the ibl.ai MCP wiring, example prompts and guardrails.

[Download the Microsoft Defender XDR SKILL.md](https://ibl.ai/developer/connectors/microsoft-defender/SKILL.md)

Save it as `.claude/skills/iblai-connect-microsoft-defender/SKILL.md`, or in your agent's skills folder. The ibl.ai platform skills it calls come from one install:

```
npx skills add iblai/base --all
```

This connector skill is a starting point maintained on ibl.ai, not part of the iblai/base repository.

It was checked against Microsoft Corporation's documentation on October 20, 2026. Test it against your own Microsoft Defender XDR setup before you rely on it.

### What can I ask a Microsoft Defender XDR agent to do?

- “List open High-severity incidents with their alerts from the last 24 hours”
- “Hunt for PowerShell launched from an AppData path in the past 7 days”
- “Summarize the evidence on alert da637 and recommend a classification”
- “Report this week's Secure Score change and the top three open controls”

## How do I run a Microsoft Defender XDR agent on ibl.ai?

[Agentic OS](https://ibl.ai/product/agentic-os) is where the agent runs on ibl.ai: it holds the Microsoft Defender XDR MCP connection, the model the agent uses, its instructions and its conversation history.

On ibl.ai you own all the code and the data, the platform source code included, run it model-agnostic across any LLM, and pay with no per-seat pricing — so you can deploy anywhere, from your own cloud to a fully air-gapped network.

- [AI agents for Cybersecurity](https://ibl.ai/solutions/cybersecurity) — what ibl.ai deploys in this sector

### Which ibl.ai agents work with Microsoft Defender XDR data?

- [Alert Triage Agent](https://ibl.ai/solutions/cybersecurity/agent/alert-triage-agent) — Cybersecurity
- [Incident Response Agent](https://ibl.ai/solutions/cybersecurity/agent/incident-response-agent) — Cybersecurity

### Which ibl.ai platform skills does a Microsoft Defender XDR agent use?

- [/iblai-api-agent-mcp](https://ibl.ai/developer/skills/iblai-api-agent-mcp) — MCP connectors for ibl.ai agents, end to end
- [/iblai-vibe-agent-mcp](https://ibl.ai/developer/skills/iblai-vibe-agent-mcp) — Add the agent MCP tab (outside services the agent can use in chats, with the agent's MCP on/off switch, Featured and…
- [/iblai-api-agent-tool](https://ibl.ai/developer/skills/iblai-api-agent-tool) — Read and change which tools an ibl.ai agent has via the platform API

## What else should I know before connecting Microsoft Defender XDR to an AI agent?

### Is there an official Microsoft Defender XDR MCP server?

Yes. Microsoft Corporation publishes [Microsoft Sentinel MCP server: triage collection](https://learn.microsoft.com/en-us/azure/sentinel/datalake/sentinel-mcp-triage-tool).

You can register it on ibl.ai as an MCP server, or use the SKILL.md when you want the agent to call the Microsoft Graph security API and Microsoft Defender for Endpoint API directly.

### Who can get Microsoft Defender XDR API credentials?

An admin of the customer's Microsoft Entra tenant registers an app and consents to permissions such as ThreatHunting.Read.All or Machine.Isolate. Microsoft recommends app-only tokens for Defender for Endpoint data.

### Does Microsoft Defender XDR data leave my infrastructure when an ibl.ai agent uses it?

On ibl.ai, you own all the code and the data. Self-hosted in your cloud or data center, the agent, its MCP connections and its conversation logs stay inside your perimeter.

Because the platform is model-agnostic, you can point the agent at a model you host, so Microsoft Defender XDR records need not reach a third-party model provider.

### Is the Microsoft Defender XDR agent skill free to use?

Yes. The SKILL.md is a free download with no sign-up. It assumes you already have Microsoft Defender XDR credentials, and your agreement with Microsoft Corporation still governs how you use its API.

## Which other data sources can an AI agent connect to alongside Microsoft Defender XDR?

### Which other Cybersecurity systems have a connector?

- [CrowdStrike Falcon](https://ibl.ai/developer/connectors/crowdstrike-falcon) — Endpoint detection and response (EDR) and XDR
- [Elastic Security](https://ibl.ai/developer/connectors/elastic-security) — SIEM and endpoint security
- [GitHub](https://ibl.ai/developer/connectors/github) — Source code hosting and collaboration
- [Jira](https://ibl.ai/developer/connectors/jira) — Work and issue tracking
- [Microsoft Sentinel](https://ibl.ai/developer/connectors/microsoft-sentinel) — Cloud SIEM and SOAR
- [Okta](https://ibl.ai/developer/connectors/okta) — Identity and access management
- [PagerDuty](https://ibl.ai/developer/connectors/pagerduty) — Incident response and on-call management
- [Palo Alto Networks Cortex XDR](https://ibl.ai/developer/connectors/palo-alto-cortex) — Extended detection and response (XDR) and SecOps platform
- [Qualys VMDR](https://ibl.ai/developer/connectors/qualys) — Vulnerability management
- [Rapid7 InsightVM](https://ibl.ai/developer/connectors/rapid7) — Vulnerability management
- [SentinelOne](https://ibl.ai/developer/connectors/sentinelone) — Endpoint protection and XDR
- [ServiceNow](https://ibl.ai/developer/connectors/servicenow) — IT service management and workflow platform
- [Splunk](https://ibl.ai/developer/connectors/splunk) — SIEM and security analytics
- [Tenable Vulnerability Management](https://ibl.ai/developer/connectors/tenable) — Vulnerability management
- [Wiz](https://ibl.ai/developer/connectors/wiz) — Cloud security (CNAPP)

Every connector, grouped by sector, is on the [connectors hub](https://ibl.ai/developer/connectors).
