# Security Detections

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.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 530 repo stars
- Author: MHaggis
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/MHaggis/Security-Detections-MCP
- Updated: 2026-11-04
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/security-detections

## What it 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.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `SIGMA_PATHS`, `SPLUNK_PATHS`, `ELASTIC_PATHS`, `KQL_PATHS`, `SUBLIME_PATHS`, `CQL_HUB_PATHS`, `JAMF_PROTECT_PATHS`, `STORY_PATHS` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
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-mcp
```
Replace <…> with your own values. 3 more environment variables are in the server README

### Codex

**Platform CLI**
```bash
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-mcp
```
Replace <…> with your own values. 3 more environment variables are in the server README

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "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

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "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

### Gemini CLI

**Platform CLI**
```bash
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-mcp
```
Replace <…> with your own values. 3 more environment variables are in the server README

## When to use it
- 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
- Find Sigma rules for detecting credential dumping
- Show me Splunk ESCU rules for technique T1003
- Write a KQL query for checking authentication logs

## Similar
- [security-detections-mcp](https://affpapa.org/en/nevibecode/skills/security-detections-mcp.md) — skill · 863 installs
- [siem-detection](https://affpapa.org/en/nevibecode/skills/siem-detection.md) — skill · 432 installs
- [threat-hunting](https://affpapa.org/en/nevibecode/skills/threat-hunting.md) — skill · 431 installs
- [agency-threat-detection-engineer](https://affpapa.org/en/nevibecode/skills/agency-threat-detection-engineer.md) — skill · ★ 85 repo stars
- [analyzing-security-logs-with-splunk](https://affpapa.org/en/nevibecode/skills/analyzing-security-logs-with-splunk.md) — skill · 278 installs
- [security-investigator-automation](https://affpapa.org/en/nevibecode/skills/security-investigator-automation.md) — skill · 326 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
