
MCP Shield
io.github.sophiacavePublished by GitHub account sophiacavev1.0.7Updated Oct 24, 2026
Security scanner for MCP servers. SSRF, path traversal, injection, auth, secrets. Grade A-F.
Overview
A local MCP server that scans MCP server source code for security flaws such as SSRF, path traversal, injection, missing auth and hardcoded secrets, and grades
- What you can do
- Scan a single source file for security findings with rule IDs, severity, location and CWE references, plus a suggested fix and an A–F grade. Scan a whole project directory the same way. Scan pasted code snippets without a file on disk. Findings cover SSRF, path traversal, injection, authentication, configuration and logging rules.
- When to use it
- Useful when reviewing or auditing an MCP server's code before deploying it, or when you want a quick security posture check with concrete remediation hints inside an assistant session.
- Requirements
- Runs as a local process on the user's machine, started with python3 against the project's MCP server script; the README says it is pure Python with no pip installs. Desktop only; no web executable.
Installation
In SourceWeft
- Open MCP Shield in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
MCP Shield
[License: MIT] [Python 3.10+] [Tests: 28 passing] [MCP Compatible]
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
What It Checks (20 Rules)
Testing
MCP Server Integration
Add to ~/.claude/mcp.json:
Claude Code tools: shield_scan_file, shield_scan_directory, shield_scan_code
Example Output
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
Why This Exists
The MCP ecosystem has 9,400+ servers and 97M monthly SDK downloads. Security tooling hasn't kept up. We built MCP Shield because every MCP server deployed without a security scan is a liability.
Built by Like One, a 501(c)(3) nonprofit. Security tooling should be free.
License
MIT — Like One
Source: README.md at commit 7064e61
Tools
0Version history
1- v1.0.7LatestSep 16, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.