network-device-assistant
Enables Claude Code to interact with network devices over serial and SSH with command safety classification and a persistent knowledge base.
README
Network Device Assistant — MCP Server for Claude Code
A local MCP server that gives Claude Code direct access to network devices via serial console and SSH, with a built-in safety layer and persistent knowledge base.
What it does
- Connect to devices over serial (COM ports) or SSH
- Send CLI commands with automatic safety classification
- Build a growing knowledge base from every session (device profiles, known issues, command library)
- Search scripts, manuals, and customer configs from a shared folder
Safety model
| Risk level | Example commands | Behaviour |
|---|---|---|
| Safe | show, ping, display, traceroute | Executes immediately |
| Dangerous | configure, reload, write, delete | Requires confirmed=true |
| Blocked | format flash, erase startup-config, factory-default | Always blocked |
Quick start
1. Install dependencies
pip install -r requirements.txt
2. Configure paths
cp mcp-server/config.example.yaml mcp-server/config.yaml
Edit config.yaml and set onedrive_root to your shared folder path.
3. Register with Claude Code
cp mcp_config.example.json mcp_config.json
Edit mcp_config.json with the full path to mcp-server/server.py, then:
claude mcp add network-assistant --config mcp_config.json
4. Create your context folder
cp -r context.example context
Fill in context/device_profiles.md with your devices.
Project structure
SSH Plugin/
mcp-server/
server.py MCP entry point
safety.py Command risk classifier
config.example.yaml Config template (copy to config.yaml)
local-api/
session_manager.py Session tracking
serial_service.py pyserial serial console
ssh_service.py paramiko SSH
file_service.py Context file search and read/write
context.example/ Safe template context files
context/ Your knowledge base (gitignored)
sessions/ Session logs (gitignored)
requirements.txt
Knowledge base
Operational knowledge lives in context/ as plain markdown files:
| File | Contents |
|---|---|
device_profiles.md |
Per-device connection details, baud rates, interface maps |
known_issues.md |
Documented symptoms and resolutions |
command_library.md |
CLI command reference by device family |
troubleshooting_history.md |
Log of past sessions |
Claude writes to these automatically during sessions — baud rates, working commands, resolved issues — so every session is smarter than the last.
Device notes
RAD ETX
- Use
infofor running config (notshow running-config— that is Cisco syntax) - To check router interfaces:
configure router 1→info→exit - ETX devices often use non-standard baud rates — confirm before connecting
Requirements
- Python 3.11+
- Claude Code with MCP support
- Windows (serial port access via pyserial)
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.