network-mcp-server
Provides tools for network operations on Cisco devices, including backup, compliance auditing, and configuration retrieval.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@network-mcp-serverrun a compliance audit"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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: gNMIBuddy
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
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/edutacara/network-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server