MCP-Sentinel
PortunusMCP Sentinel: build-time security scanning for MCP servers.
Install / Use
claude mcp add BashaarJavaid -- npx -y github:BashaarJavaid/MCP-SentinelIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
SecuritySupported Platforms
Our assessment of MCP-Sentinel
MCP-Sentinel scores 73/100 on our quality scale, 1028th of 1,094 Security skills we index.
Its MCP Server is 13 KB long, well organised into 16 sections with 10 code examples: a thorough specification that gives an agent plenty to work with.
It has 10 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 2 days ago, so MCP-Sentinel is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 92/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
MCP-Sentinel compared with similar skills
All 4 of these similar skills score higher than MCP-Sentinel; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| MCP-Sentinel (this skill)by BashaarJavaid | 73 | 10 | 2d ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 114.1k | 1d ago | CLAUDE.md |
| hyperframesby heygen-com | 100 | 88.6k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 82.3k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 80.6k | today | CLAUDE.md |
Frequently asked questions
- How do I install MCP-Sentinel?
- Run
claude mcp add BashaarJavaid -- npx -y github:BashaarJavaid/MCP-Sentinel. The install tabs above show the steps for each supported agent. - Which AI agents does MCP-Sentinel work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is MCP-Sentinel safe to use?
- It is MIT-licensed and scores 92/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is MCP-Sentinel still maintained?
- The repository was last updated 2 days ago, so MCP-Sentinel is actively maintained.
Skill content
View source on GitHubPortunusMCP Sentinel
Build-time security scanning for MCP servers.
PortunusMCP Sentinel scans local MCP server source before deployment. It combines deterministic Python and TypeScript analysis, GPT-5.6 semantic review, optional Docker-isolated runtime probes, OWASP Agentic Top 10 mappings, and validated SARIF output for GitHub code scanning.
The 1.4.0 release includes the accepted Phase 22 coverage work and Phase 23 advisory regression. See the roadmap for current project status and maintenance guidance for reporting issues.
Install
Sentinel supports Python 3.10–3.13 on Linux, macOS, and Windows. Install the current package with pipx:
pipx install portunusmcp-sentinel
Or use uv:
uv tool install portunusmcp-sentinel
Rules-only commands below require 1.3.0 or newer. Upgrade an existing install
with pipx upgrade portunusmcp-sentinel or uv tool upgrade portunusmcp-sentinel.
Reports expose observed handlers and recognition gaps, actual rule visits, per-session runtime catalogs and sent attacks, and separate static/dynamic review activity. Default findings include bounded evidence and repair guidance. Static surface totals remain unknown; zero findings are not proof of safety. See the coverage and schema compatibility guide. Version 1.4.0 adds bounded imported handlers/schemas and containment flows; computed registrations and unresolved source forms remain coverage gaps. Permission sidecars express intended grants; they do not enforce runtime boundaries. Runtime campaigns schedule bounded rounds across discovered tools and supported fields (24 started attempts or 120 seconds by default). Native reports use schema 1.7.0; historical evidence retains its recorded versions.
Quickstart
From a local Python or TypeScript MCP server repository:
sentinel scan . --rules-only
Rules-only needs no model credentials, review cache, network, Docker, target configuration, or target execution. It ignores inactive LLM settings even when credentials and endpoint overrides are present. Installation and dependency auditing need network access separately.
Deterministic static analysis has a shared 1,800-second limit (30 minutes), with a 120-second informational target. Fast scans return immediately; expiry remains an incomplete scan. Model review and dynamic budgets are separate. See the timing policy for measurement limits and the retained failures.
Optionally run sentinel init afterward to generate a deny-by-default
sentinel.permissions.yaml; review scopes before granting them. It never imports
or executes source and needs no main guard or launch inference. Existing files
require --force for replacement; symlinks are rejected.
For Python runtime scaffolding, run sentinel init --dynamic, then
sentinel scan . --no-rules-only. Adding missing runtime configuration preserves
and validates an existing permissions file. Dynamic scans require Docker,
model credentials, source-context transmission, and model cost; dependency
installation also needs network access. TypeScript does not support --dynamic.
If generated arguments cannot complete a legitimate tool call, add known valid
probe_baselines to
sentinel.target.yaml; an unsuccessful baseline leaves analysis incomplete.
Exit 0 and exit 1 both mean the scan completed: 0 means no finding reached
the configured threshold, while 1 means at least one did. Exit 2 is a target
or configuration error; exit 3 means analysis was incomplete.
Analysis tiers
| Tier | Command | Requirements | Result |
|---|---|---|---|
| Rules-only | sentinel scan . --rules-only | None beyond Sentinel | Deterministic findings remain needs_review and fail-on eligible |
| Static + GPT review | sentinel scan . --static-only | OPENAI_API_KEY | GPT reviews every selected deterministic candidate |
| Full dynamic proof | sentinel scan . | OPENAI_API_KEY, Docker, and a Python target | GPT review plus four isolated runtime probes |
--allow-degraded permits unavailable review; it still calls the model when a
key is available. Use --rules-only to disable review explicitly. Completion
describes the selected analysis tier and does not prove a server is secure.
TypeScript support is static-only and covers .ts, .mts, and .cts sources
using the official MCP SDK v1 and server v2 shapes. JavaScript, TSX, declaration
files and Node execution are outside the supported boundary. Declared uv, npm
and pnpm workspaces support aggregate static scans with root Sentinel settings.
Bounded local imports, package exports and TypeScript source aliases feed
containment and handler inventory. Other rules retain their documented flow
limits. Dynamic targets are individual local Python 3.10–3.12 MCP packages.
Version 1.3.0 includes Phase 16 static-correctness changes: same-file named-helper execution flows and value-specific validation, authentication, integrity, and configured-sanitizer checks. Unsupported flows remain unresolved; see the rule boundaries and verification record.
Phase 17 source changes add validated dynamic baselines, explicit probe outcomes, and proof-preserving review in native JSON 1.6.0. The current replay bundle uses one approved runtime-review refresh and four unchanged static captures. See the Phase 17 verification record for gates and acceptance status.
Version 1.4.0 emits native JSON 1.7.0 with ordered runtime attempts and workspace coverage. Historical reports and release evidence retain their recorded schema versions.
Rules
Every finding uses a stable rule ID and maps to the OWASP Agentic Top 10.
| Rule | Detection | OWASP | Impact | |---|---|---|---| | SENT-001 | Overly broad tool permission scope | ASI03:2026 | High | | SENT-002 | Tool input reaches unsafe execution | ASI05:2026 | Critical | | SENT-003 | Missing tool input validation | ASI02:2026 | Medium | | SENT-004 | Unsanitized tool content enters a prompt | ASI01:2026 | High | | SENT-005 | Hardcoded credential | ASI03:2026 | Critical | | SENT-006 | Missing or ineffective route authentication | ASI03:2026 | High | | SENT-007 | Unverified tool manifest | ASI04:2026 | Medium | | SENT-008 | Out-of-scope tool execution | ASI02:2026 | Critical | | SENT-009 | Size-limit breach or observed OOM/crash | ASI05:2026 | Medium | | SENT-010 | Injection payload executed | ASI05:2026 | Critical | | SENT-011 | Malformed schema input processed | ASI02:2026 | Low | | SENT-012 | Path containment failure | ASI02:2026 | High | | SENT-013 | Tool-description poisoning | ASI01:2026 | High | | SENT-014 | Command option injection | ASI05:2026 | Critical | | SENT-015 | Server-side request forgery | ASI02:2026 | High | | SENT-016 | Unauthorized operator-credential fallback | ASI03:2026 | High |
Published IDs are compatibility contracts: an ID is never renumbered or reused for a different detection. The rule catalog documents each engine, boundary, false-positive risk, evidence, and remediation.
GitHub Action
The Marketplace Action runs the full Python pipeline, validates SARIF before upload, and preserves Sentinel's exit contract.
name: PortunusMCP Sentinel
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
security-events: write
jobs:
sentinel:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- id: sentinel
uses: BashaarJavaid/MCP-Sentinel@v1
with:
target-path: .
fail-on: high
openai-api-key: ${{ secrets.OPENAI_API_KEY }}
The Action exposes sarif-path, findings-count, and highest-severity.
Forked pull requests, where secrets are withheld, run visibly degraded analysis
and skip upload. High-assurance consumers can replace @v1 with the immutable
commit SHA for the selected release.
Architecture
flowchart LR
A[Untrusted MCP repository] --> B[AST + Semgrep rules]
B --> C[Canonical candidates]
C --> D[GPT-5.6 semantic review]
D --> E[Bounded ordered probe attempts]
E --> F[Docker sandbox]
F --> G[Reviewed dynamic evidence]
D --> H[Deduplication + provenance merge]
G --> H
H --> I[Console]
H --> J[JSON 1.7.0]
H --> K[SARIF 2.1.0]
K --> L[GitHub code scanning]
Static analysis never imports or executes target code. GPT receives bounded, redacted context and can only review existing candidates or order four permanent inert probes. Dynamic analysis mounts local Python source read-only in fresh containers with no runtime network, resource limits, and forced cleanup. All stages feed one canonical Finding model consumed by console, JSON, and SARIF.
PortunusMCP Sentinel is the build-time plane of the PortunusMCP family. The PortunusMCP Gateway provides runtime enforcement in a separate repository, while PortunusMCP Identity is the separate short-lived credential-broker plane. Neither is required by Sentinel.
Configuration and adoption
Configuration precedence is CLI → SENTINEL_* environment → target-root
sentinel.toml → built-in defaults. A normal full scan also requires
sentinel.target.yaml and sentinel.permissions.yaml; --static-only does not
require launch configuration.
Create a baseline from a complete native JSON report, then compare later scans:
sentinel scan . --allow-degraded --format json --output sentinel-baseline.json
sentinel scan . --allow-degraded --baseline sentinel-baseline.json
Matched findings remain visible but do not affect --fail-on. Sentinel never
updates a baseline automatically.
Suppress a reviewed static source finding with a reason-bearing directive:
# sentinel: ignore[SENT-005] reason=test credential is inert and rotated
api_key = "ghp_example"
Only static SENT-001–SENT-007 and SENT-012–SENT-016 findings can be suppressed. Applied
suppressions remain visible in every report; malformed, duplicate, unknown-rule,
or reasonless directives fail configuration validation.
Use Sentinel from pre-commit:
repos:
- repo: https://github.com/BashaarJavaid/MCP-Sentinel
rev: v1.4.0
hooks:
- id: mcp-sentinel
See the configuration guide for LLM endpoint trust, rule selection, baselines, suppressions, and pre-commit.
CLI and report reference
# Full static, GPT, and Docker analysis
sentinel scan ./path/to/server
# Static analysis with required GPT review
sentinel scan ./path/to/server --static-only
# Validated SARIF
sentinel scan ./path/to/server --format sarif --output results.sarif
# Select rules and change the failure threshold
sentinel scan ./path/to/server --rules SENT-001,SENT-005 --fail-on critical
# Ex
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
114.1kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
hyperframes
88.6kOpen-source AI video editor: edit your own footage, or create and remake any video with Claude Code, Codex or the free Studio app. Write HTML, render MP4. By HeyGen.
ruflo
82.3k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
headroom
80.6kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
