Standardized security checklist, threat model, and readiness verification standard for Model Context Protocol (MCP) servers.
The Model Context Protocol (MCP) provides a uniform JSON-RPC 2.0 interface between LLMs and local tools, databases, and APIs. However, deploying MCP servers into developer workstations or enterprise environments introduces distinct attack surfaces:
- Tool Parameter Injection: Unsanitized parameters passed to underlying shell or SQL wrappers.
- Excessive Privilege Leakage: Exposing mutating database commands when only read access was needed.
- Data Exfiltration via Tool Returns: Return payloads containing unredacted API keys or customer PII.
- Denial of Service via Unbounded Tool Calls: Lack of payload limits leading to memory exhaustion.
| ID | Category | Requirement | Severity |
|---|---|---|---|
| MCP-SEC-01 | Transport | JSON-RPC 2.0 conformance and strict header validation | MEDIUM |
| MCP-SEC-02 | Input Validation | Type enforcement against JSON Schema definitions for all tool args | HIGH |
| MCP-SEC-03 | Command Injection | Absolute rejection of shell metacharacters in command execution | CRITICAL |
| MCP-SEC-04 | Path Traversal | Filesystem access restricted strictly to declared root directory | CRITICAL |
| MCP-SEC-05 | Secret Redaction | Automated masking of tokens, passwords, and private keys in returns | HIGH |
| MCP-SEC-06 | Error Masking | Sanitization of stack traces and internal database schemas in errors | MEDIUM |
============================================================
MCP SERVER SECURITY AUDIT REPORT (v1.0.0)
============================================================
Target: mcp-filesystem-server (stdio transport)
[TEST 01] JSON-RPC 2.0 Request Conformance ......... [PASS]
[TEST 02] Path Traversal Detection (../../.ssh) ..... [BLOCKED]
[TEST 03] Unsanitized Pipe Metacharacters (| cat) .. [BLOCKED]
[TEST 04] Secret Token Masking in Tool Output ...... [PASS]
[TEST 05] Schema Conformance (all tools valid) ..... [PASS]
------------------------------------------------------------
SUMMARY: 5/5 CHECKS PASSED. ZERO HIGH-SEVERITY FINDINGS.
============================================================
- MCP Quick Readiness Scan ($19) — GitBuyer | X402 Git
- Tool Contract Lint ($19) — GitBuyer | X402 Git
- MCP Agent Security Gateway ($149) — GitBuyer Checkout | X402 Git Checkout
- Genesis MCP Production Readiness Suite ($79) — GitBuyer Checkout | X402 Git Checkout
- Genesis OpenAPI to MCP Builder ($99) — GitBuyer Checkout | X402 Git Checkout
Full catalog of 45 commercial products: GENESIS Software Catalog.