rustjunosmcpBLOCK
MCP server for Juniper Junos devices, built on rustnetconf.
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, anddiscard_candidateto unstick a dirty candidate. - Device lifecycle — staged
upgrade_junos(image → install → reboot → verify), SCPtransfer_file/fetch_file, PFE commands. - Scale & UX — parallel session-pooled batch (~1.7× faster),
| last N/| count
160c40382bb8OBSERVED · 2026-10-11Connect
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 mcp add rustjunosmcp:0.27.5 -- docker run -i --rm ghcr.io/mechubsec/rustjunosmcp:0.27.5:None stdio
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.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | FAIL |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (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)
"ssh_config":"/home/u/.ssh/config_jh",
assert_eq!(e.ssh_config, Some(PathBuf::from("/home/u/.ssh/config_jh")));let s = scrub_scp_stderr("Load key \"/root/.ssh/id_ed25519\": invalid format");private_key_path: "/etc/jmcp/ssh/id_ed25519".into(),
IPAddressDeny=169.254.169.254/32
.envrc
.gitleaks-vendor.toml
.gitleaks.toml
.pre-commit-config.yaml
.trivyignore.yaml
/fixture/client_key.pub /home/fixture/.ssh/authorized_keys
file_name: Some("../../../etc/shadow".into()),"../../../docs/superpowers/captures/phase3/vSRX-test19-20-cluster/\
"../../../docs/superpowers/captures/phase3/vSRX-test19-20-cluster/\
"../../../docs/superpowers/captures/phase3/vSRX-test19-20-cluster/\
"../../../docs/superpowers/captures/phase3/vSRX-test3-standalone/\
`--allowed-origin http://127.0.0.1:30030`.
--allowed-origin http://127.0.0.1:30030 --allowed-origin http://localhost:30030
--allowed-origin http://127.0.0.1:30040 --allowed-origin http://localhost:30040 \
curl -s -o /dev/null -w '%{http_code}\n' -X POST http://127.0.0.1:30030/mcp \curl -s -o /dev/null -w '%{http_code}\n' -X POST http://127.0.0.1:30040/mcp \| 15:23:49 | server: opened a fresh NETCONF session post-reboot |
**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
- **The host operator and root are trusted.** They can read device credentials from inventory.
Gates applied: no_behavioural_pass.
160c40382bb8full audit observations/trust-audit/mcp-server/mechubsec__rustjunosmcp.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-11 | 160c40382bb8 | BLOCK | D | 69 | first audit |
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.