Published November 20, 2025
Autonomous port recovery with Junos MCP
JuniperLLM AgentsMCPAutomation
The problem
When a port on a backbone router starts flapping, someone usually gets a phone call at 3 a.m. Junos MCP Server was built to take the human out of that loop.
The loop
The agent runs a short cycle of observing, deciding and acting:
- Polls the interface state via NETCONF/PyEZ
- Correlates CRC errors with the last-flap timers
- Decides whether a safe port restart (bounce) will help
- Applies the change and verifies that the port has recovered
agent> set interfaces ge-0/0/3 disable; commit
commit complete
agent> delete interfaces ge-0/0/3 disable; commit
ge-0/0/3 oper-status UP - recovered autonomously
Why MCP
Model Context Protocol gives the model a small, audited set of tools. The model has no shell access, and every action is scoped and logged.