network-mcp-server
Provides tools for network operations on Cisco devices, including backup, compliance auditing, and configuration retrieval.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
network-mcp-server
MCP server for network operations — lets AI assistants (Claude Code, Claude Desktop, or any Model Context Protocol client) talk to your Cisco/Juniper network through safe, well-defined tools.
"Is rtr-core-01 compliant?" → the assistant calls
run_compliance_audit, reads the findings and explains which rules failed — no copy-pasting configs into a chat.
Built on the official MCP Python SDK (FastMCP) with the domain logic from
python-netops-tools — the same engine behind the
netops CLI and the network-api-portal REST API.
Tools exposed
Tool | Network access | What it does |
| none | Devices from the YAML inventory (name, IP, platform) |
| none | Saved config backups with timestamps |
| none | Content of a device's most recent backup |
| none | Audits the latest backups against the YAML rules |
| SSH to device | Pulls and saves the running config (the only write-path tool) |
The split is deliberate: four read-only tools the assistant can call freely, and one clearly-documented tool that touches the network — MCP clients ask for user approval per tool, so risky actions stay visible.
Related MCP server: nornir-mcp-server
Installation
python3 -m venv .venv && source .venv/bin/activate
pip install -e ../python-netops-tools # domain logic (or its git URL)
pip install -e ".[dev]"Hooking it up to Claude Code
claude mcp add network-ops \
--env NETMCP_INVENTORY=/path/to/devices.yml \
--env NETMCP_RULES=/path/to/rules.yml \
--env NETMCP_BACKUP_DIR=/path/to/backups \
--env NETOPS_USER=admin \
--env NETOPS_PASSWORD=your-password \
-- /path/to/network-mcp-server/.venv/bin/network-mcpThen just ask: "list my network devices", "run a compliance audit", "show me the config of mx-edge-01".
Hooking it up to Claude Desktop
claude_desktop_config.json:
{
"mcpServers": {
"network-ops": {
"command": "/path/to/network-mcp-server/.venv/bin/network-mcp",
"env": {
"NETMCP_INVENTORY": "/path/to/devices.yml",
"NETMCP_RULES": "/path/to/rules.yml",
"NETMCP_BACKUP_DIR": "/path/to/backups",
"NETOPS_USER": "admin",
"NETOPS_PASSWORD": "your-password"
}
}
}
}Configuration
Variable | Default | Purpose |
|
| Device inventory |
|
| Compliance rules |
|
| Where configs are stored/read |
| — | SSH credentials (only needed by |
Design notes
Read-only by default: every question-answering path works from saved backups; only
backup_deviceopens an SSH session, and its docstring says so explicitly so both the model and the human approving the call know.Prescriptive tool descriptions: each docstring states when to call the tool, not just what it does — that's what drives correct tool selection by the model.
Thin server, reusable core:
server.pyonly declares tools;operations.pybridges to netops-tools and is fully unit-tested. CLI, REST API and MCP server all share one engine.
Tests
pytestRuns entirely offline (temporary inventories; the SSH path is exercised with a monkeypatched backup function).
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
Hosted MCP server connecting AI assistants to 9,000+ apps and 40,000+ actions via Zapier.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP server for Juniper networks, enabling AI assistants to execute CLI commands, manage configuration, perform upgrades, and run diagnostics on Junos devices via STDIO transport.28103 PyPI1Apache 2.0
- FlicenseAqualityFmaintenanceAn MCP server that integrates Nornir with NAPALM and Netmiko, enabling LLMs to orchestrate multi-vendor network infrastructure through natural language.52-
- AlicenseAqualityDmaintenanceA comprehensive MCP server for network device management via SSH/Telnet. Supports multiple vendors such as Cisco IOS and BDCOM, enabling AI assistants to execute commands and manage routers, switches, and firewalls.4MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI agents to manage Defined Networking / Managed Nebula infrastructure, supporting tasks like network topology design, host provisioning, and security auditing through natural language.4MIT