Security Detections — Claude Code MCP server: what it does
Security Detections — an MCP server for Claude Code that queries a unified database of security detection rules across Sigma, Splunk, Elastic, KQL, Sublime, and CrowdStrike CQL.
no license ★ 530 updated 2026-11-04
claude mcp add --env SIGMA_PATHS=<SIGMA_PATHS> --env SPLUNK_PATHS=<SPLUNK_PATHS> --env ELASTIC_PATHS=<ELASTIC_PATHS> --env KQL_PATHS=<KQL_PATHS> --env SUBLIME_PATHS=<SUBLIME_PATHS> --transport stdio security-detections -- npx -y security-detections-mcpWhat Security Detections does
The server bridges large language models with over 8,200 security detections and MITRE ATT&CK STIX data. Running locally indexes user detection repositories and exposes dozens of tools, while the hosted endpoint connects via a bearer token.
Running the local package requires Node.js and environment variables like SIGMA_PATHS and SPLUNK_PATHS configured to point at rule directories.
What it helps with
- query security detection rules across multiple formats
- search Sigma and Splunk ESCU rules through an AI assistant
- lookup KQL and CrowdStrike CQL queries
- explore MITRE ATT&CK tactics and techniques
Example prompts for the agent
- Find Sigma rules for detecting credential dumping
- Show me Splunk ESCU rules for technique T1003
- Write a KQL query for checking authentication logs
How to install Security Detections
Platform CLI
claude mcp add --env SIGMA_PATHS=<SIGMA_PATHS> --env SPLUNK_PATHS=<SPLUNK_PATHS> --env ELASTIC_PATHS=<ELASTIC_PATHS> --env KQL_PATHS=<KQL_PATHS> --env SUBLIME_PATHS=<SUBLIME_PATHS> --transport stdio security-detections -- npx -y security-detections-mcpReplace <…> with your own values. 3 more environment variables are in the server README
Platform CLI
codex mcp add security-detections --env SIGMA_PATHS=<SIGMA_PATHS> --env SPLUNK_PATHS=<SPLUNK_PATHS> --env ELASTIC_PATHS=<ELASTIC_PATHS> --env KQL_PATHS=<KQL_PATHS> --env SUBLIME_PATHS=<SUBLIME_PATHS> -- npx -y security-detections-mcpReplace <…> with your own values. 3 more environment variables are in the server README
Config file
{
"mcpServers": {
"security-detections": {
"command": "npx",
"args": [
"-y",
"security-detections-mcp"
],
"env": {
"SIGMA_PATHS": "<SIGMA_PATHS>",
"SPLUNK_PATHS": "<SPLUNK_PATHS>",
"ELASTIC_PATHS": "<ELASTIC_PATHS>",
"KQL_PATHS": "<KQL_PATHS>",
"SUBLIME_PATHS": "<SUBLIME_PATHS>"
}
}
}
}Replace <…> with your own values. 3 more environment variables are in the server README
Config file
{
"servers": {
"security-detections": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"security-detections-mcp"
],
"env": {
"SIGMA_PATHS": "<SIGMA_PATHS>",
"SPLUNK_PATHS": "<SPLUNK_PATHS>",
"ELASTIC_PATHS": "<ELASTIC_PATHS>",
"KQL_PATHS": "<KQL_PATHS>",
"SUBLIME_PATHS": "<SUBLIME_PATHS>"
}
}
}
}Replace <…> with your own values. 3 more environment variables are in the server README
Platform CLI
gemini mcp add -e SIGMA_PATHS=<SIGMA_PATHS> -e SPLUNK_PATHS=<SPLUNK_PATHS> -e ELASTIC_PATHS=<ELASTIC_PATHS> -e KQL_PATHS=<KQL_PATHS> -e SUBLIME_PATHS=<SUBLIME_PATHS> security-detections npx -y security-detections-mcpReplace <…> with your own values. 3 more environment variables are in the server README
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Security Detections
How to install Security Detections in Claude Code?
Run the command claude mcp add security-detections-mcp -- npx -y security-detections-mcp in your terminal.
What does Security Detections do?
It allows AI models to search and reference security detection rules from Sigma, Splunk, Elastic, KQL, Sublime, and CQL.
What is needed to run Security Detections?
Local setup requires Node.js and environment variables pointing to your local security detection repositories.