MCP-Shield Pro

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.

Category
访问服务器

README

🛡️ MCP-Shield Pro — Enterprise MCP Supply Chain & Runtime Governance Shield

MCP-Shield Pro Banner

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, and mcp_verify tools 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.sh with checkpoint tracking (.install_checkpoint) and ./install.sh --resume recovery.

📐 System Architecture

MCP-Shield Pro 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

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选