Logo vun Claude MCP Sentinel

Claude MCP Sentinel

Communautéit
soy-rafa

Security agent for Claude Code and Cowork. v2 blocks malicious tool calls in real time: a PreToolUse hook stops credential exfiltration, known-bad domains (giftshop.club from the Postmark MCP…

Editeursoy-rafa
Repositoryclaude-mcp-sentinel
SproochPython
Forks
23
Stären
191
Disponibel Tools
0
Transporttypstdio
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    Claude MCP Sentinel stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    191 Stären an 23 Forks aus dem verlinkte Repository.

MCP Sentinel

Security agent for Claude Code and Cowork. v2 blocks malicious tool calls in real time: a PreToolUse hook stops credential exfiltration, known-bad domains (giftshop.club from the Postmark MCP backdoor is hardcoded), reverse shells, and curl|bash pipes before they execute. The v1 static scanner is still here: vulnerability database scanning, source integrity verification, and coherence analysis.

Author: Rafael Tunón Sánchez (@soy-rafa) License: MIT Latest version: 3.1.1, July 2026 (changelog)

Not affiliated with Microsoft Sentinel, SentinelOne, Redis Sentinel, HashiCorp Sentinel, or any other product that has "Sentinel" in its name. This is an independent, open-source security skill for Claude Code. "Sentinel" is a common term in security; see Trademarks.

Why

The AI skills ecosystem is growing fast, but so are the attacks. Snyk's ToxicSkills study found that 36% of skills contain security flaws, including 76 with confirmed malicious payloads. And in September 2025 the Postmark MCP incident became the canonical supply-chain attack in this ecosystem: fifteen clean versions followed by a single-line update that silently BCC'd every outgoing email to phan@giftshop.club.

Static analysis of v1.0.15 would have found nothing: it was clean. That's the gap v2 closes.

What's new in v2: Runtime blocking

A PreToolUse hook runs before every tool call Claude makes. It inspects the call against a local IOC library plus your allowlist, then allows or blocks it:

  • Sensitive paths: reads of ~/.ssh/, ~/.aws/, ~/.env, credentials.json, /etc/shadow are blocked.
  • Known-malicious domains: hardcoded from confirmed incidents. giftshop.club is in there by default and cannot be allowlisted.
  • Exfiltration services: pastebin.com, transfer.sh, webhook.site, requestbin, ngrok, serveo, raw-IP URLs.
  • Dangerous commands: curl … | bash, nc -e, bash -i >& /dev/tcp/…, base64 | curl chains, appends to .bashrc.
  • Sensitive env vars: ANTHROPIC_API_KEY, AWS_SECRET_ACCESS_KEY, GITHUB_TOKEN, DATABASE_URL, and the generic *_API_KEY / *_SECRET / *_TOKEN / *_PASSWORD patterns.

Zero LLM cost. Pure local Python (~30–80 ms per call). Only blocked calls add a short message to the conversation.

Fail-open. Missing IOCs, malformed stdin, hook crash, all default to allow. The hook will never break Claude Code.

Whitelistable. Legitimate false positives go in .security/sentinel-allowlist.json (project) or ~/.claude/sentinel-allowlist.json (global). Confirmed-malicious domains are not overrideable.

bash
bash hooks/install_hooks.sh --user     # install globally at ~/.claude/settings.json
bash hooks/install_hooks.sh --project  # install for this project only

Requires Python 3 and jq. See hooks/README.md for details. Uninstall with hooks/uninstall_hooks.sh.

v1: Static scanning (still included)

1. Threat intelligence scanning Checks every installed skill and MCP server against 6 live databases maintained by the community: GitHub Advisory DB, vulnerablemcp.info, mcpscan.ai, Snyk, ClawHub/VirusTotal, and Reddit r/ClaudeAI.

2. Source integrity verification When you're about to install a skill, Sentinel finds the official original source and compares it against your copy. If someone took a trusted skill, injected malicious code, and redistributed it, Sentinel catches the difference.

3. Coherence analysis Analyzes whether everything a skill does matches its stated purpose. A token optimizer that tries to access your SSH keys? A markdown formatter that sends your credentials to an external server? Sentinel flags the mismatch and shows you exactly which actions belong and which don't.

4. Update diff detection Stores a snapshot of every installed skill. If an update changes something, Sentinel diffs it and runs coherence analysis on the new code. This catches supply chain attacks: when a trusted skill pushes a poisoned update.

5. Scheduled monitoring Runs automatically every morning to re-scan everything. A skill that was safe yesterday might have a new CVE reported today.

Install

Download mcp-sentinel.skill from Releases and double-click to install.

Or manually: copy the whole folder into .claude/skills/mcp-sentinel/ in your project (or ~/.claude/skills/mcp-sentinel/ for global). Then enable the runtime hook:

  • macOS / Linux: bash hooks/install_hooks.sh --user
  • Any platform, including native Windows (no bash or jq needed): python3 hooks/install_hooks.py --user (use python on Windows). Remove it with --uninstall.

Verify the install with python3 tools/sentinel_status.py.

Usage

Just talk to Claude:

  • "Scan my project for security issues"
  • "Is this MCP server safe to install?"
  • "Check if this skill has been tampered with"
  • "Run a security audit"

MCP Sentinel triggers automatically when it detects you're about to install something or when you mention security concerns.

When Sentinel asks you (quick guide)

The runtime hook stays out of your way and only speaks up when a tool call looks risky.

  • No message = allowed. Normal work runs silently. Zero friction, zero tokens.
  • An "Approve / Deny" prompt means Sentinel flagged something (reading a credential file, a reverse shell, an exfiltration destination, a change to your agent config). You decide:
    • Approve if you recognize and trust it. For a path or domain, approving is remembered, so it stops asking about that one.
    • Deny to block the call.
  • A hard block with no choice happens only for confirmed-malicious infrastructure (curated incident domains, the URLhaus malware feed). Not overridable.

Handy commands:

  • See what Sentinel is doing and how it is configured: python3 tools/sentinel_status.py
  • Turn recurring asks into one-click trust: python3 tools/sentinel_suggest.py (add --apply)
  • Vet a skill or MCP before installing it: python3 tools/config_scan.py --scan-path ./that-skill
  • Run without ever blocking (just measure): SENTINEL_SHADOW=on (see would_block in the status)
  • Leaner messages, no explanations: SENTINEL_EXPLAIN=off

Got a false positive? Approve it once, or add the path/domain to ~/.claude/sentinel-allowlist.json. A few patterns are intentionally cautious and will ask (for example, appending to ~/.zshrc); that is expected. Full knob reference: docs/PRODUCT-ROADMAP.md.

How it works

MCP Sentinel is a Claude skill: a .md file with structured instructions that tells Claude how to act as a security agent. The v1 scanner uses Claude's built-in tools (WebSearch, Read, Write, Bash, Glob, Grep) to scan files, search databases, and generate reports. No external dependencies, no API keys, no infrastructure.

The v2 runtime hook is a local Python script (hooks/sentinel_preflight.py) that Claude Code executes before every tool call. It reads the call on stdin, pattern-matches against the IOC library (references/iocs.json) plus your allowlist, and returns an allow/deny decision on stdout. No LLM involvement, no network calls.

All analysis happens locally + public web searches (for v1 scanning). Your code and credentials never leave your machine.

Threat database

Sentinel maintains a local JSON database at .security/mcp-sentinel-threats.json that grows with each scan. It stores:

  • Inventory of installed skills/MCPs with content snapshots
  • Known threats with CVE IDs and severity scores
  • Community alerts from Reddit and Discord
  • Change history for update diff detection
  • Structured threat reports compatible with future community sharing

Benchmarks

v1 static scan (5 scenarios: full audit, pre-install check, suspicious skill investigation, source integrity verification, coherence analysis)

With MCP SentinelWithout (baseline)
Detection rate100%43–67%
Source verificationYesNo
Coherence mapYesNo
Threat databaseYesNo

v2 runtime hook (20 regression cases in tests/test_hook.py)

CategoryCasesResult
Benign tool calls correctly allowed5✅ 5/5
Credential-harvesting attacks blocked4✅ 4/4
Network exfil blocked (incl. Postmark giftshop.club IOC)4✅ 4/4
Dangerous commands blocked (`curlbash, reverse shell, .bashrc` hijack)4
Fail-open on malformed / empty input3✅ 3/3
Total20✅ 20/20

Overhead: ~30–80 ms per tool call. Zero LLM tokens in normal operation.

Contributing

Found a bug? Have an idea? Open an issue or PR. This is a community project.

Legal

License

This project is licensed under the MIT License. Copyright (c) 2026 Rafael Tunón Sánchez.

You are free to use, copy, modify, merge, publish, distribute, sublicense, and sell copies of this software, provided that the original copyright notice and this permission notice are included in all copies or substantial portions of the software.

Attribution

If you redistribute this project, in whole or in part, or create derivative works based on it, you must give appropriate credit to the original author. This includes:

  • Keeping the copyright notice in the LICENSE file intact
  • Mentioning the original project and author in any derivative work's documentation

Original work

MCP Sentinel was conceived, designed, and developed by Rafael Tunón Sánchez in April 2026. The concept, architecture, skill instructions, coherence analysis methodology, update diff detection system, and threat database schema are original work by the author.

The full commit history of this repository serves as a public, timestamped record of authorship.

Disclaimer

This software is provided "as is", without warranty of any kind. MCP Sentinel is a security tool that helps detect potential threats, but it does not guarantee the detection of all vulnerabilities or malicious code. Users are responsible for their own security decisions. The author is not liable for any damages arising from the use of this software.

Trademarks

"MCP Sentinel" is the project name chosen by the author. This project is independent and not affiliated with, endorsed by, or connected to Microsoft Sentinel (the Microsoft Azure SIEM), SentinelOne, Redis Sentinel, HashiCorp Sentinel, or any other product that includes "Sentinel" in its name. "Sentinel" is a common, descriptive term in the security industry. GitHub, Claude, Anthropic, Snyk, Microsoft, and other product names mentioned in this repository are trademarks of their respective owners.


Built with care by @soy-rafa

Claude MCP Sentinel MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal Claude MCP Sentinel verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

Claude MCP Sentinel als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu Claude MCP Sentinel an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "claude-mcp-sentinel": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu Claude MCP Sentinel. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu Claude MCP Sentinel.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat Claude MCP Sentinel?
Claude MCP Sentinel
Jo. Ech hunn et gelies.
Dat hunn ech mat Claude MCP Sentinel fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server Claude MCP Sentinel benotzt?

Claude MCP Sentinel ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech Claude MCP Sentinel MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir Claude MCP Sentinel mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat Claude MCP Sentinel MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann Claude MCP Sentinel verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech Claude MCP Sentinel MCP mat TypingMind?

Claude MCP Sentinel leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt Claude MCP Sentinel MCP an TypingMind zur Verfügung?

Claude MCP Sentinel stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir Claude MCP Sentinel MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann Claude MCP Sentinel eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇