Skip to main content
Glama

nuclei-mcp

Ein bereichsbeschränkter Nuclei MCP-Server, der sich weigert, irgendetwas zu scannen, das nicht in Ihren HackerOne-Scope-Snapshots gefunden wurde. Funktioniert als Begleiter zu h1-scope-watcher.


Architektur

Copilot/Claude (AI agent)
    │
    │  MCP (stdio)
    ▼
nuclei-mcp container
    │  reads scope
    ├──────────────────► /data/snapshots/*.json  ◄─── h1-scope-watcher writes here
    │  runs scan
    └──────────────────► nuclei binary (built-in)

Die beiden Container teilen sich das gleiche Host-Verzeichnis, das als Volume eingebunden ist. h1-scope-watcher hält die JSON-Dateien auf dem neuesten Stand; nuclei-mcp liest sie nur.


Related MCP server: shodan-mcp

Scope-Gate — Funktionsweise

Jeder Aufruf von nuclei_scan oder check_scope führt diese Logik aus, bevor das Netzwerk kontaktiert wird:

  1. Laden aller *.json-Dateien aus /data/snapshots

  2. Versuch eines exakten Hostname-Abgleichs (z. B. api.life360.com → passt zu api.life360.com)

  3. Versuch eines Platzhalter-Abgleichs (z. B. sub.tile.com → passt zu *.tile.com)

  4. Versuch eines Fuzzy-Keyword-Abgleichs (z. B. life360 → findet api.life360.com, api-cloudfront.life360.com)

  5. Überprüfung von eligible_for_bounty == true UND eligible_for_submission == true

  6. Blockieren, falls eine Prüfung fehlschlägt — keine Ausnahme, keine Umgehung


Schnellstart

1. Image bauen

cd nuclei-mcp
docker build -t nuclei-mcp .

2. Zur Claude/Copilot MCP-Konfiguration hinzufügen

Öffnen Sie claude_desktop_config.json (oder äquivalent) mcp-config.json (Copilot) und fügen Sie Folgendes hinzu:

{
  "mcpServers": {
    "h1-scope-watcher": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-v", "D:/projects/H1-Scope-Watcher/snapshots:/data/snapshots",
        "-e", "SNAPSHOTS_DIR=/data/snapshots",
        "mcp/h1-scope"
      ]
    },
    "nuclei-mcp": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-v", "D:/projects/H1-Scope-Watcher/snapshots:/data/snapshots",
        "-e", "SNAPSHOTS_DIR=/data/snapshots",
        "nuclei-mcp"
      ]
    }
  }
}

Wichtiger Punkt: Beide Container binden den exakt gleichen Host-Pfad (D:/projects/H1-Scope-Watcher/snapshots) ein, sodass sie die Scope-Daten ohne zusätzliches Networking oder IPC teilen.

H1-Scope-Watcher

MCP-Tools

nuclei_scan

Führt einen Nuclei-Scan aus — Scope-geschützt.

Parameter

Typ

Standard

Beschreibung

target

string

Domain, URL oder Fuzzy-Name (z. B. "life360")

templates

string

""

Kommagetrennte Template-Pfade / Tags

severity

string

""

"critical,high" usw. (leer = alle)

rate_limit

int

150

Anfragen pro Sekunde

extra_flags

string

""

Alle zusätzlichen rohen Nuclei-Flags

Beispiel-Prompts:

  • "Run nuclei on life360"

  • "Scan api.tile.com for critical and high findings"

  • "Run nuclei on production.tile-api.com with cve templates only"

check_scope

Vorschau des Scope-Gate-Ergebnisses ohne Scan.

Parameter

Typ

Beschreibung

target

string

Domain, URL oder Fuzzy-Name

Beispiel-Prompts:

  • "Is tile.com in scope?"

  • "Check if snipeit.corp.tile.com is bounty eligible" → zeigt BLOCKED

list_programs

Zeigt alle Assets aus allen Snapshot-Dateien, gruppiert nach Berechtigung.


Umgebungsvariablen

Variable

Standard

Beschreibung

SNAPSHOTS_DIR

/data/snapshots

Pfad zu H1-Scope-JSON-Dateien

NUCLEI_BIN

nuclei

Pfad zur Nuclei-Binary

SCAN_TIMEOUT_SECONDS

300

Timeout pro Scan


Referenz zum Scope-Verhalten

Beispiel vom tile.com-Programm:

Asset

Typ

Bounty

Scan erlaubt?

tile.com

URL

✅ Ja

thetileapp.com

URL

✅ Ja

production.tile-api.com

URL

✅ Ja

*.tile.com

WILDCARD

⛔ Blockiert

snipeit.corp.tile.com

URL

⛔ Blockiert

ci-android.tile.com

URL

⛔ Blockiert


Rechtliches

Scannen Sie nur Ziele, die Ihnen gehören oder für die Sie eine ausdrückliche schriftliche Erlaubnis zum Testen haben. Dieses Tool gewährt keine Autorisierung — Ihre HackerOne-Programmvereinbarung ist das Autorisierungsdokument.

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    A comprehensive MCP server for automated bug bounty hunting and security reconnaissance, featuring over 28 specialized tools for subdomain discovery, vulnerability scanning, and traffic analysis. It integrates automated scope validation and professional reporting across multiple platforms like HackerOne and Bugcrowd to streamline security testing.
    5
    -
  • A
    license
    Not graded
    quality
    C
    maintenance
    A local Python MCP server for safe, human-led bug bounty recon, providing lightweight helpers for scope checks, headers, robots.txt, sitemap.xml, JavaScript URL collection, endpoint extraction, URL deduplication, evidence notes, and manual test planning.
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    A scope-aware bug-bounty & reconnaissance MCP server that works out of the box on the Python standard library and augments itself with your favourite CLI tools when they're present.
    22
    MIT