MCP Server — trickyfalcon/mcp-defender

MCP server for Microsoft Defender Advanced Hunting - execute KQL queries via natural language

Local serverstdioPython

What is the MCP Server?

MCP server for Microsoft Defender Advanced Hunting - execute KQL queries via natural language

What it actually does

An MCP (Model Context Protocol) server for Microsoft Defender Advanced Hunting. Enables AI assistants to investigate security events using natural language by translating queries to KQL and executing them against Defender.

  • Advanced Hunting — Execute KQL queries against Defender's Advanced Hunting API
  • Dynamic Schema Discovery — Fetch available tables and columns directly from your Defender instance
  • Natural Language Security Investigations — Let AI translate your questions into KQL
  • Certificate Authentication — Secure authentication using Azure AD certificates (recommended)

Configuration

  • Python 3.10+ - Azure AD App Registration with WindowsDefenderATP permission: - AdvancedQuery.Read.All - Run advanced queries

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
run_hunting_queryExecute KQL queries against Advanced Hunting
get_hunting_schemaGet available tables and columns dynamically

Configuration

  • Python 3.10+ - Azure AD App Registration with WindowsDefenderATP permission: - AdvancedQuery.Read.All - Run advanced queries
VariableDescriptionRequired
PYTHONPATHPython module search path for a local installation.Optional
AZURE_TENANT_IDConfiguration value read at startup.Optional
AZURE_CLIENT_IDConfiguration value read at startup.Optional
AZURE_CLIENT_CERTIFICATE_PATHFilesystem location the server is allowed to use.Optional
AZURE_CLIENT_SECRETCredential the server authenticates with.Yes

Example prompts to try

  • “Use MCP to Endpoint.”
  • “Use MCP to run hunting query.”
  • “Use MCP to get hunting schema.”

Frequently asked questions

MCP server for Microsoft Defender Advanced Hunting - execute KQL queries via natural language Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.