MCP Sentinel
Detects Discord tokens and secrets embedded in code.
Detects GitHub fine-grained personal access tokens and other GitHub credentials, and exports SARIF v2.1.0 reports for GitHub Code Scanning vulnerability tabs on pull requests.
Supports CI workflows by generating SARIF reports (--format sarif) and failing pipelines on detected secrets, with SARIF upload to GitHub Code Scanning.
Detects leaked GitLab tokens and credentials during security scans.
Detects Google Cloud credentials and service-account secrets in scanned workspaces.
Detects leaked Hugging Face tokens in codebases and diffs.
Detects leaked OpenAI API keys in scanned files and patches.
Provides a ready-to-use .[pre-commit](/mcp/servers/integrations/pre-commit)-hooks.yaml hook so scans run automatically at pre-commit and pre-push stages to block secrets from being committed.
Detects SendGrid API keys in scanned files.
Detects Slack tokens and secrets embedded in code.
Detects leaked Stripe API keys in source files and patches.
Detects Supabase keys and secrets in scanned codebases.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Sentinel ๐ก๏ธ
MCP Sentinel is a high-performance Model Context Protocol (MCP) security server and CLI tool designed as an automated safety & secret guardrail for Claude Code, Claude Desktop, and autonomous AI coding agents.
As autonomous AI agents read, refactor, and commit large codebases, they risk accidentally persisting sensitive environment variables, hardcoded API keys (Anthropic, OpenAI, HuggingFace, Stripe, AWS, GitHub), or generating dangerous dynamic execution patterns (eval, exec, unescaped os.system). MCP Sentinel verifies every patch and workspace in real time before changes hit disk or production.
๐ What's New in v0.2.0
๐ 25+ Secret & Cloud Providers: Full detection coverage for Anthropic, OpenAI, Hugging Face, GitHub Fine-Grained PATs, GitLab, AWS, Google Cloud, Azure Storage, Stripe, Slack, Discord, SendGrid, Supabase, and private key blocks.
๐ OASIS SARIF v2.1.0 Export: Direct integration with GitHub Code Scanning, allowing automated vulnerability tabs on GitHub Pull Requests.
โก High-Speed Concurrent Scanner: Multi-threaded parallel file auditing capable of scanning thousands of files in milliseconds.
๐ช Pre-Commit Hook Integration: Ready-to-use
.pre-commit-hooks.yamlfor pre-commit and pre-push stages.๐ ๏ธ 4 Native MCP Tools: Extended agent toolkit with
scan_code_security,check_token_entropy,audit_repository_security, andgenerate_sarif_report.
Related MCP server: @arcwall/mcp-server
๐ Quick Start
Installation
Clone the repository and install in editable mode:
git clone https://github.com/businesscanva12-tech/mcp-sentinel.git
cd mcp-sentinel
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -e .๐ค Integration with Claude
1. Claude Desktop Setup
Add mcp-sentinel to your claude_desktop_config.json:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"sentinel": {
"command": "python",
"args": ["-m", "mcp_sentinel.cli", "serve"]
}
}
}2. Claude Code CLI Setup
Register Sentinel directly into your Claude Code workspace:
claude mcp add sentinel python -m mcp_sentinel.cli serve๐ป CLI Usage
Sentinel can be used directly from your terminal or CI/CD pipelines:
Standard Scan
# Scan current repository
mcp-sentinel scan .
# Scan with 16 parallel threads
mcp-sentinel scan . --workers 16Export to SARIF for GitHub Code Scanning
# Generate SARIF report for GitHub Actions
mcp-sentinel scan . --format sarif -o report.sarifRun as an MCP Server
mcp-sentinel serve๐ช Pre-Commit Hook Configuration
Add MCP Sentinel to your .pre-commit-config.yaml:
repos:
- repo: https://github.com/businesscanva12-tech/mcp-sentinel
rev: v0.2.0
hooks:
- id: mcp-sentinel๐งช Running Tests
Sentinel includes a comprehensive test suite covering pattern recognition, Shannon entropy calculations, and AST node visitors:
python -m unittest discover -s tests๐ค Contributing
Contributions, issues, and feature requests are welcome! Check out the Contributing Guidelines to get started.
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
Related MCP Connectors
Checks AI-written code for leaked keys and made-up packages, on your machine. Never uploads code.
Zero-config MCP security scanner for AI-generated apps. 25K+ vulnerability patterns.
Scan prompts for injection attacks, redact PII, and audit LLM SDK usage from any MCP client
Security scanner for AI-written code: SAST, secrets, dependencies, IaC, containers and DAST.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceRuntime safety guardrails for AI coding agents. Checks file access, validates shell commands, and scores your repo's AI safety โ all via MCP.8 npm8MIT
- AlicenseAqualityDmaintenanceSecurity scanning for AI coding tools (Claude Code, Cursor, Windsurf) including secrets detection, MCP config vulnerabilities, agent instruction checks, threat modeling, prompt injection testing, pre-commit security checks, and dependency vulnerability scanning.747 npm1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI coding tools to scan projects for security vulnerabilities, hardcoded secrets, injection flaws, and privacy violations with 699 rules and 76 MCP tools, all running locally with zero telemetry.24 npm7MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP-compatible AI agents to scan code for leaked secrets, copyleft licenses, unprotected routes, missing privacy policies, and risky card handling before committing or shipping.86 npmMIT