netmiko-mcp

v0.3.0
netmiko-mcp Checked 6 hours ago Published 21 days ago

MCP Server for Netmiko Network Automation Library.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_groups

List all device groups defined in the inventory. Returns a JSON-encoded list of group name strings.

list_devices

List devices from the Netmiko inventory. You can query by 'all' (default), a specific 'group-name', or a 'device-name'. Returns a JSON string containing device configurations (excluding credentials).

ParameterTypeDescription
device_or_groupstring

send_show_command

Connect to a network device and execute a show command. Args: device_name: The exact name of the device from the inventory. command: The CLI command to execute (e.g. 'show ip int brief'). use_textfsm: Set to True to attempt parsing the output into structured JSON data using ntc-templates. save_output: If True, always save output to disk and return the filename instead of the raw output. Useful when you intend to refer back to the output multiple times without re-running the command. If save_output is False…

ParameterTypeDescription
command *string
device_name *string
save_outputboolean
use_textfsmboolean

send_show_command_to_group

Connect to a group of devices concurrently and execute a show command on each. Args: device_or_group: A device group name or device name from the inventory. command: The CLI command to execute on all devices (e.g. 'show version'). use_textfsm: If True, attempt to return parsed structured JSON data. save_output: If True, save per-device output to files and return file paths instead of raw output. Returns: A dict mapping each device name to its output (or saved file path).

ParameterTypeDescription
command *string
device_or_group *string
save_outputboolean
use_textfsmboolean

list_device_outputs

List saved output files for a device, group, or all devices. Args: device_or_group: A device name, group name, or 'all'. Returns: A dict mapping each device name to a list of saved filenames (newest first). Devices with no saved output are included with an empty list.

ParameterTypeDescription
device_or_group *string

read_device_output

Read a previously saved output file for a specific device, with pagination. Args: device_name: The device name whose output directory to read from. filename: The exact filename as returned by list_device_outputs. offset: Line number to start reading from (0-indexed). Defaults to 0. limit: Maximum number of lines to return per call. Defaults to 500. The response header shows the line range and total line count. If more lines remain, a continuation hint tells you which offset to use on the next call.

ParameterTypeDescription
device_name *string
filename *string
limitinteger
offsetinteger

ping

A simple health check tool to verify the MCP server is responding.