Discover shadow MCP
Inventory configured MCP servers across supported clients and projects, including local and remote targets that may not be centrally tracked.
MCPShield scans Model Context Protocol deployments for dangerous configurations, vulnerable packages and poisoned tools—then adds runtime policy enforcement, tamper-evident auditing and agent observability.
Every MCP server can add code, capabilities and model-visible instructions to an agent session. MCPShield gives engineering and security teams a practical way to discover that surface, assess it, lock reviewed definitions and enforce policy at runtime.
Inventory configured MCP servers across supported clients and projects, including local and remote targets that may not be centrally tracked.
Check configs, launchers, packages, permissions, secrets, remote endpoints and tool metadata before an agent depends on them.
Put a policy guard between client and server to block risky calls, redact secrets, deny sampling and preserve an auditable record.
Detect secrets, unsafe shell/download-and-execute patterns, excessive filesystem scope, insecure remotes and vulnerable, malicious or unpinned packages.
Inspect live server metadata without calling tools. Analyze descriptions and schemas for poisoning, Unicode hiding, shadowing and exfiltration-oriented parameters.
Record reviewed tool definitions and detect later changes before a protected tool call is allowed.
Wrap stdio MCP servers with policy enforcement for tools, arguments, sensitive paths, private networks, sampling and result handling.
Trace MCP sessions and tool calls with OpenTelemetry-compatible spans and security context without requiring a hosted telemetry service.
Move findings into the workflows teams already use: console, JSON, SARIF, Markdown, HTML and CI fail thresholds.
MCPShield is designed around a progressive workflow. Static discovery and configuration assessment come first. Live inspection and runtime controls are explicit steps—not hidden side effects.
Find MCP configurations and build an inventory.
Score config, package, endpoint and tool risks.
Lock reviewed tool definitions to detect changes.
Enforce policy and trace real agent activity.
Monitor mode can observe without mutating proxied output. Enforce mode adds configured controls.

Keep static analysis local, export SARIF into code scanning, send traces to your own OTLP backend, or wrap selected stdio servers with policy enforcement. You choose the operating model.
Install the current release candidate directly from the public repository. Package and container registry publishing remain intentionally disabled while we collect external feedback.
git clone https://github.com/Nullvora/MCPShield.git
cd MCPShield
python -m venv .venv
source .venv/bin/activate
python -m pip install .
mcpshield --version
mcpshield scan --auto
.venv\\Scripts\\Activate.ps1MCPShield is security tooling, not a magic boundary. The project documents what it can detect, where it can enforce policy and where platform isolation is still required.
Malformed protocol messages, invalid policy and incomplete pin verification are treated as security conditions rather than silently accepted.
Argument capture for audit and OTLP is opt-in, audit keys are isolated from child processes and static scans do not require a hosted service.
The runtime guard is defense in depth—not an OS sandbox. Hostile servers still belong behind container, process and network controls.
Try MCPShield on real MCP configurations. Report installation friction, false positives, false negatives, missing attack patterns and whether the findings changed how you trust or configure a server.