MCP-Shield
Runtime security gateway, shadow workspace isolation, and active honey-token deception for the Model Context Protocol (MCP).
MCP-Shield protects AI coding agents against indirect prompt injection, silent credential exfiltration, test-suite RCE, and mid-session tool rug-pulls without modifying your existing MCP servers.
Quickstart
pip install mcp-shield-proxy
1. Audit & Wrap Your Agent Config
Scan your existing MCP client configuration for Lethal Trifecta risks and generate a shielded configuration (<config>.shield.json):
mcp-shield init --config mcp_config.json
2. Launch the Control Server & Web Console
Run inside your target project directory:
mcp-start
Opens the live security console at http://127.0.0.1:8000 (use --no-browser or --project-dir <path> to customize).
3. Check Resolved Paths
mcp-shield status
Core Security Pillars
- SHA-256 Tool Pinning: Fingerprints every tool's name, description, and input schema on
tools/list. Mid-session schema or description mutations trigger an immediateRUG_PULL_DETECTEDblock (-32002). - Shadow Copy Isolation: Once a session reads untrusted external data (
UNTRUSTED_READ), writes and safe reads are transparently redirected into an isolated shadow workspace (~/.mcp-shield/temp_shadows/<session_id>) while real.envfiles remain untouched. - Offline Docker Sandbox: Terminal commands (
run_terminal) execute inside a network-disabled (--network=none), resource-capped Docker container (mcp-shield-sandbox) mounted strictly to the shadow workspace. - Honey-Token Deception & Exit-Door Freeze: Sensitive file reads (
.env,.ssh,id_rsa,secrets) serve per-session decoy honey-tokens. OutboundEXIT_DOORcalls (post_comment,send_email,git_push) are scanned across raw, reversed, URL-encoded, and Base64 forms (TRAP_TRIGGERED), and clean exit calls freeze for explicit human approval.
Metadata
Release files for mcp-shield-proxy 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mcp_shield_proxy-0.1.0.tar.gz | 186.4 kB | Without provenance | Details for mcp_shield_proxy-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mcp_shield_proxy-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mcp_shield_proxy-0.1.0-py3-none-any.whl |
Total release size: 279.2 kB
Release files / mcp_shield_proxy-0.1.0.tar.gz
| Download URL | mcp_shield_proxy-0.1.0.tar.gz |
|---|---|
| Size | 186.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d50457e7fec6e4d02fae73d18e1708e38f5e6981e18dbb7bdc4f110a13464ab
|
|
BLAKE2b-256 checksum How to use checksums |
03f491a230bc70ac40a1cbe321bbe48c31f36e490e8ed339a52444e37ac78f9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.2
|
Release files / mcp_shield_proxy-0.1.0-py3-none-any.whl
| Download URL | mcp_shield_proxy-0.1.0-py3-none-any.whl |
|---|---|
| Size | 92.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ff127a1f78b68b83f7333d8748b665101d6dff516c3ee6b0f4a4b9bcea6171d9
|
|
BLAKE2b-256 checksum How to use checksums |
63d946bbf2f02a9f692ca69b9e8f720b027bc9871c65773fbe3793dc5c8580e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.2
|
Security for mcp-shield-proxy 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.