Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/juniper/junos-mcp-server/claude-mdgit clone --depth 1 https://github.com/Juniper/junos-mcp-serverWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/juniper/junos-mcp-server/claude-md)<a href="https://agentmods.dev/instructions/juniper/junos-mcp-server/claude-md"><img src="https://agentmods.dev/badge/instructions/juniper/junos-mcp-server/claude-md.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.01198 | $0.01198 |
| Opus 5 | $0.00599 | $0.00599 |
| Sonnet 5 | $0.00240 | $0.00240 |
| Haiku 4.5 | $0.00120 | $0.00120 |
Grade A, and why
junos-mcp-server CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
This is a Model Context Protocol (MCP) server for Juniper Junos network devices. It enables LLMs to interact with Juniper network equipment through a standardized interface using the FastMCP framework and Juniper's PyEZ library.
Key Commands
Running the Server
# Install dependencies
pip install -r requirements.txt
# Run with stdio transport (for Claude Desktop)
python3.11 jmcp.py -f devices.json -t stdio
# Run with streamable-http transport (for VSCode)
python3.11 jmcp.py -f devices.json -t streamable-http -H 127.0.0.1 -p 30030
# Docker build
docker build -t junos-mcp-server:latest .
# Docker run (stdio)
docker run --rm -it -v /path/to/devices.json:/app/config/devices.json junos-mcp-server:latest
# Docker run (streamable-http)
docker run --rm -it -v /path/to/devices.json:/app/config/devices.json -p 30030:30030 junos-mcp-server:latest python jmcp.py -f /app/config/devices.json -t streamable-http -H 0.0.0.0
Testing and Development
- Run the unit tests with
make test(orpython -m unittest discover -s tests -v) - Code style is enforced with Black (configured in
pyproject.toml); check withblack --check .and auto-format withblack .. CI runs Black and the unit tests (.github/workflows/ci.yml). - Live testing against devices requires a valid Junos device configuration in JSON format
Architecture
The server implements 9 MCP tools in jmcp.py:
- execute_junos_command - Execute arbitrary CLI commands on routers
- execute_junos_command_batch - Execute the same command on multiple routers in parallel
- execute_junos_pfe_command - Execute a PFE (packet forwarding engine) command on an FPC
- get_junos_config - Retrieve device configuration (uses
show configuration | display inheritance no-comments) - junos_config_diff - Compare configuration versions (rollback comparison)
- render_and_apply_j2_template - Render a Jinja2 template and load/commit it
- gather_device_facts - Collect device information using PyEZ facts
- get_router_list - List available routers from the configuration
- load_and_commit_config - Apply configuration changes (supports set/text/xml formats)
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 103 lines · 1,198 tokens per session scan A 290710e32161
junos-mcp-server CLAUDE.md is an instructions file published in the GitHub repository Juniper/junos-mcp-server (106 stars, last pushed 19d ago), licensed Apache-2.0. It adds 1,198 tokens to every session, about $0.0060 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
brilliant_sdk AGENTS.md
Instructions for brilliantlabsAR/brilliant_sdk, covering brilliant sdk — agent guide, how an app works (the pattern behind everything), minimal reading paths, verify without hardware and testing.
NeoMind CLAUDE.md
Instructions for camthink-ai/NeoMind, covering neomind — edge ai platform for iot, development commands, ecosystem repositories, extension package contract (.nep) and device type template contract (json).
AMD-BC-250-Windows-Driver AGENTS.md
Instructions for Keshas-dev/AMD-BC-250-Windows-Driver, covering amd bc-250 windows driver — agent notes, host machine, ⚠️ historical-data caution (2026-08-21, strengthened), fresh re-verifications (current build, 2026-08-21) and workspace boundary.
Nothan-OS CLAUDE.md
Instructions for Vinalinux-Org/Nothan-OS, covering claude.md — nothanos, hard rules, toolchain, driver and design philosophy.
zmk-config AGENTS.md
AGENTS.md instructions for urob/zmk-config, covering customization guide, ground rules, how the multi-board layout works, adding a new board and where to change what.
ext-apps CLAUDE.md
Claude Code instructions for modelcontextprotocol/ext-apps, a project described as: Official repo for spec & SDK of MCP Apps protocol - standard for UIs embedded AI chatbots, served by MCP servers.