MCP Sentinel
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Sentinelscan src/config.py for exposed secrets and unsafe eval calls"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Sentinel π‘οΈ
MCP Sentinel is a lightweight, high-performance Model Context Protocol (MCP) server and CLI tool designed to act as an automated security and secret guardrail for AI coding assistants like Claude Code, Claude Desktop, and agentic IDEs.
As autonomous AI agents read, refactor, and commit large codebases, they risk accidentally persisting sensitive environment variables, hardcoded API keys (Anthropic, OpenAI, AWS, GitHub), or generating insecure dynamic evaluation constructs (eval, exec, unescaped os.system). MCP Sentinel provides real-time verification before changes are finalized.
π Key Features
π Real-time Secret Detection: Instant regex-based & entropy-based identification of exposed API keys, private keys, and OAuth tokens.
π¬ Python AST Safety Audit: Inspects abstract syntax trees to flag dangerous dynamic execution patterns (
eval,exec, insecuresubprocesscalls) before writing to disk.π Shannon Entropy Analysis: Distinguishes between plain text and high-entropy cryptographically generated secrets to reduce false positives.
π Native MCP Integration: Implements the Model Context Protocol stdio transport for frictionless plug-and-play setup with Claude Code and Claude Desktop.
β‘ Zero-Friction CLI: Can also be executed directly as a terminal utility (
mcp-sentinel scan .) or integrated into CI/CD pipelines and pre-commit hooks.
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
You can register Sentinel directly within your Claude Code environment:
claude mcp add sentinel python -m mcp_sentinel.cli serveOnce registered, Claude can call scan_code_security and check_token_entropy tools during code generation and file edits.
π» CLI Usage
You can also use Sentinel independently from the terminal:
Scan a file or project directory
# Scan current directory
mcp-sentinel scan .
# Scan a specific file
mcp-sentinel scan src/config.pyRun as an MCP Server
mcp-sentinel serveπ§ͺ Running Tests
Sentinel includes a comprehensive test suite covering pattern recognition, Shannon entropy calculations, and AST node visitors:
python -m unittest discover -s testsπΊοΈ Roadmap
Support for SARIF (Static Analysis Results Interchange Format) export.
Integration with Gitleaks rulesets for custom corporate patterns.
Pre-commit hook template (
.pre-commit-hooks.yaml).Semantic AST taint analysis for JavaScript/TypeScript targets.
π€ 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.
This server cannot be deployed
Maintenance
Related MCP Connectors
Zero-config MCP security scanner for AI-generated apps. 25K+ vulnerability patterns.
Security scanner for AI-written code: SAST, secrets, dependencies, IaC, containers and DAST.
Zero-install security baseline for AI coding agents β OWASP/CWE-cited rules over MCP.
AgentGuard β 20-tool AI safety MCP: policy preflight, risk scoring, audit logging, rate limits.
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.6 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.729 npm1MIT
- AlicenseNot gradedqualityAmaintenanceEnables 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.6 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.23 npmMIT