mcp-bandit

v0.1.1 safe
3.2
Low Risk

Security scanner for Model Context Protocol (MCP) servers

📦 Package Quality Overall: Low (4.8/10)

✦ High Test Suite 9.0

Test suite present — 8 test file(s) found

  • Test runner config found: pyproject.toml
  • 8 test file(s) detected (e.g. adodbapitest.py)
◈ Medium Documentation 5.0

Some documentation present

  • Detailed PyPI description (6577 chars)
○ Low Contributing Guide 4.0

No contributing guide or governance files found

  • Development Status classifier >= Beta
◈ Medium Type Annotations 5.0

Partial type annotation coverage

  • 471 type-annotated function signatures detected in source
○ Low Multiple Contributors 1.0

Could not retrieve contributor data from GitHub

  • GitHub API error: 401

🔬 Heuristic Checks

⚠ Outbound Network Calls score 9.0

Found 6 network call pattern(s)

  • et") [if h = httpx] - ``urllib.request.urlopen`` → ("urllib.request", "urlopen") - ``subproce
  • value # Two-level: urllib.request.urlopen or subprocess.run if isinstance(value, ast.
  • CP003 — Tainted URL passed to urllib.request.urlopen # -------------------------------------------------
  • enRule(Rule): """MCP003: urllib.request.urlopen called with a tainted URL argument.""" rule_i
  • tion = "Tainted URL passed to urllib.request.urlopen — potential SSRF" remediation = ( "Val
  • essage="Tainted URL passed to urllib.request.urlopen — potential SSRF.", remediation
⚠ Code Obfuscation score 4.0

Found 2 obfuscation pattern(s)

  • ICKLED: res = pickle.loads(res) if is_exception: raise res
  • ss from exc retval = pickle.loads(pickled_response) if status == b"EXCEPTION":
⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • Return True if the call has ``shell=True``.""" for kw in call.keywords: if kw.arg == "
  • - # MCP004 — subprocess with shell=True and tainted argument # -----------------------------------
  • "MCP004: subprocess call with shell=True and a tainted argument.""" rule_id = "MCP004" s
  • ent passed to subprocess with shell=True — command injection" remediation = ( "Never p
  • nted input to subprocess with shell=True. " "Use a list of arguments instead of a shell str
  • ent passed to subprocess with shell=True — " "potential command injection."
✓ Credential Harvesting

No credential harvesting patterns detected

✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

No author email provided

⚠ Suspicious Page Links score 2.0

Found 1 suspicious link(s) on the package page

  • Non-HTTPS external link: http://`
⚠ Git Repository History score 3.0

GitHub API error: 401

  • GitHub API error: 401
⚠ Maintainer History score 4.0

2 maintainer concern(s) found

  • Only one version has ever been released — brand new package
  • Author "giridharpandurangi" appears to have only 1 package on PyPI (new or inactive account)
✓ Known CVE Vulnerabilities

No known vulnerabilities found in OSV database.

💡 AI App Starter Prompt

Use this prompt to build a project with mcp-bandit
Build a simple Python application using the mcp-bandit package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

No discussion yet. Be the first to share your thoughts!