Atlas / MCP servers / fastrevmd-lab / rustjunosmcp

rustjunosmcpBLOCK

mcp/fastrevmd-lab/rustjunosmcp

MCP server for Juniper Junos devices, built on rustnetconf.

Verdict
BLOCK
Grade
D
Trust score
69 /100
Exposed tools
—
Transport
stdio · streamable-http
License
MIT
Stars
3
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

rust-junosmcp

One MCP server for Juniper Junos and SRX devices, in Rust a mechub project — sovereign network-security automation

Unofficial / community project. This repository is an independent, community-driven project. It is not affiliated with, endorsed by, sponsored by, or supported by Hewlett Packard Enterprise or Juniper Networks. "HPE", "Juniper", "SRX", "JUNOS", "Security Director" and "Juniper Mist" are trademarks of their respective owners and are used here only to describe what this software interoperates with. Please direct support and licensing questions about those products to the respective vendors.

A Model Context Protocol server for Juniper Junos and SRX devices, written in Rust. The single rust-junosmcp process exposes the core Junos tools and, by default, the SRX security workflows through one tool registry and endpoint. It is drop-in compatible with Juniper/junos-mcp-server on the inventory format and core tool surface, but built on async Rust (rustEZ + rustnetconf) instead of PyEZ.

Beyond Juniper/junos-mcp-server

Drop-in on devices.json and the core tools — plus a lot the Python/PyEZ server doesn't have:

  • Safer config — commit_check_config (validate, never commit), confirmed commits with auto-rollback, and discard_candidate to unstick a dirty candidate.
  • Device lifecycle — staged upgrade_junos (image → install → reboot → verify), SCP transfer_file/fetch_file, PFE commands.
  • Scale & UX — parallel session-pooled batch (~1.7× faster), | last N/| count
Read from source at commit 160c40382bb8OBSERVED · 2026-10-11
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.

claude-code (oci)
claude mcp add rustjunosmcp:0.27.5 -- docker run -i --rm ghcr.io/mechubsec/rustjunosmcp:0.27.5:None stdio
03

Trust audit

BLOCKgrade D · trust 69/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (17 observation(s))
Network
declared (5 observation(s))
Shell
none-observed
Dependencies
pinned
Secrets in source
none-found

Findings (25)

HIGHFilesystem / path · fs.credential_store · CWE-22, CWE-59
rust-junosmcp-core/src/inventory.rs:593
"ssh_config":"/home/u/.ssh/config_jh",
Why it matters. touches a credential store
HIGHFilesystem / path · fs.credential_store · CWE-22, CWE-59
rust-junosmcp-core/src/inventory.rs:598
assert_eq!(e.ssh_config, Some(PathBuf::from("/home/u/.ssh/config_jh")));
Why it matters. touches a credential store
HIGHFilesystem / path · fs.credential_store · CWE-22, CWE-59
rust-junosmcp-core/src/tools/transfer_file.rs:190
let s = scrub_scp_stderr("Load key \"/root/.ssh/id_ed25519\": invalid format");
Why it matters. touches a credential store
HIGHFilesystem / path · fs.credential_store · CWE-22, CWE-59
rust-junosmcp-core/src/tools/transfer_file.rs:2170
private_key_path: "/etc/jmcp/ssh/id_ed25519".into(),
Why it matters. touches a credential store
HIGHNetwork egress · net.metadata_ip · CWE-200, CWE-319
packaging/systemd/rust-junosmcp.service:69
IPAddressDeny=169.254.169.254/32
Why it matters. cloud metadata endpoint: the classic SSRF credential grab
LOWInventory / provenance · inv.hidden_file · CWE-1104
.envrc
.envrc
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
.gitleaks-vendor.toml
.gitleaks-vendor.toml
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
.gitleaks.toml
.gitleaks.toml
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
.pre-commit-config.yaml
.pre-commit-config.yaml
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
.trivyignore.yaml
.trivyignore.yaml
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWFilesystem / path · fs.credential_store · CWE-22, CWE-59
packaging/tests/fixtures/scp-server/entrypoint.sh:11
/fixture/client_key.pub /home/fixture/.ssh/authorized_keys
Why it matters. touches a credential store
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
rust-junosmcp-core/src/tools/reload_devices.rs:362
file_name: Some("../../../etc/shadow".into()),
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
rust-junosmcp-srx-core/src/workflows/cluster_health.rs:650
"../../../docs/superpowers/captures/phase3/vSRX-test19-20-cluster/\
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
rust-junosmcp-srx-core/src/workflows/cluster_health.rs:654
"../../../docs/superpowers/captures/phase3/vSRX-test19-20-cluster/\
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
rust-junosmcp-srx-core/src/workflows/cluster_health.rs:658
"../../../docs/superpowers/captures/phase3/vSRX-test19-20-cluster/\
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
rust-junosmcp-srx-core/src/workflows/cluster_health.rs:768
"../../../docs/superpowers/captures/phase3/vSRX-test3-standalone/\
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
CHANGELOG.md:781
`--allowed-origin http://127.0.0.1:30030`.
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
docs/HOW-TO-SETUP-DOCKER.md:146
--allowed-origin http://127.0.0.1:30030 --allowed-origin http://localhost:30030
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
docs/HOW-TO-SETUP-DOCKER.md:178
--allowed-origin http://127.0.0.1:30040 --allowed-origin http://localhost:30040 \
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
docs/HOW-TO-SETUP-DOCKER.md:203
curl -s -o /dev/null -w '%{http_code}\n' -X POST http://127.0.0.1:30030/mcp \
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
docs/HOW-TO-SETUP-DOCKER.md:205
curl -s -o /dev/null -w '%{http_code}\n' -X POST http://127.0.0.1:30040/mcp \
LOWPrompt injection · prompt.transfer_instruction · CWE-94, CWE-1427
docs/spikes/2026-05-19-rmcp-streamable-http-disconnect-half-b.md:44
| 15:23:49 | server: opened a fresh NETCONF session post-reboot            |
Why it matters. an instruction to move sensitive data to an outside destination
Fix. remove; a skill never needs the user's secrets off the machine
LOWPrompt injection · prompt.transfer_instruction · CWE-94, CWE-1427
docs/superpowers/plans/2026-05-14-transfer-file-implementation.md:7
**Architecture:** Two new tool handlers in `rust-junosmcp-core/src/tools/`, wired into `rust-junosmcp/src/server.rs` alongside the existing 11 tools. Transfer uses a `ScpRunner` trait (production impl
Why it matters. an instruction to move sensitive data to an outside destination
Fix. remove; a skill never needs the user's secrets off the machine
LOWInventory / provenance · mcp.no_tools_extracted · CWE-1104
server.json
Why it matters. the tool list is enumerated at runtime by tools/list, not declared in source
Fix. the page says so rather than showing an empty table
INFOPrompt injection · prompt.credential_read · CWE-94, CWE-1427
docs/THREAT-MODEL.md:54
- **The host operator and root are trusted.** They can read device credentials from inventory.
Why it matters. asks the agent to read credentials

Gates applied: no_behavioural_pass.

Audited 2026-10-11 · audit v0.4.1 · source sha 160c40382bb8full audit observations/trust-audit/mcp-server/fastrevmd-lab__rustjunosmcp.json · Report an issue / request a re-scan
04

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-11160c40382bb8BLOCKD69first audit
05

Questions

What is the rustjunosmcp MCP server?

MCP server for Juniper Junos devices, built on rustnetconf.

Is rustjunosmcp safe to connect to an agent?

No — not without reading the findings first. The audit graded it D (69/100) and found 5 critical or high issues in the source. Each one is listed on this page with the file and line it is on.

What credentials does rustjunosmcp need?

No credential environment variables were found in its source, so it appears to need none.

How does rustjunosmcp run?

It speaks stdio and streamable-http, so it runs as a local process your client starts.

How current is this page?

The grade is for one exact copy of the source (160c40382bb8), read on 2026-10-11. The repository is watched and re-audited when it changes.

Advertisement