Mcpsafetywarden MCP Server

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

Trust grade
A
92/100
Last scanned get badge →
Trust
A · 92/100
Adoption risk for you: the threat score, then adjusted down for blast radius, publisher verification and how much the scan could see. Deterministic; every point is auditable.
Capability
High
Blast radius if it went rogue — what the server’s tools could reach. Independent of trust.
Coverage
Source
How much the scan could actually inspect. Shallow coverage is stated, never hidden.
Share this Trust Score
𝕏 Share LinkedIn Reddit
A Why this grade threat 99 − adoption risk = 92/100

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:

PointsWhat was foundCategory
−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:

PointsAdoption-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.

Findings 14

high Reads a sensitive credential path or dumps the environment (mcpsafetywarden/sandbox/profile.py)MTC-SRC-006

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

high Reads a sensitive credential path or dumps the environment (mcpsafetywarden/scan/args.py)MTC-SRC-006

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

high Reads a sensitive credential path or dumps the environment (mcpsafetywarden/scan/mcpsafety.py)MTC-SRC-006

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

high Reads a sensitive credential path or dumps the environment (mcpsafetywarden/scan/scanner.py)MTC-SRC-006

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

high Dynamic code execution in server code (mcpsafetywarden/scan/args.py)MTC-SRC-001

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

high Shell/command execution in server code (mcpsafetywarden/graph/explain.py)MTC-SRC-002

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

high Shell/command execution in server code (mcpsafetywarden/graph/provenance.py)MTC-SRC-002

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

high Shell/command execution in server code (mcpsafetywarden/proxy/discovery.py)MTC-SRC-002

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

high Shell/command execution in server code (mcpsafetywarden/scan/args.py)MTC-SRC-002

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

high Shell/command execution in server code (mcpsafetywarden/scan/source.py)MTC-SRC-002

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

medium Dynamic module load from a non-literal (mcpsafetywarden/scan/scanner.py)MTC-SRC-005

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

low Hardcoded egress to an external endpoint in packaging/dev tooling (tests/test_sandbox.py)MTC-SRC-003

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

low Hardcoded JSON Web Token in test/example/packaging (tests/test_cref.py)MTC-SRC-008

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

low Shell/command execution in packaging/dev tooling (tests/test_sandbox.py)MTC-SRC-002

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

Tools 25

Each tool and what it can reach — statically extracted from the published source.

  • analyze_cve_blast_radiusno sensitive capability
  • check_server_driftno sensitive capability
  • discover_serversno sensitive capability
  • explain_client_riskno sensitive capability
  • explain_tool_riskno sensitive capability
  • export_graphno sensitive capability
  • get_retry_policyno sensitive capability
  • get_risk_graphno sensitive capability
  • get_run_historyno sensitive capability
  • get_security_scanno sensitive capability
Show 15 more tools ↓
  • get_tool_profileno sensitive capability
  • inspect_serverno sensitive capability
  • list_server_toolsno sensitive capability
  • list_serversno sensitive capability
  • onboard_discovered_serversno sensitive capability
  • onboard_serverno sensitive capability
  • ping_serverno sensitive capability
  • preflight_tool_callno sensitive capability
  • register_serverno sensitive capability
  • run_replay_testno sensitive capability
  • safe_tool_callno sensitive capability
  • scan_all_serversno sensitive capability
  • security_scan_serverno sensitive capability
  • set_tool_policyno sensitive capability
  • suggest_safer_alternativeno sensitive capability

What this scan could not see

Versions 10

Scan 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.

VersionScoreFindingsEngineScanned
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
Show 5 more versions ↓
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

Embed this score

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.

MCP Trust Score: A · 92/100
Markdown (GitHub README)
[![MCP Trust Score](https://mcptrustchecker.com/registry/mcpsafetywarden/badge.svg)](https://mcptrustchecker.com/registry/mcpsafetywarden)
HTML
<a href="https://mcptrustchecker.com/registry/mcpsafetywarden"><img src="https://mcptrustchecker.com/registry/mcpsafetywarden/badge.svg" alt="MCP Trust Score" height="20"></a>
Prefer shields.io styling? Point it at https://mcptrustchecker.com/registry/mcpsafetywarden/badge.json via https://img.shields.io/endpoint?url=…

Verify this score yourself

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

Use the free API → How scoring works

More in Security & Testing