1. Conduid
  2. Developer Tools
  3. RustJunosMCP
MCP server · Developer Tools

RustJunosMCP

MCP server for Juniper Junos devices, built on rustnetconf.

54Fair

Scored 4 hours ago · breakdown

About RustJunosMCP

RustJunosMCP is an MCP server published by mechubsec in the Developer Tools category: mCP server for Juniper Junos devices, built on rustnetconf. Conduid read 48 tools from its source: add_device, apply_junos_change_set, approve_junos_change_set, cancel_junos_change_set, check_srx_feature_license, collect_jtac_support_bundle and 42 more. No package is published for it, so it installs from a source checkout.

The repository has 4 stars and 1 forks, and its last commit was on 2 Dec 2026. Conduid has no tagged release on record for it. Its topics include juniper, junos, mechub, netconf, netsecops and network-automation.

Install

From source
git clone https://github.com/mechubsec/rustjunosmcp

Tools (48)

add_deviceAdd a Junos device to the in-memory inventory and persist to devices.json. Required fields: device_name, device_ip, username, auth (ssh_key or password). port defaults to 22. With clients that advertise elicitation, missing fields are prompted; otherwise the call returns MissingArguments.
apply_junos_change_setApply an approved change set to the device. The change set must have been approved by a second principal, and the device fingerprint must match the expected state. When confirm_timeout_mins is set, the change set stays 'applied' regardless of whether the confirming commit arrives; use get_junos_change_set_status to see the actual outcome.
approve_junos_change_setApprove a change set created by a different principal. The approver must provide the exact plan digest to confirm they reviewed the plan. After approval, the owner can apply the change set.
cancel_junos_change_setCancel a Planned or Approved change set, freeing the per-principal pending slot. The caller must be either the owner or have approver authority. Idempotent: already-Cancelled sets return success. Rejects Applied/Applying sets.
check_srx_feature_licenseCheck whether a named SRX security feature (IDP, AppID, UTM Antivirus, Web Filtering, Anti-Spam, SecIntel, ATP Cloud, SSL Proxy) has a valid license installed on the device. Returns state=not_configured when no matching license record is present (including the expected lab case where only eval/trial licenses are installed). Output is redacted: config/device values matching known secret patterns are replaced before being returned; structure and non-secret values are preserved.
collect_jtac_support_bundleCollects a JTAC-ready diagnostic bundle for the named router. problem_type accepts a closed enum value (chassis_cluster, vpn, traffic_loss, idp_appid, routing, generic) OR an array of values for multi-symptom cases. The 'generic' value short-circuits and runs `request support information | save /var/tmp/srxmcp-<rid>.tgz` on the device — fetch via the rust-junosmcp `fetch_file` tool. Per-type values capture the universal baseline (get-configuration, get-software-information, get-system-uptime-information, get-system-alarm-information) plus type-specific RPCs, and assemble the tarball on the MCP host under JMCP_SRX_STAGING_DIR (default /var/lib/jmcp/srx-staging/bundles/<router>/srxmcp-<rid>.tgz). The response's bundle.location field is 'device' or 'lxc_staging'. Caller-supplied request_id is a validated correlation label used only in response metadata and audit logs. Filesystem paths always use a separate server-minted srxmcp-<uuid> returned as filesystem_id. Concurrent calls against the same router serialize on an in-process per-router semaphore and surface contention as [code=bundle_per_router_contention]. Captured artefacts are additionally redacted by a dedicated, more precise pass (locked element/key-name and Junos-hash rules) before they are written into the tarball.
commit_check_configValidate a candidate configuration on a Junos device without committing (commit check). Loads config into a candidate, runs commit-check, returns {success, diff, error?}, then discards the candidate. Never activates config. Output is redacted: config values matching known secret patterns (Junos type-9 reversibly-encrypted secrets, PSKs, SNMP communities, RADIUS/TACACS secrets, and similar) are replaced before being returned; structure, hostnames, and non-secret values are preserved.
confirm_commitSend the confirming commit for a commit-confirmed window opened by load_and_commit_config, rollback_config, or render_and_apply_j2_template (not apply_junos_change_set — use confirm_junos_change_set for that). Cancels the device's pending automatic rollback. A harmless no-op commit if no window is open.
confirm_junos_change_setConfirm a provisional commit made with confirm_timeout_mins, cancelling the device's automatic rollback. Must be called by the principal that applied the change set, before the rollback deadline returned by apply_junos_change_set.
create_junos_change_setCreate a change set (plan) for two-person approval workflow. Returns a change_set_id and plan_digest. The plan must be approved by a second principal before it can be applied.
discard_candidateDiscard uncommitted candidate configuration changes on a Junos device (rollback 0), returning the candidate to the running config. Never changes the running config. Use to recover a candidate left dirty (e.g. 'configuration database modified'). Output is redacted: config values matching known secret patterns (Junos type-9 reversibly-encrypted secrets, PSKs, SNMP communities, RADIUS/TACACS secrets, and similar) are replaced before being returned; structure, hostnames, and non-secret values are preserved.
execute_junos_commandExecute a Junos command on the device. Supports optional max_lines/max_bytes/tail output caps, and honors trailing '| last N' / '| count'. Output is redacted: config values matching known secret patterns (Junos type-9 reversibly-encrypted secrets, PSKs, SNMP communities, RADIUS/TACACS secrets, and similar) are replaced before being returned; structure, hostnames, and non-secret values are preserved.
execute_junos_command_batchRun N operational CLI commands across M devices, parallel across devices, sequential per device. Returns a per-device array of {command, ok, value?, error?} entries. Supports optional max_lines/max_bytes/tail output caps, and honors trailing '| last N' / '| count'. Output is redacted: config values matching known secret patterns (Junos type-9 reversibly-encrypted secrets, PSKs, SNMP communities, RADIUS/TACACS secrets, and similar) are replaced before being returned; structure, hostnames, and non-secret values are preserved.
execute_junos_pfe_commandExecute a single PFE-shell command on one device via 'request pfe execute target <fpc> command "<cmd>"'. Supports optional max_lines/max_bytes/tail output caps, and honors trailing '| last N' / '| count'. Output is redacted: config values matching known secret patterns (Junos type-9 reversibly-encrypted secrets, PSKs, SNMP communities, RADIUS/TACACS secrets, and similar) are replaced before being returned; structure, hostnames, and non-secret values are preserved.
execute_junos_rpcCall a read-only Junos RPC (name starting with `get-`) known to the API catalog, instead of parsing CLI text. Find the RPC name and its arguments first with lookup_junos_api. `args` maps argument names to a string, or to true for an `empty` flag. Unknown arguments, non-`get-` RPCs, RPCs a probed cSRX refused (on a cSRX) and values containing `<`, `>`, `&`, quotes or control characters are refused. The RPC's CLI equivalent (e.g. `show arp`) plus the arguments is checked against the same command allow/blocklist as execute_junos_command. Returns the XML reply, redacted like execute_junos_command output, with the same optional max_lines/max_bytes/tail caps; `timeout` covers the whole call. `warning` is set when the catalog train differs from the device's.
fetch_fileDownload a file from a Junos device's /var/tmp/<basename> to the host staging directory, with sha256 verification. Mirror of transfer_file.
gather_device_factsGather Junos device facts from the device. Output is redacted: config values matching known secret patterns (Junos type-9 reversibly-encrypted secrets, PSKs, SNMP communities, RADIUS/TACACS secrets, and similar) are replaced before being returned; structure, hostnames, and non-secret values are preserved.
get_chassis_cluster_statusChassis-cluster topology + health snapshot. Returns state=not_configured for standalone SRX devices. Output is redacted: config/device values matching known secret patterns are replaced before being returned; structure and non-secret values are preserved.
get_device_listGet the Junos devices visible to this caller. Returns [] when the caller's device scope has no current inventory matches. Set include_blocklist=true (requires the get_device_list.include_blocklist tool scope; a wildcard scope grants it) to return {name, blocklist} objects with each device's effective policy mode and its commands/config/pfe_commands rules and allow/allowed_pipes/pfe_allow/pfe_allowed_pipes entries, each with its inventory location; defaults are listed before device rules, which is a listing and not an evaluation order.
get_junos_candidate_fingerprintRead the device's candidate-configuration fingerprint. Use this first: create_junos_change_set requires the fingerprint so the plan is bound to the exact candidate it was reviewed against. This is a read; it takes no lock and does not modify the candidate.
get_junos_change_set_statusGet the status of a change set. 'Applied' means the apply was executed and staged - NOT that the configuration is still live on the device. commit_confirmation, when present, reports awaiting_confirmation (a confirm window is open; rollback_deadline_unix carries the deadline), presumed_auto_reverted (it closed with no confirmation recorded here and the device has not yet shown the outcome), auto_reverted (the device showed the revert: the commit is superseded and no longer pending, and the candidate is back at its pre-apply fingerprint; operation_state is then discarded and the device is free for the next apply), discarded (an operator reconciled it with state resolve), indeterminate (reconciled AS COMMITTED but the window has since closed, which stored state cannot resolve - check the device), or committed. committed means the configuration is live and is also what an ordinary commit reports, so it is not evidence that a confirm window was used.
get_junos_configGet the configuration of the device. Returns the full running config by default. Pass config_path (also accepted as 'filter'; e.g. 'system services', 'security policies', 'interfaces ge-0/0/0') to retrieve only a subtree, reducing token usage and limiting exposure to secrets the caller did not ask for. Pass inherit=true to expand apply-groups (adds '| display inheritance', all formats); default false. Supports optional max_lines/max_bytes/tail output caps. Invalid paths, and arguments this tool does not recognise, return an error rather than silently falling back to the full config. Output is redacted: config values matching known secret patterns (Junos type-9 reversibly-encrypted secrets, PSKs, SNMP communities, RADIUS/TACACS secrets, and similar) are replaced before being returned; structure, hostnames, and non-secret values are preserved.
get_router_listDEPRECATED: Use get_device_list instead. Get the Junos routers visible to this caller. Returns [] when the caller's router scope has no current inventory matches.
get_srx_feed_statusRead-only status of the mecfeedmcp dynamic-address feeds an SRX pulls (`security dynamic-address feed-server` entries whose feed path is `/feeds/junos-dynamic-address/address` or `/prefix`). Per node and per feed returns feed_server, feed_name, address_name, kind (address or prefix), the url (userinfo, query and fragment removed; path kept), entries, next_update, last_update_status and error. Missing or unparsed device fields are null, never guessed. state=not_configured when no such feed is subscribed. Junos does not report the feed ETag; compare `entries` and `last_update_status` with the feed server. Feed user-name and password are used only to scrub device text and are never returned; tls-profile is never read. Output is redacted: config/device values matching known secret patterns are replaced before being returned; structure and non-secret values are preserved.
get_srx_security_services_statusReports the health and version of up to five SRX security services (IDP, AppID, UTM Anti-Virus, SecIntel, ATP/AAMW) in a single call. Each sub-service is independently classified as active or not_configured. The overall state is not_configured only when all five sub-services are absent. Output is redacted: config/device values matching known secret patterns are replaced before being returned; structure and non-secret values are preserved.
junos_config_diffGet the configuration diff against a rollback version. Output is redacted: config values matching known secret patterns (Junos type-9 reversibly-encrypted secrets, PSKs, SNMP communities, RADIUS/TACACS secrets, and similar) are replaced before being returned; structure, hostnames, and non-secret values are preserved.
list_junos_change_setsList change sets, optionally filtered by device. Returns all change sets (planned, approved, applied, expired, failed) across devices in scope, or for a single device if specified. Provides the recovery path when an expired change set blocks creating a new one.
list_junos_skillsList the Junos skills this server carries: workflow and judgement guidance (API lookup, config paths, EX switching, NETCONF) that goes with the tools. Returns [{name, description, uri}]. Read one with read_junos_skill. Use this when your client does not surface MCP skills itself. Read-only.
list_staged_filesList host-staging files (always); also lists /var/tmp/ on a Junos device when device is supplied
load_and_commit_configLoad and commit configuration on a Junos device. Output is redacted: config values matching known secret patterns (Junos type-9 reversibly-encrypted secrets, PSKs, SNMP communities, RADIUS/TACACS secrets, and similar) are replaced before being returned; structure, hostnames, and non-secret values are preserved.
lookup_junos_apiLook up a Junos operational RPC or configuration path in the embedded API catalog. Call this BEFORE issuing an RPC or CLI command (execute_junos_command) or writing configuration, instead of guessing RPC names, arguments or config syntax. Results are per Family (junos-es, junos-ex, junos-evo) and Release train (23.1 or later): pass `router` to use the device's own model and version, or `family` + `release` (e.g. junos-es, 24.4) when no device is reachable. `kind` is `rpc` (default) or `config`; `query` is an RPC name, CLI command, config path or keywords; an exact RPC name also returns the reply element tree, 3 levels deep. If the result has a `warning`, the answer comes from a nearby train, a train with catalog gaps, or another family (SRX on Junos OS Evolved is answered from junos-es), or the device is a cSRX, whose reduced CLI refuses many catalog RPCs (each hit then carries `csrx`: how a probed cSRX handled the RPC and its CLI; never use a `refused` one), so verify against the device. Read-only.
manage_appid_signature_packageDESTRUCTIVE on the `download_and_install` and `uninstall` actions: updates or removes the AppID application signature package on an SRX device. Three actions: `check_server` (read-only — returns installed + latest version from signatures.juniper.net), `download_and_install` (downloads and installs the latest or a pinned `version`), and `uninstall` (removes the currently-installed application package and protocol bundle). Destructive verbs use a two-call confirmation protocol: call 1 with `confirm=false` returns `[code=confirmation_required]` carrying a `plan` and short-lived `confirmation_token`; call 2 supplies both `confirm=true` and that caller-bound, one-time token. `download_and_install` short-circuits with `status=already_at_target` when every node already runs the requested version.
manage_idp_security_packageDESTRUCTIVE on the `download_and_install` and `rollback` actions: updates / reverts the IDP signature package on an SRX device. Three actions: `check_server` (read-only — returns installed + latest version from signatures.juniper.net), `download_and_install` (downloads and installs the latest or a pinned `version`), and `rollback` (reverts to the device's preserved previous package). Destructive verbs use a two-call confirmation protocol: call 1 with `confirm=false` returns `[code=confirmation_required]` carrying a `plan` and short-lived `confirmation_token`; call 2 supplies both `confirm=true` and that token. Tokens are caller-bound and one-time. `download_and_install` short-circuits with `status=already_at_target` when every node already runs the requested version.
read_junos_skillRead a file of a Junos skill by name (see list_junos_skills). `path` is relative to the skill directory and defaults to SKILL.md; a skill's SKILL.md names its reference files. Absolute paths and `..` are refused. Read-only.
reload_devicesReload the inventory. With no args, re-reads the current --device-mapping. With file_name, swaps to a new inventory file. Reports added/removed/changed device names.
render_and_apply_j2_templateRender a Jinja2 template (inline) with JSON vars. Optionally commit the rendered config to one or more devices; supports dry-run. (YAML vars are no longer accepted as of v0.5.2.)
rollback_configLoad a Junos rollback archive (rollback N, 0-49) into the candidate. Preview mode (commit=false, default): loads, diffs, discards — stateless and safe. Commit mode (commit=true): loads and commits, CHANGING THE RUNNING CONFIGURATION and potentially disrupting connectivity; supports confirmed-commit with auto-rollback after N minutes. Version 0 = candidate vs running (discard); N>=1 = Nth-previous archived config. NOTE: Restores a previously-committed archived configuration and does NOT re-apply the config blocklist. This scope should be treated as full config-change authority, equivalent to load_and_commit_config. Output is redacted: config values matching known secret patterns (Junos type-9 reversibly-encrypted secrets, PSKs, SNMP communities, RADIUS/TACACS secrets, and similar) are replaced before being returned; structure, hostnames, and non-secret values are preserved.
srx_flow_sessionsFiltered, hard-capped flow-session query (`show security flow session`). At least one filter (source_prefix, destination_prefix, source_port + protocol, destination_port + protocol, protocol, application, or session_identifier) is required unless acknowledge_unfiltered=true, in which case the query is still capped (default 200, hard ceiling 2000) and reported as truncated rather than silently returning everything that fit. Chassis-cluster session ownership is not synced across nodes, so sessions are grouped per node (re_name) and never merged into one table. Before any full walk, the device's own session-count summary is queried (with the same filters applied); when that count exceeds the cap, or can't be determined, the full walk is refused outright (never issued) — regardless of whether a filter was supplied — and the response reports total_count_reported with truncated=true. Output is redacted: config/device values matching known secret patterns are replaced before being returned; structure and non-secret values are preserved.
srx_list_nat_rulesLists source, destination, and static NAT rules, independently per kind. Match criteria carry unresolved address/address-set names, same as srx_list_policies — use srx_resolve_address to expand them. Optionally fetch and join per-rule hit counts (`include_hit_counts`, three extra RPC round trips; a failed or unparsable join degrades to hit_count=None rather than failing the call). `limit` caps rules per kind (default 500); `truncated` is set if any kind was cut short. Output is redacted: config/device values matching known secret patterns are replaced before being returned; structure and non-secret values are preserved.
srx_list_policiesLists security policies by from-zone/to-zone context, including global policies (zone `"any"`) and, optionally, per-policy hit counts. Names on each policy (addresses, applications) are returned unresolved — use srx_resolve_address / srx_resolve_application to expand them. Paginated via `limit`/`offset` (default limit 500); `truncated` and `total_count` in the response make any cutoff explicit rather than silent. Output is redacted: config/device values matching known secret patterns are replaced before being returned; structure and non-secret values are preserved.
srx_policy_matchDeterministic "would this traffic be allowed" answer for a 5-tuple (`show security match-policies`) — the device's own verdict, never a model's inference from the policy list. verdict is one of permit / deny / reject / no_match; no_match (device default-policy fallthrough, no explicit policy matched) is distinct from an explicit deny/reject policy match, and carries default_action (deny or permit) for whichever default-policy the device applies. is_global marks a matched zone-independent (any/any) policy. The 5-tuple (source_ip, destination_ip, source_port, destination_port, protocol) is parsed into typed values and rejected with a typed error before any RPC is sent if malformed. Output is redacted: config/device values matching known secret patterns are replaced before being returned; structure and non-secret values are preserved.
srx_resolve_addressResolves a Junos address or address-set name (global, or scoped to a zone's own address-book) to its flattened, deduplicated concrete leaves — prefixes, ranges, wildcards, or DNS names. Nested sets are walked recursively in this tool, never on the device; reference cycles are rejected rather than looped. DNS-name leaves are returned as-is — this tool never performs its own DNS resolution. `truncated` is set if the flattened member count exceeds the cap. Output is redacted: config/device values matching known secret patterns are replaced before being returned; structure and non-secret values are preserved.
srx_resolve_applicationResolves a Junos application or application-set name — including `junos-*` predefined defaults — to its flattened, deduplicated concrete protocol/port leaves. Nested sets are walked recursively in this tool, never on the device; reference cycles are rejected rather than looped. `junos-*` defaults are served from a compiled-in static table when the device does not expose its `junos-defaults` group over NETCONF (a live device definition always takes precedence over the static table). `truncated` is set if the flattened member count exceeds the cap. Output is redacted: config/device values matching known secret patterns are replaced before being returned; structure and non-secret values are preserved.
srxmcp_statusDiagnostic — returns this server's version, endpoint name, and uptime in seconds.
transfer_filePush a local file from the staging dir to /var/tmp/ on a Junos device via SCP. Idempotent on matching SHA-256.
upgrade_junosDESTRUCTIVE: installs a new Junos image and REBOOTS the device. Outage ~5-7 min. Requires confirm=true to proceed; first call with confirm=false returns a ConfirmationRequired error containing the upgrade plan (current version, target version, image, free disk, estimated outage). v1 supports standalone devices only; chassis clusters are refused.
validate_chassis_cluster_healthRuns 8 chassis-cluster diagnostic RPCs (cluster status, interfaces, information, data-plane / control-plane statistics, per-RE software, alarms, uptime) and emits an ordered findings list with a rolled-up verdict (pass / warn / fail). Standalone SRX devices short-circuit to state=not_configured. Each Finding has check_id (red_led, disabled_secondary, control_link_failure, major_alarm, minor_alarm, recent_reboot, version_skew), severity, message, and optional structured detail. Verdict precedence: fail > warn > pass. Pass-through cluster_status snapshot is included when the cluster RPC succeeded. include_raw=true appends concatenated raw RPC XML. Output is redacted: config/device values matching known secret patterns are replaced before being returned; structure and non-secret values are preserved.
vpn_lifecycle_reportCorrelates IKE (Phase-1) and IPsec (Phase-2) security associations for VPN troubleshooting. Returns state=active with IKE SA list, IPsec SA list, and correlations when VPN is configured (even if no SAs are currently up). Returns state=not_configured only when both IKE and IPsec RPCs report that the security stanza is absent. Optionally filter by `peer` (substring match against both IKE remote address and IPsec gateway) and/or `tunnel` (substring match against IPsec remote gateway — the brief-style IPsec RPC does not surface the st0 interface name). Output is redacted: config/device values matching known secret patterns are replaced before being returned; structure and non-secret values are preserved.

Security checks

6 checks have not been run yet.

Questions

About RustJunosMCP

How do I install RustJunosMCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is RustJunosMCP safe to use with an AI agent?

Its trust score is 54 out of 100 (fair). Conduid hasn't run static security checks on this repository yet, so review the source yourself before granting it credentials. It has no ConduID identity yet, so agent calls to it are not receipted.

Is RustJunosMCP still maintained?

Yes — the last commit was 10 hours ago. The repository has 4 stars and 1 forks.

What tools does RustJunosMCP provide?

Conduid read 48 tools from the source: add_device, apply_junos_change_set, approve_junos_change_set, cancel_junos_change_set, check_srx_feature_license, collect_jtac_support_bundle, commit_check_config, confirm_commit and 40 more.