Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Microsoft Sentinel MCP server is currently in preview. This information relates to a prerelease product that may be substantially modified before it's released. Microsoft makes no warranties, expressed or implied, with respect to the information provided here.
This article shows you how to set up and use Microsoft Sentinel's Model Context Protocol (MCP) collection of security tools to enable natural language queries against your security data. Sentinel's support for MCP enables security teams to bring AI into their security operations by allowing AI models to access security data in a standard way.
Sentinel's collection of security tools are designed to work with multiple clients and automation platforms. You can use these tools to search for relevant tables, retrieve data, and create Security Copilot agents.
Prerequisites
To use Microsoft Sentinel MCP server and access its collection of tools, you need to be onboarded to Microsoft Sentinel data lake. For more information, see Onboard to Microsoft Sentinel data lake and Microsoft Sentinel graph (preview).
You also need the Security reader role to list and invoke Sentinel's collection of MCP tools.
Supported code editors and agent platforms
Microsoft Sentinel's support for MCP tools works with the following AI-powered code editors and agent-building platforms:
- Visual Studio Code
- Security Copilot
Add Microsoft Sentinel's collection of MCP tools
Add MCP server:
Press Ctrl + Shift + P then type or choose
MCP: Add Server.Choose HTTP (HTTP or Server-Sent Events).
Enter the URL of the MCP server you want to access then press Enter:
- Data exploration:
https://sentinel.microsoft.com/mcp/data-exploration - Security Copilot agent creation:
https://sentinel.microsoft.com/mcp/security-copilot-agent-creation
- Data exploration:
Assign a friendly Server ID (for example,
Microsoft Sentinel MCP server)Choose whether to make the server available in all Visual Studio Code workspaces or just the current one.
Allow authentication. When prompted, select Allow to authenticate using an account with at least a Security reader role.
Open Visual Studio Code's chat. Select View > Chat, select the Toggle Chat icon
beside the search bar, or press Ctrl + Alt + I.Verify connection. Set the chat to Agent mode then confirm by selecting the Configure Tools icon
that you see added under the MCP server.
After adding Microsoft Sentinel's collection of tools, you can use the following sample prompts to interact with data in your Microsoft Sentinel data lake.
- Find the top three users that are at risk and explain why they are at risk.
- Find sign-in failures in the last 24 hours and give me a brief summary of key findings.
- Identify devices that showed an outstanding number of outgoing network connections.
To understand how agents invoke our tools to answer these prompts, see How Microsoft Sentinel MCP tools work alongside your agent.