MCP-Shield Pro
Enterprise-grade zero-dependency security shield and runtime governance engine for MCP servers, providing OWASP MCP Top 10 audits, cryptographic tool call signing, AIBOM generation, and inline parameter firewall protection.
README
π‘οΈ MCP-Shield Pro β Enterprise MCP Supply Chain & Runtime Governance Shield

Enterprise-grade zero-dependency security shield and runtime governance engine for Model Context Protocol (MCP) servers, AI agent tool pipelines, and AIBOM compliance.
β‘ Key Highlights & Core Capabilities
- β‘ Zero External Runtime Dependencies: Pure Node.js ES Module runtime delivering sub-millisecond execution (< 2ms) with zero third-party npm package overhead.
- π‘οΈ OWASP MCP Top 10 Security Audit: Automated static & dynamic code inspection covering unauthenticated endpoints, tool signature gaps, prompt injection, and command injection.
- π Cryptographic Tool Call Signing: HMAC-SHA256 tool request signing and replay attack prevention for agent execution pipelines.
- π Standardized AIBOM Generator: Automated AI Bill of Materials (AIBOM) generation tracking component file hashes, tools, and security provenance.
- π§± Inline Runtime Parameter Firewall: Intercepts tool parameters in real-time to block path traversal, shell metacharacters, SSRF, and adversarial injection patterns.
- π Native MCP Protocol Server: Stdio JSON-RPC 2.0 interface exposing
mcp_scan,generate_aibom, andmcp_verifytools directly to OpenClaw, Codex, Claude Code, and Cursor. - π¨ Interactive Browser Studio Dashboard: Embedded single-file studio (
demo/index.html) featuring live security gauges, OWASP rule status, and parameter firewall sandbox. - π Error-Resuming Auto-Installer: Executable
./install.shwith checkpoint tracking (.install_checkpoint) and./install.sh --resumerecovery.
π System Architecture

π‘οΈ OWASP MCP Top 10 Security Rule Coverage
| Rule ID | Threat Category | Description | Severity | Safeguard Mechanism |
|---|---|---|---|---|
| MCP-01 | π Authentication | Unauthenticated Endpoint Exposure | π΄ HIGH | Bearer/HMAC Auth Verification |
| MCP-02 | π Integrity | Missing Cryptographic Tool Signatures | π΄ HIGH | ToolSigner HMAC-SHA256 Enforcer |
| MCP-03 | π§ AI Security | Indirect Prompt Injection Vulnerability | π£ CRITICAL | Delimiter Boundary Sanitization |
| MCP-04 | π‘οΈ Authorization | Excess Tool Privileges & Over-scoping | π‘ MEDIUM | Principle of Least Privilege Inspector |
| MCP-05 | π¦ Supply Chain | Untrusted Supply Chain Dependency | π΄ HIGH | AIBOM Provenance & Hash Verification |
| MCP-06 | β‘ Execution | Arbitrary Command & Shell Injection | π£ CRITICAL | RuntimeFirewall Parameter Sanitizer |
| MCP-07 | π File System | Path Traversal & Traversal Escapes | π΄ HIGH | Workspace Root Path Containment |
| MCP-08 | π Network | Server-Side Request Forgery (SSRF) | π΄ HIGH | URL Host Domain Allowlisting |
| MCP-09 | π Privacy | Unbounded Context & Credential Leak | π΄ HIGH | Secret Regex & Pattern Scrubber |
| MCP-10 | π Logging | Missing Audit Trail & Session Identity | π‘ MEDIUM | Structured JSON Audit Logger |
π Quick Start & Installation
1οΈβ£ Automatic Installation with Error Resume
# Clone and run the self-healing auto-installer
git clone https://github.com/tonysheesh/mcp-shield-pro.git
cd mcp-shield-pro
./install.sh
# If any step is interrupted, resume automatically:
./install.sh --resume
2οΈβ£ Running Security Audits via CLI
# Run OWASP MCP Top 10 security audit on current codebase
node bin/mcp-shield.js --scan .
# Generate AI Bill of Materials (AIBOM)
node bin/mcp-shield.js --aibom .
# Run strict Quality Approval Gate checks
node bin/mcp-shield.js --quality .
β‘ Comparison & Superiority
| Feature / Metric | Legacy Scanners & Python Tools | MCP-Shield Pro |
|---|---|---|
| Runtime Dependencies | Heavy (pip packages, native C++) |
0 External Dependencies (Pure Node ESM) |
| Audit Execution Speed | ~1.5s - 3.2s per codebase | < 2ms per scan (150x Faster) |
| Tool Call Integrity | Plaintext JSON / Unsigned | HMAC-SHA256 Cryptographic Signatures |
| Supply Chain Governance | Manual SBOMs | Automated AI Bill of Materials (AIBOM) |
| Runtime Protection | Static Analysis Only | Inline Parameter Firewall Sandbox |
| IDE & Agent Integration | Manual CLI invocation | Native Stdio MCP JSON-RPC Server |
| Installer Resiliency | Standard script (fails on error) | Checkpoint State Tracking (--resume) |
π» Programmatic API Usage
import { MCPScanner, ToolSigner, RuntimeFirewall, AIBOMGenerator } from 'mcp-shield-pro';
// 1. Audit an MCP tool file
const scanner = new MCPScanner();
const audit = scanner.scanFile('./lib/mcpServer.js');
console.log(`Security Score: ${audit.score}/100 | Passed: ${audit.passed}`);
// 2. Cryptographically sign a tool call
const signer = new ToolSigner('your-master-secret-key');
const signedPayload = signer.signToolCall('query_database', { query: 'SELECT 1' });
// 3. Verify signature
const verification = signer.verifyToolCall(signedPayload);
console.log(`Signature Valid: ${verification.valid}`);
// 4. Runtime parameter firewall inspection
const firewall = new RuntimeFirewall();
const inspection = firewall.inspectParams('read_file', { path: '../../etc/passwd' });
console.log(`Allowed: ${inspection.allowed}`); // false
πΊοΈ Roadmap
- Support for Ed25519 asymmetric public-key signature verification for decentralized tool execution.
- Real-time eBPF syscall filtering integration for containerized agent workloads.
- Automated OWASP MCP Top 10 rule auto-fixer (
--fix) to patch vulnerabilities in-place. - Multi-region threat intelligence feed synchronization for emerging prompt injection patterns.
- Browser Studio web assembly (WASM) compiler for client-side zero-server scanning.
π License
MIT License Β© 2026 tonysheesh
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.