mcp-fence

v0.1.2 safe
3.0
Low Risk

Local-first security scanner, MCP protocol inspector, dynamic fuzzer, sandbox runner, and report generator for Model Context Protocol 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. test_cli_smoke.py)
◈ Medium Documentation 5.0

Some documentation present

  • Detailed PyPI description (8686 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

  • 134 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 3.0

Found 2 network call pattern(s)

  • try: r = httpx.post( f"{self.endpoint.rstrip('/')}/api/chat",
  • try: r = httpx.post( f"{self.endpoint.rstrip('/')}/chat/completi
⚠ Code Obfuscation score 10.0

Found 6 obfuscation pattern(s)

  • 37", "title": "Use of eval()/exec() in source", "severity": Severity.HIGH,
  • _CODE, "rationale": "`eval()`/`exec()` on any attacker-influenced string is an RCE prim
  • .compile(r"\bos\.popen\(") # `eval(` / `exec(` as a *bare call* only — not `model.eval()`, `df.
  • *bare call* only — not `model.eval()`, `df.eval()`, # `self.exec(...)`, etc. The negative lookb
  • nly — not `model.eval()`, `df.eval()`, # `self.exec(...)`, etc. The negative lookbehind rejects
  • euristics otherwise fire on ``eval(`` inside a ``# comment`` or a docstring. We tokenize an
⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • =m.group(0), msg="os.system() invokes a shell.", ) for m in _PY_OS_POPEN.fin
  • ommand("python -c 'import os; os.system(\"echo hi\")'") assert any(f.rule_id == "MCPG001" for f
  • =m.group(0), msg="os.popen() invokes a shell.", ) for m in _PY_EVAL.findite
  • nput. try: proc = subprocess.run( cmd, shell=True, captur
  • , "") try: proc = subprocess.run( f"echo {shlex.quote(str(text))}", s
  • an.docker_command) return subprocess.run( plan.docker_argv, capture_output=True,
✓ Credential Harvesting

No credential harvesting patterns detected

✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

Email domain looks legitimate: gmail.com>

✓ 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 4.0

2 maintainer concern(s) found

  • Author name is missing or very short
  • Author "" 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-fence
Build a simple Python application using the mcp-fence package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

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