Skip to content
Skillpedia
πŸ’» LocalπŸ”“ No API keySecurity

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

NameWhat it isRequired
SIGMA_PATHSComma-separated paths to Sigma rule directories (e.g., /path/to/sigma/rules,/path/to/sigma/rules-threat-hunting)No
SPLUNK_PATHSComma-separated paths to Splunk ESCU detection directories (e.g., /path/to/security_content/detections)No
ELASTIC_PATHSComma-separated paths to Elastic detection rule directories (e.g., /path/to/detection-rules/rules)No
KQL_PATHSComma-separated paths to KQL hunting query directories (e.g., /path/to/kql-queries)No
SUBLIME_PATHSComma-separated paths to Sublime MQL rule directories (e.g., /path/to/sublime-rules/detection-rules,/path/to/delivr-detections/sublime-rules)No
CQL_HUB_PATHSComma-separated paths to CQL Hub (CrowdStrike) query directories (e.g., /path/to/cql-hub/queries)No
JAMF_PROTECT_PATHSComma-separated paths to Jamf Protect custom analytic detection directories (macOS, e.g., /path/to/jamfprotect/custom_analytic_detections)No
STORY_PATHSComma-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 detections
  • get_by_id and list_by_source: read a rule or filter by format
  • list_by_mitre and list_by_mitre_tactic: filter by ATT&CK technique or tactic
  • list_by_cve: find detections for a CVE
  • analyze_coverage and identify_gaps: see coverage and weak spots
  • suggest_detections: ideas for a technique
  • generate_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

Node.js and detection rule folders on your computer, set through variables such as SIGMA_PATHS and SPLUNK_PATHS. The hosted version needs a free token from detect.michaelhaag.org.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

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_PATHS and so on) to your rule folders, or searches return nothing
  • β€ΊUse rebuild_index after 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.