Skip to main content
Glama

Network MCP Lab

A Model Context Protocol (MCP) server for interacting with network devices. This lab demonstrates how to build an MCP server that connects to Cisco IOS-XE devices using Scrapli.

Video Series

This lab accompanies the video series available at: https://youtu.be/DlSJgTCUCDk

Related MCP server: Device MCP Server

Features

  • Execute show commands on network devices

  • List available devices in the lab inventory

  • Async SSH connections using Scrapli

Setup

  1. Clone the repository

  2. Install dependencies using uv:

    uv sync
  3. Create a .env file with your device credentials:

    LAB_USERNAME=your_username
    LAB_PASSWORD=your_password
  4. Update the device inventory in server.py with your device IPs

Usage

Run the MCP server:

uv run server.py

Project Structure

  • server.py - Main MCP server with network tools

  • network-mcp/ - Package directory

  • pyproject.toml - Project configuration

Requirements

  • Python 3.13+

  • Network devices accessible via SSH

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    A 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.
    4
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    A lightweight MCP server that exposes read-only Cisco MDS NX-OS show commands as tools, allowing LLM clients to inspect SAN fabric in plain language.
    2
    -
  • A
    license
    Not graded
    quality
    C
    maintenance
    An MCP server that enables operating network devices through chat, using netmiko for SSH/Telnet connections with command allowlists, enable password support, and configuration-change tools (disabled by default).
    MIT