MCP.Market

MCP Shield MCP server

by sophiacave·io.github.sophiacave/mcp-shield·v1.0.7

Security scanner for MCP servers. SSRF, path traversal, injection, auth, secrets. Grade A-F.

C66/100grade C
What users say
No reviews yet
Be the first
Safety scan
C66/100

full report

Adoption
New

0 stars41 downloads/wk

Reviews

Write one

Nobody has reviewed MCP Shield yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

MCP Shield tools

No tool declarations could be read from the package source. They show once the server is installed.

Public scan report

scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it

2 medium
  • Code scan5 source files scanned15/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 110 days ago8/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10

Findings (2)

  • mediumsubprocess with shell=Trueexec.shell-true
    src/scanner.py: … Command injection via subprocess with shell=True INJ-04: Template injection via forma…
  • mediumeval / new Function usedexec.eval
    src/scanner.py: …ec usage", message="eval() or exec() found. If input is user-cont…
Overall 66/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How MCP Shield compares

Against every graded Security MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
66/100
higher than 23% of 915 Security servers
Downloads a week
41
more than 33% of 248 Security servers with a package

Install MCP Shield in Claude Code, Cursor or VS Code

Runs npx -y @sophiacave/mcp-shield on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add mcp-shield -- npx -y @sophiacave/mcp-shield
Add to Cursor

What the publisher says

From the MCP Shield repository's README, as published. We do not edit it. Read it on GitHub

MCP Shield

<!-- mcp-name: io.github.sophiacave/mcp-shield -->

Open-source security scanner for MCP servers. 20 rules across 6 categories. Scan any server in seconds. Get a grade from A to F.

36.7% of MCP servers are SSRF-vulnerable (BlueRock, 2026). 82% have path traversal flaws. Only 17% are production-ready. MCP Shield finds the vulnerabilities before attackers do.

Quick Start

git clone https://github.com/sophiacave/mcp-shield
cd mcp-shield

# Scan a file
python3 src/cli.py scan path/to/mcp_server.py

# Scan a project
python3 src/cli.py scan path/to/mcp-project/

What It Checks (20 Rules)

Testing

python3 tests/test_integration.py
# 28 tests, 0 failures

MCP Server Integration

Add to ~/.claude/mcp.json:

{
  "mcpServers": {
    "mcp-shield": {
      "command": "python3",
      "args": ["/path/to/mcp-shield/src/mcp_server.py"]
    }
  }
}

Claude Code tools: shieldscanfile, shieldscandirectory, shieldscancode

Example Output

MCP Shield: my-server/ — 3 finding(s)

  [CRIT] SSRF-01: Potential SSRF: Dynamic URL from user input
    requests call with dynamic URL that may include user input
    Location: server.py:45
    Fix: Validate URL against allowlist. Block internal IPs.
    CWE: CWE-918

  [HIGH] INJ-03: Command injection: subprocess with shell=True
    subprocess called with shell=True. User input in args = RCE.
    Location: tools.py:112
    Fix: Use subprocess with shell=False and pass args as list.
    CWE: CWE-78

  [MED] AUTH-01: No authentication detected on tool handlers
    MCP tool handlers found but no auth logic detected
    Fix: Add authentication middleware.
    CWE: CWE-306

Grade: F | 1 critical, 1 high, 1 medium

Features

  • Zero dependencies — Pure Python, no pip installs required
  • 20 security rules across SSRF, path traversal, injection, auth, config, and logging
  • CWE references — Every finding maps to a Common Weakness Enumeration ID
  • Actionable fixes — Each finding includes specific remediation steps
  • A-F grading — Instant security posture assessment
  • Dual mode — Run as CLI or as an MCP server inside Claude Code
  • Fast — Scans a typical MCP server in under 1 second

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

MCP Shield: common questions

Is MCP Shield MCP server safe?
With care: it is graded C, so read the findings first (66/100). Read the MCP Shield safety report
How do I install MCP Shield?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does MCP Shield need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is MCP Shield maintained?
The last commit was 148 days ago (2026-06-09). The latest release is v1.0.7.
What can I use instead of MCP Shield?
Servers from other publishers that do the same job: SafeWeave MCP server, Zn Gate MCP server and Security Suite MCP server.
How does MCP Shield compare with other Security MCP servers?
safety score 66/100 (higher than 23% of 915 Security servers); downloads a week 41 (more than 33% of 248 Security servers with a package). Full comparison.

Alternatives to MCP Shield

Same job from other publishers: the closest match first, then the best rated.

  • SafeWeave
    Security scanner for AI-written code: SAST, secrets, dependencies, IaC, containers and DAST.
    C
  • Zn Gate
    The local security layer for coding agents: secret redaction, injection checks and an MCP proxy.
    B
  • Security Suite
    Bundle of secret-scanner, dependency-auditor, ssl-inspector, and dns-intelligence
    A
  • Skylos
    Dead code, security, secrets detection and code quality for Python, TypeScript, Go.
    C
  • CodeInspectus
    Local-first MCP security scanner and CLI for AI-generated applications.
    C

More from sophiacave →