home / mcp / netbrain mcp server
Provides a production-ready MCP server to manage multi-vendor network devices via MCP, with topology, prompts, and resource delivery.
Configuration
View docs{
"mcpServers": {
"ikoreyoshii-netbrain_mcp": {
"command": "python",
"args": [
"server.py"
]
}
}
}NetBrain MCP is an open platform that connects large language models to network devices using the Model Context Protocol. It enables your AI assistant to manage, diagnose, and configure diverse network gear through a standardized MCP interface, delivering a unified control plane for multi-vendor environments.
You will run a local MCP server and connect your MCP client to it. Use the provided MCP commands to start the server in development or production modes, then access the web UI or invoke MCP tools to manage devices, run commands, discover topology, and render AI prompts for network tasks.
Prerequisites: Python 3.10+ and a working Python environment. You may also leverage the MCP development tool for running the server.
# Optional: create and activate a virtual environment
python3 -m venv venv
source venv/bin/activate
# Install dependencies (production path)
pip install -r requirements.txt
# Start the server (Python run)
python server.py
# Alternative: run via MCP developer tool
mcp run server.py
# Alternative: start with MCP Inspector (debug UI)
mcp dev server.pyRunning the server in production typically involves installing dependencies and starting the Python-based MCP server. You can also start via MCP tooling to enable development workflows and debug interfaces.
# Start using the Python command directly
python server.py
# Start via MCP tooling
mcp run server.py
# Start with the development inspector for debugging
mcp dev server.pyList network devices registered in the MCP system, with optional filters by vendor, type, status, or tags.
Add a new network device with vendor, model, credentials, and connection details.
Retrieve detailed information for a specific device by its ID.
Update device properties such as credentials, connection parameters, or tags.
Remove a device from the MCP system.
Add credentials used to access devices (e.g., SSH keys, passwords, or token-based methods).
List stored device credentials for management and reuse.
Open a live connection to a device to run commands or start an interactive session.
Terminate an active device connection.
Send a single command to a connected device and return its output.
Send multiple commands to a connected device and return aggregated output.
Show all currently open device connections and their status.
Automatically discover network topology using CDP/LLDP and build a topology model.
Fetch the currently discovered topology data.
Clear the stored topology information.
Retrieve neighbor information for a specific device.
Discover neighbors for a single device and update topology.
Obtain statistics about the discovered topology, such as device count and links.
Scan an IP range to identify devices and services.
Return results from the latest network scan.
Provide statistics about the latest scan, including device findings.
Create device entries from scan results for auto-import.
Clear stored scan results and cache.
Scan a single IP address or hostname.
List available MCP resources that can be provided to LLMs.
Retrieve a specific resource by its URI.
Clear the resource cache to force fresh retrieval.
List available AI prompt templates for network tasks.
Render a prompt template with a given context for an LLM.
Test connectivity to a device using the Scrapli driver.
Test Telnet connectivity to a device.
Send a command over an active Telnet session.