Home / netmcp-readonly
€49netmcp-readonly
Let an AI agent look at the network without being one hallucinated reload from an outage
Read-only Network MCP Server
Buy — €49 · coming soonone-time · Commercial single-team license, perpetual, 1.x updates included.
The problem
Everyone wants an LLM agent that can answer "which leaf interfaces are down?" and nobody wants that agent holding a writable SSH session. This is an MCP server for network devices where the worst case is a wrong answer, not an outage, with guardrails your security team can read.
What it does
- MCP server over stdio or streamable HTTP (loopback by default; non-loopback needs a bearer token)
- 12 tools: devices, interfaces, interface detail, routing table/lookup/summary, BGP, OSPF, CDP/LLDP, version, allowlisted
run_show, enumerated config sections, list of allowed commands - Deny-first command guard plus a per-platform regex full-match allowlist; no pipes, no abbreviations, ASCII only, 120 chars max
- Callers pass device names from the inventory, never addresses
- Per-device rate limit and concurrency cap; output size cap (32 KiB default)
- JSONL audit log of every call, including refusals
- Credentials from environment only; refuses to start without them; no shell or subprocess
- Netmiko backend (IOS/IOS-XE, NX-OS, Junos, Arista EOS) and an offline mock backend for demos and CI
What's in the box
src/netmcp/source (guard, service, server, backends, audit, rate limiter)tests/: 420 pytest tests, about 300 of them adversarial, run offlineexamples/: inventories, Claude Desktop and HTTP client configs, env file, systemd unit, offline demo- README, CHANGELOG, LICENSE, pyproject.toml
Usage
python examples/demo_offline.py # no devices, no credentials
netmcp-readonly --inventory inventory.yaml # stdio
$ netmcp-readonly --check-command ios "show version | include x"
REFUSED: command contains forbidden characters
$ netmcp-readonly --check-command ios "show ip bgp summary"
ALLOWED: show ip bgp summary
Requirements
- Python 3.11 or newer
- An MCP client (e.g. Claude Desktop or any stdio/HTTP MCP client)
- A read-only device account and SSH source restriction (recommended defence in depth)
- Device host keys in
known_hosts(strict checking is the default)
Limitations / what it is not
- Read-only by design: there are no write tools.
- The netmiko path was not run against live hardware in this build; only its parameters are unit-tested. Test in your lab first.
- The allowlist is intentionally conservative; you may need to add commands.
- HTTP auth is a single shared bearer token; put it behind TLS for anything beyond localhost.
- Rate-limit state is per process. Audit
clientis empty unless your deployment sets it. - Platforms: IOS/IOS-XE, NX-OS, Junos, EOS. No Palo Alto, Fortinet etc.
- Defence in depth, not a substitute for device-side controls.
FAQ
What is the license?
Commercial single-team license, perpetual, 1.x updates included.
Refunds?
14 days, no questions asked. See Legal.
How do I get support?
By email: [email protected].
Where it came from
Written up on the blog first:
Buy — €49 · coming soonone-time · Commercial single-team license, perpetual, 1.x updates included.
Tested Lab-tested
| Product version | 1.0.1 |
|---|---|
| Last run | 2026-11-24 |
| Result (install and tests) | PASS |
| Platforms | Debian 12; Debian 13; Ubuntu 24.04; Rocky Linux 9; Cisco IOS-XE (CSR1000v 17.3, Catalyst 8000V 17.11); Cisco NX-OS (Nexus 9000v 10.2.3); Arista EOS (vEOS-lab 4.29.2F) |
What was tested, and how
- Install the customer zip into clean containers, CLI smoke test, full test suite against the installed copy
How: pip install of the unzipped artifact,--help, pytest - Read tools against live devices: version, interfaces, routing summary, OSPF neighbours (two-node lab), config sections
How: A real MCP client over stdio talks to the server, which logs in to the virtual devices with a read-only account - Refusals: configure mode, pipes/redirects and unknown hosts are refused and audited; the device config stays unchanged
How: The same MCP client sends forbidden commands and checks the[refused]/[unknown_device]answers
Live device results (same run)
| Check | Result | Detail |
|---|---|---|
| lab-cisco (01/02/10 vs CSR1000v) | PASS | 8 PASS, 0 FAIL |
| live matrix: c8000v | PASS | 22 PASS, 0 FAIL |
| live matrix: nxos | PASS | 6 PASS, 0 FAIL |
| live matrix: eos | PASS | 2 PASS, 0 FAIL |
Not tested
- Junos: offline tests only
Method and lab setup: How we test.