Networkx MCP Server

networkx-mcp-server PyPI v2.0.0

Published by bright-l01 — 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.

NetworkX MCP Server with Security Fortress - Enterprise-grade secure graph analysis with AI-powered threat detection

Trust grade
A
93/100
Last scanned get badge →
Trust
A · 93/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
Minimal
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 94 − adoption risk = 93/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 − 6.3 = 94. What the published surface and source actually contain:

PointsWhat was foundCategory
−6.3 Unsafe deserialization MTC-SRC-007 permissions

2. Client adoption risk — 94 − 1 = 93. 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
−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

medium Unsafe deserialization (src/networkx_mcp/core/io_handlers.py)MTC-SRC-007

In the server's implementation (`src/networkx_mcp/core/io_handlers.py:855`): Deserializing untrusted data with these APIs can execute arbitrary code (a well-known RCE gadget class). This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: s f: return pickle.load(f) # nosec B301 - documented security warning above @staticmethod def _exp

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 src/networkx_mcp/core/io_handlers.py

low Reads a sensitive credential path or dumps the environment in packaging/dev tooling (tests/unit/test_security_validation.py)MTC-SRC-006

In a packaging/dev/install script (shipped, but not the server runtime) (`tests/unit/test_security_validation.py:228`): 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: "../../.ssh/id_rsa", "/root/.bashrc", "C:\\Windows\\System32\\config\\sam",

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/unit/test_security_validation.py

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

In a packaging/dev/install script (shipped, but not the server runtime) (`tests/e2e/test_e2e_workflow.py:51`): 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: proc = subprocess.Popen( [sys.executable, "-m", "networkx_mcp", "--jsonrpc"], s

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/e2e/test_e2e_workflow.py

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

In a packaging/dev/install script (shipped, but not the server runtime) (`tests/integration/redis/test_redis_reality.py:83`): 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: self.server_process = subprocess.Popen( [sys.executable, "run_secure_server.py"], 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 tests/integration/redis/test_redis_reality.py

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

In a packaging/dev/install script (shipped, but not the server runtime) (`tests/integration/run_integration_tests.py:18`): 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: tests result = subprocess.run( [sys.executable, "-m", "pytest", "tests/integration/test_mcp_clients

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/integration/run_integration_tests.py

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

In a packaging/dev/install script (shipped, but not the server runtime) (`tests/integration/test_all_transports.py:13`): 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: ransport...") process = subprocess.Popen( [sys.executable, "-m", "networkx_mcp.server", "stdio"], stdin=subproce

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/integration/test_all_transports.py

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

In a packaging/dev/install script (shipped, but not the server runtime) (`tests/integration/test_mcp_clients.py:167`): 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: request proc = subprocess.Popen( [sys.executable, "-m", "networkx_mcp", "--jsonrpc"], s

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/integration/test_mcp_clients.py

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

In a packaging/dev/install script (shipped, but not the server runtime) (`tests/integration/test_server_startup.py:18`): 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: transport process = subprocess.Popen( [sys.executable, "-m", "networkx_mcp.server", "sse", "8765"],

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/integration/test_server_startup.py

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

In a packaging/dev/install script (shipped, but not the server runtime) (`tests/integration/test_stdio_server.py:17`): 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: (default) process = subprocess.Popen( [sys.executable, "-m", "networkx_mcp.server", "stdio"], stdin=

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/integration/test_stdio_server.py

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

In a packaging/dev/install script (shipped, but not the server runtime) (`tests/mcp_client/test_real_mcp_clients.py:293`): 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: module result = subprocess.run( ["python", "-c", "import networkx_mcp.server"], capture_

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/mcp_client/test_real_mcp_clients.py

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

In a packaging/dev/install script (shipped, but not the server runtime) (`tests/production/honest_validation.py:278`): 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: server try: proc = subprocess.Popen([ sys.executable, '-m', 'networkx_mcp' ], stdin=subprocess.PIPE, st

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/production/honest_validation.py

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

In a packaging/dev/install script (shipped, but not the server runtime) (`tests/test_memory_fixed.py:20`): 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)...") proc = subprocess.Popen( [sys.executable, "-m", "networkx_mcp.server_minimal"], stdin=s

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_memory_fixed.py

low Dynamic module load from a non-literal in packaging/dev tooling (tests/test_feature_audit.py)MTC-SRC-005

In a packaging/dev/install script (shipped, but not the server runtime) (`tests/test_feature_audit.py:18`): 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: t(".") module = __import__(f"networkx_mcp.{module_path}", fromlist=[class_name]) cls = getattr(module, c

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_feature_audit.py

low Dynamic module load from a non-literal in packaging/dev tooling (tests/unit/test_handlers_comprehensive.py)MTC-SRC-005

In a packaging/dev/install script (shipped, but not the server runtime) (`tests/unit/test_handlers_comprehensive.py:121`): 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: s: module = __import__(module_name, fromlist=[class_name]) handler_class = getattr(module, class

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/unit/test_handlers_comprehensive.py

Tools 7

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

  • add_edgesno sensitive capability
  • add_nodesno sensitive capability
  • centrality_measuresno sensitive capability
  • create_graphno sensitive capability
  • delete_graphno sensitive capability
  • get_graph_infono sensitive capability
  • shortest_pathno sensitive capability

What this scan could not see

Versions 1

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
v2.0.0 latest A 93/100 14 1.13.0 2026-08-25

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 · 93/100
Markdown (GitHub README)
[![MCP Trust Score](https://mcptrustchecker.com/registry/networkx-mcp-server/badge.svg)](https://mcptrustchecker.com/registry/networkx-mcp-server)
HTML
<a href="https://mcptrustchecker.com/registry/networkx-mcp-server"><img src="https://mcptrustchecker.com/registry/networkx-mcp-server/badge.svg" alt="MCP Trust Score" height="20"></a>
Prefer shields.io styling? Point it at https://mcptrustchecker.com/registry/networkx-mcp-server/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 networkx-mcp-server --online --registry pypi

Use the free API → How scoring works

More in Learning & Documentation