Security Detections MCP
Lets your AI agent search thousands of security detection rules and map them to MITRE ATT&CK to find coverage gaps.
520 stars on GitHubby MHaggisUpdated 19 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add security-detections -- npx -y security-detections-mcp
What to fill in
| Name | What it is | Required |
|---|---|---|
SIGMA_PATHS | Comma-separated paths to Sigma rule directories (e.g., /path/to/sigma/rules,/path/to/sigma/rules-threat-hunting) | No |
SPLUNK_PATHS | Comma-separated paths to Splunk ESCU detection directories (e.g., /path/to/security_content/detections) | No |
ELASTIC_PATHS | Comma-separated paths to Elastic detection rule directories (e.g., /path/to/detection-rules/rules) | No |
KQL_PATHS | Comma-separated paths to KQL hunting query directories (e.g., /path/to/kql-queries) | No |
SUBLIME_PATHS | Comma-separated paths to Sublime MQL rule directories (e.g., /path/to/sublime-rules/detection-rules,/path/to/delivr-detections/sublime-rules) | No |
CQL_HUB_PATHS | Comma-separated paths to CQL Hub (CrowdStrike) query directories (e.g., /path/to/cql-hub/queries) | No |
JAMF_PROTECT_PATHS | Comma-separated paths to Jamf Protect custom analytic detection directories (macOS, e.g., /path/to/jamfprotect/custom_analytic_detections) | No |
STORY_PATHS | Comma-separated paths to Splunk analytic story directories (optional, e.g., /path/to/security_content/stories) | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Which detections do we have for T1059.001?
Compare our coverage against APT29 and Lazarus
What it is
This server gives your agent one searchable database of detection rules in Sigma, Splunk ESCU, Elastic, KQL, Sublime and CrowdStrike CQL formats. The agent can find rules by technique, tactic or CVE, check coverage against threat actors, and export ATT&CK Navigator layers. A hosted version with about 25 read-only tools is also offered.
What it can do
search: full-text search across all detectionsget_by_idandlist_by_source: read a rule or filter by formatlist_by_mitreandlist_by_mitre_tactic: filter by ATT&CK technique or tacticlist_by_cve: find detections for a CVEanalyze_coverageandidentify_gaps: see coverage and weak spotssuggest_detections: ideas for a techniquegenerate_navigator_layer: export ATT&CK Navigator JSON- 81 local tools and 11 prompts
When to use
- βΊWhen you are a detection engineer and want to know if a technique is already covered
- βΊWhen you need a coverage comparison for a threat actor such as APT29
- βΊWhen you want a sprint backlog or purple team plan built from your own rules
What you need
SIGMA_PATHS and SPLUNK_PATHS. The hosted version needs a free token from detect.michaelhaag.org.Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
building-detection-rules-with-sigmaHelps your agent create detection rules that work across different security platforms. This makes it easier to find threats consistently.building-detection-rule-with-splunk-splLets your agent create rules to find security threats. It uses a special language called SPL to analyze data and identify suspicious activities.mapping-mitre-attack-techniquesHelps your agent map adversary behaviors to MITRE ATT&CK techniques and assess detection coverage.Frequently asked questions
Is it free?
The local npm package is free to run. The hosted version has a free tier of 200 calls a day with all read-only tools, and needs a token.
What is the difference between local and hosted?
Local runs on your machine and indexes your own repos with all 81 tools. Hosted needs no setup and has about 25 read-only tools that stay in sync.
Where do the rules come from?
From repositories you download yourself, such as SigmaHQ, Splunk security_content and Elastic detection-rules. The readme shows how to clone them.
How many detections are there?
The readme says 8,200+ detections across 6 formats.
Does it include threat actor data?
Yes, if you point ATTACK_STIX_PATH at the enterprise-attack.json file.
Which clients work?
Cursor, VS Code, Claude Desktop, Claude Code and Codex are shown in the readme.
If it does not work
- βΊSet the path variables (
SIGMA_PATHS,SPLUNK_PATHSand so on) to your rule folders, or searches return nothing - βΊUse
rebuild_indexafter you add or change rule folders - βΊFor the hosted version, check that your token starts with sdmcp_ and is sent as a Bearer header
5 new skills a week. 1 minute to read.