Static scanner and MCP server that checks MCP projects for secrets, unsafe execution, prompt injection, and other security risks.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by MCP Shield.
Security scanner and MCP server for Model Context Protocol servers, tools, prompts, and AI agent projects.
MCP gives agents access to tools. MCP Shield helps you catch the obvious dangerous parts before they reach production: leaked secrets, shell execution, risky tool descriptions, prompt-injection text, and CI-breaking security regressions.
MCP servers often expose powerful capabilities: filesystem access, shell commands, network calls, credentials, browser automation, databases, and internal tools.
That is exactly where small mistakes become expensive:
MCP Shield is the simple first line of defense: fast static checks, useful output, and a non-zero exit code when risk crosses your threshold.
.mcp-scan-ignore for fixtures and intentional demos| Risk | Examples |
|---|---|
| Hard-coded secrets | API keys, tokens, passwords, private keys |
| Process execution | subprocess, child_process, shell=True |
| MCP tool risk | tools named or described as delete, shell, token, secret, filesystem |
| Environment access | os.environ, process.env |
| Prompt injection text | "ignore previous instructions", system prompt leakage phrases |
From a local checkout:
Run without installing:
Run MCP Shield as a stdio MCP server:
Available tools:
scan_path_tool - scan a local MCP server or agent projectlist_rules - list rule IDs and descriptionsExample Claude Desktop-style command:
Formats:
text for humansjson for automationmarkdown for PR comments and reportssarif for GitHub code scanningSeverity gates:
lowmediumhighcritical--fail-on high exits with code 1 when any high or critical finding exists.
Create .mcp-scan-ignore in the scanned directory:
Use this for intentional fixtures and demos. Do not use it to hide production risks.
Suppress a reviewed finding on the same line:
Use all only for test fixtures:
Scan the intentionally unsafe example:
pipx install mcp-shieldAdd these GitHub topics for discovery:
GitHub recommends repository topics because they help people discover and contribute to projects by purpose and subject area.
MCP Shield is a static heuristic scanner. It catches common risks early, but it is not a full security audit.
MCP security is moving fast. The most useful contributions right now are real-world unsafe MCP examples, low-noise detection rules, and CI integrations.
If MCP Shield catches something useful, star the repo so more MCP builders can find it.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/rob925-mcp-shield)<a href="https://allmcps.com/mcp/rob925-mcp-shield"><img src="https://allmcps.com/api/badge/rob925-mcp-shield?style=directory" alt="MCP Shield on AllMCPs" /></a>