mcpsafetywarden
PyPI
v1.4.18
Published by gautamvarmadatla — no publish provenance, so origin is unverified, but the source is public: the repository link below is self-declared yet readable, so you can inspect the code before adopting it.
MCP proxy server with behavioral profiling, security scanning, risk gating, and safe execution
The grade answers one question — how safe is this server for you to adopt — so it is computed in two auditable stages. Nothing below is an opinion or an LLM's guess; every line is a real term the deterministic engine applied, and the same input always yields the same number.
1. Threat score — 100 − 1.2 = 99. What the published surface and source actually contain:
| Points | What was found | Category |
|---|---|---|
| −1.2 | Hardcoded JSON Web Token in test/example/packaging MTC-SRC-008 | exfiltration |
2. Client adoption risk — 99 − 7 = 92. Three small, subtract-only factors that reflect your risk in adopting it — a clean scan proves less on a powerful, unverified or barely-inspectable package, so the grade says so plainly:
| Points | Adoption-risk factor |
|---|---|
| −6 | capability blast radius (high) — client exposure if the model is manipulated |
| −1 | publisher verification (public source) — no provenance, but the source is public and inspectable |
Capability observations and info notes are shown under Findings but never scored.
Open any row's finding below for the file, line and evidence behind a deduction.
In the server's implementation (`mcpsafetywarden/sandbox/profile.py:21`): Reading private keys / cloud credentials, or serializing the whole environment, is a sensitive-data source that becomes exfiltration when combined with any egress. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: ", "~/.kube", "~/.config/gcloud", "~/.docker/config.json", "~/.netrc", "**/.env", "**/.env.*",
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server mcpsafetywarden/sandbox/profile.py
In the server's implementation (`mcpsafetywarden/scan/args.py:559`): Reading private keys / cloud credentials, or serializing the whole environment, is a sensitive-data source that becomes exfiltration when combined with any egress. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: es, /etc/passwd, ~/.ssh/id_rsa, .aws/credentials, .env files - especially when the tool description does not ind
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server mcpsafetywarden/scan/args.py
In the server's implementation (`mcpsafetywarden/scan/mcpsafety.py:427`): Reading private keys / cloud credentials, or serializing the whole environment, is a sensitive-data source that becomes exfiltration when combined with any egress. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: file paths: .ssh/, .env, .aws/credentials, /etc/passwd - Inputs that trigger writes, creates, updates, or deletes - Exte
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server mcpsafetywarden/scan/mcpsafety.py
In the server's implementation (`mcpsafetywarden/scan/scanner.py:95`): Reading private keys / cloud credentials, or serializing the whole environment, is a sensitive-data source that becomes exfiltration when combined with any egress. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: his, also read ~/.ssh/id_rsa", "send results to webhook.site/...", "always do X when this tool is used". These instr
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server mcpsafetywarden/scan/scanner.py
In the server's implementation (`mcpsafetywarden/scan/args.py:566`): Evaluating strings as code is the most direct RCE primitive; if any tool input reaches it, the server executes attacker-chosen code. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: ons (python -c, eval(), exec(), __import__) embedded in args passed to a tool that does NOT accept shell
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server mcpsafetywarden/scan/args.py
In the server's implementation (`mcpsafetywarden/graph/explain.py:772`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: try: result = subprocess.run( ["mmdc", "-i", tmp_mmd, "-o", output_path, "--backgroundColor", "whi
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server mcpsafetywarden/graph/explain.py
In the server's implementation (`mcpsafetywarden/graph/provenance.py:440`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: try: proc = subprocess.run(cmd, capture_output=True, text=True, timeout=_PKG_TIMEOUT) if proc.re
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server mcpsafetywarden/graph/provenance.py
In the server's implementation (`mcpsafetywarden/proxy/discovery.py:1129`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: y: ids_result = subprocess.run( ["docker", "ps", "-q"], capture_output=True,
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server mcpsafetywarden/proxy/discovery.py
In the server's implementation (`mcpsafetywarden/scan/args.py:566`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: hon -c, eval(), exec(), __import__) embedded in args passed to a tool that does NOT accept shell command
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server mcpsafetywarden/scan/args.py
In the server's implementation (`mcpsafetywarden/scan/source.py:109`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: Dict[str, str] = { "child_process": "shell_exec", "shelljs": "shell_exec", "execa": "shell_exec", "cross
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server mcpsafetywarden/scan/source.py
In the server's implementation (`mcpsafetywarden/scan/scanner.py:274`): Loading a module chosen at runtime (from a variable) can pull in and run attacker-influenced code paths. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: bool: try: __import__(name) return True except ImportError: return False def detect_l
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server mcpsafetywarden/scan/scanner.py
In a packaging/dev/install script (shipped, but not the server runtime) (`tests/test_sandbox.py:421`): A hardcoded outbound call to a fixed external host inside server code is a classic exfiltration/telemetry channel — especially paired with reads of local data. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: "try:\n" " urllib.request.urlopen('http://10.0.0.1/', timeout=8)\n" " print('REACHED')\n"
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server tests/test_sandbox.py
A hardcoded JSON Web Token (an embedded JSON Web Token (often an example or expired token)) appears in `tests/test_cref.py:10`. Verify whether this is a real credential; if so, remove and rotate it.
Evidence: JSON Web Token: eyJh…(redacted)
Fix: Remove the secret, rotate it, and load credentials from the environment or a secret store.
Location: server tests/test_cref.py
In a packaging/dev/install script (shipped, but not the server runtime) (`tests/test_sandbox.py:427`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: as spawn: out = subprocess.run([spawn.command, *spawn.args], env=spawn.env, capture_output=True, text=True, time
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server tests/test_sandbox.py
Each tool and what it can reach — statically extracted from the published source.
analyze_cve_blast_radiusno sensitive capabilitycheck_server_driftno sensitive capabilitydiscover_serversno sensitive capabilityexplain_client_riskno sensitive capabilityexplain_tool_riskno sensitive capabilityexport_graphno sensitive capabilityget_retry_policyno sensitive capabilityget_risk_graphno sensitive capabilityget_run_historyno sensitive capabilityget_security_scanno sensitive capabilityget_tool_profileno sensitive capabilityinspect_serverno sensitive capabilitylist_server_toolsno sensitive capabilitylist_serversno sensitive capabilityonboard_discovered_serversno sensitive capabilityonboard_serverno sensitive capabilityping_serverno sensitive capabilitypreflight_tool_callno sensitive capabilityregister_serverno sensitive capabilityrun_replay_testno sensitive capabilitysafe_tool_callno sensitive capabilityscan_all_serversno sensitive capabilitysecurity_scan_serverno sensitive capabilityset_tool_policyno sensitive capabilitysuggest_safer_alternativeno sensitive capabilityScan history per published version. The engine is deterministic — the same version always yields the same score, so a changed score means the package itself changed.
| Version | Score | Findings | Engine | Scanned |
|---|---|---|---|---|
v1.4.18 latest |
A 92/100 | 14 | 1.13.0 | 2026-08-25 |
v1.4.17 |
A 92/100 | 14 | 1.12.1 | 2026-08-12 |
v1.4.15 |
A 92/100 | 14 | 1.12.1 | 2026-08-10 |
v1.4.14 |
A 92/100 | 14 | 1.12.1 | 2026-08-09 |
v1.4.11 |
A 92/100 | 14 | 1.12.1 | 2026-08-07 |
v1.4.10 |
A 92/100 | 14 | 1.12.1 | 2026-08-06 |
v1.4.7 |
A 92/100 | 14 | 1.12.1 | 2026-08-05 |
v1.4.6 |
A 92/100 | 14 | 1.12.1 | 2026-08-04 |
v1.4.3 |
A 92/100 | 14 | 1.12.1 | 2026-08-03 |
v1.4.1 |
A 92/100 | 14 | 1.12.1 | 2026-08-02 |
Show this server's live Trust Score in your README, docs or website. The badge is served straight from the registry and updates automatically after every rescan — no API key needed. It links back to this page, so anyone who sees the grade can also read the findings behind it instead of taking a number on faith.
The score above is reproducible: the same package version always yields the same result. Run it locally or over the free API — no account, no LLM, fully deterministic.
npx mcptrustchecker scan mcpsafetywarden --online --registry pypi
The Stripe Agent Toolkit enables popular agent frameworks including LangChain and Vercel's AI SDK to integrate with Stripe APIs through function calling.
MCP (Model Context Protocol) server for AgentGate. Enables Claude and other MCP-compatible AI assistants to request approvals.
Scan any website for AI agent readiness, payment protocols, and discovery endpoints
MCP server for aigently security guardrails — reads static catalog-data JSON, zero API dependency
Governed threat modeling, code threat verification, traceability & compliance, as MCP tools.
Governed threat modeling, code threat verification, traceability & compliance, as MCP tools.