About Cml MCP
Cml MCP is an MCP server published by xorrkaz in the Developer Tools category: a Model Context Protocol (MCP) Server for Cisco Modeling Labs (CML). Conduid read 54 tools from its source: add_ellipse_annotation, add_interface_to_node, add_line_annotation, add_node_to_cml_lab, add_rectangle_annotation, add_text_annotation and 48 more. It is published to PyPI as cml-mcp and runs with uvx.
The repository has 82 stars and 44 forks, is licensed BSD-2-Clause, and its last commit was on 22 Nov 2026. The latest release is v0.32.2 (8 Oct 2026): This release fixes a file descriptor leak when executing CLI commands on devices. It follows v0.32.1 (2 Oct 2026), and the 5 most recent releases go back to v0.31.1 (26 Aug 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include cisco, cml, digital-twin and simulation.
Install
uvx cml-mcppip install cml-mcpgit clone https://github.com/xorrkaz/cml-mcpTools (54)
add_ellipse_annotationAdd an ellipse shape annotation to a lab canvas. Returns the annotation UUID.| Parameter | Type | Description |
|---|---|---|
| border_color * | any | |
| border_style * | any | |
| color * | any | |
| lab_id * | any | |
| rotation * | integer | |
| thickness * | integer | |
| x1 * | any | |
| x2 * | any | |
| y1 * | any | |
| y2 * | any | |
| z_index * | integer |
add_interface_to_nodeAdd a new interface to a node. Returns interface details (id, node, slot, type, MAC). Note: depending on| Parameter | Type | Description |
|---|---|---|
| lab_id * | any | |
| mac_address | any | |
| node * | any | |
| slot | any |
add_line_annotationAdd a line annotation to a lab canvas. Returns the annotation UUID.| Parameter | Type | Description |
|---|---|---|
| border_color * | any | |
| border_style * | any | |
| color * | any | |
| lab_id * | any | |
| line_end * | string | |
| line_start * | string | |
| thickness * | integer | |
| x1 * | any | |
| x2 * | any | |
| y1 * | any | |
| y2 * | any | |
| z_index * | integer |
add_node_to_cml_labAdd a node to an existing lab. Returns the new node's UUID. Default interfaces are auto-created.| Parameter | Type | Description |
|---|---|---|
| boot_disk_size | any | |
| configuration | string | |
| cpu_limit | any | |
| cpus | any | |
| data_volume | any | |
| hide_links | boolean | |
| image_definition | any | |
| lab_id * | any | |
| label | string | |
| node_definition * | any | |
| parameters | object | |
| priority | integer | |
| pyats | object | |
| ram | any | |
| tags | any | |
| x | any | |
| y | any |
add_rectangle_annotationAdd a rectangle shape annotation to a lab canvas. Returns the annotation UUID.| Parameter | Type | Description |
|---|---|---|
| border_color * | any | |
| border_radius * | integer | |
| border_style * | any | |
| color * | any | |
| lab_id * | any | |
| rotation * | integer | |
| thickness * | integer | |
| x1 * | any | |
| x2 * | any | |
| y1 * | any | |
| y2 * | any | |
| z_index * | integer |
add_text_annotationAdd a text label annotation to a lab canvas. Returns the annotation UUID.| Parameter | Type | Description |
|---|---|---|
| border_color * | any | |
| border_style * | any | |
| color * | any | |
| lab_id * | any | |
| rotation * | integer | |
| text_bold * | boolean | |
| text_content * | string | |
| text_font * | string | |
| text_italic * | boolean | |
| text_size * | integer | |
| text_unit * | string | |
| thickness * | integer | |
| x1 * | any | |
| y1 * | any | |
| z_index * | integer |
apply_link_conditioning| Parameter | Type | Description |
|---|---|---|
| bandwidth | integer | |
| corrupt_corr | number | |
| corrupt_prob | number | |
| delay_corr | number | |
| duplicate | number | |
| duplicate_corr | number | |
| enabled | boolean | |
| gap | integer | |
| jitter | integer | |
| lab_id * | any | |
| latency | integer | |
| limit | integer | |
| link_id * | any | |
| loss | number | |
| loss_corr | number | |
| reorder_corr | number | |
| reorder_prob | number |
check_packet_capture_statusCheck whether a packet capture is active on a link, plus its config and packet count| Parameter | Type | Description |
|---|---|---|
| lab_id * | any | |
| link_id * | any |
clone_cml_lab| Parameter | Type | Description |
|---|---|---|
| lab_id * | any | |
| new_title | any |
configure_cml_nodeSet the startup configuration for a node by lab and node UUID. The `config` is a plain| Parameter | Type | Description |
|---|---|---|
| config * | any | |
| lab_id * | any | |
| node_id * | any |
connect_cml_linkConnect a link (bring up both ends of the link) by lab and link UUID. This may be needed if a| Parameter | Type | Description |
|---|---|---|
| lab_id * | any | |
| link_id * | any |
connect_two_nodesCreate a link between two interfaces in the same lab. Returns the new link's UUID.| Parameter | Type | Description |
|---|---|---|
| dst_int * | any | |
| lab_id * | any | |
| src_int * | any |
create_cml_groupCreate a new CML group. Requires admin privileges. Returns the new group's UUID.| Parameter | Type | Description |
|---|---|---|
| associations | array | |
| description | string | |
| members | array | |
| name * | any |
create_cml_userCreate a new CML user. Requires admin privileges. Returns the new user's UUID.| Parameter | Type | Description |
|---|---|---|
| admin | boolean | |
| associations | array | |
| description | string | |
| string | ||
| fullname | any | |
| groups | array | |
| opt_in | string | |
| password * | string | |
| pubkey | string | |
| resource_pool | any | |
| tour_version | string | |
| username * | any |
create_empty_labCreate an empty CML lab (no nodes/links). Returns the new lab UUID.| Parameter | Type | Description |
|---|---|---|
| notes | any | |
| title | any |
create_full_lab_topologyImport a complete CML lab from a Topology object (nodes + links + lab metadata).| Parameter | Type | Description |
|---|---|---|
| topology * | any |
delete_annotation_from_labDelete a single annotation by lab and annotation UUID.| Parameter | Type | Description |
|---|---|---|
| annotation_id * | any | |
| lab_id * | any |
delete_cml_groupDelete a CML group by UUID. Requires admin privileges.| Parameter | Type | Description |
|---|---|---|
| group_id * | any |
delete_cml_labDelete a CML lab by UUID. Auto-stops and wipes the lab first.| Parameter | Type | Description |
|---|---|---|
| lab_id * | any |
delete_cml_nodeDelete a node from a lab by lab and node UUID. Auto-stops and wipes the node first.| Parameter | Type | Description |
|---|---|---|
| lab_id * | any | |
| node_id * | any |
delete_cml_userDelete a CML user by UUID. Requires admin privileges.| Parameter | Type | Description |
|---|---|---|
| user_id * | any |
disconnect_cml_linkDisconnect a link (bring down both ends of the link) by lab and link UUID.| Parameter | Type | Description |
|---|---|---|
| lab_id * | any | |
| link_id * | any |
download_lab_topologyDownload the full topology for a lab by UUID as a YAML string. Present this to the user| Parameter | Type | Description |
|---|---|---|
| lab_id * | any |
get_all_links_for_labList all links in a lab by lab UUID. Returns id, label, interface_a, interface_b,| Parameter | Type | Description |
|---|---|---|
| lab_id * | any |
get_annotations_for_cml_labGet all visual annotations (text labels, shapes, lines) on a lab's canvas by lab UUID.| Parameter | Type | Description |
|---|---|---|
| lab_id * | any |
get_captured_packet_overviewGet a brief one-line summary of each packet captured on a link (timestamps, src/dst,| Parameter | Type | Description |
|---|---|---|
| lab_id * | any | |
| link_id * | any |
get_cml_groupsList all CML groups. Returns id, name, description, members (user UUIDs), and labget_cml_informationGet CML server info: version, hostname, uptime, ready status, and configuration details.get_cml_lab_by_titleDownload the full topology for a lab by UUID as a YAML string. Present this to the user| Parameter | Type | Description |
|---|---|---|
| title * | any |
get_cml_labsList CML labs, optionally filtered by owner username.| Parameter | Type | Description |
|---|---|---|
| user | any |
get_cml_licensing_detailsGet CML licensing info: registration status, features, node limits, and expiration dates.get_cml_node_definitionsList all available node types on this CML server. Returns id, label, general_natureget_cml_statisticsGet CML resource usage: CPU, memory, disk, and counts of running labs/nodes/links andget_cml_statusGet CML system health: compute, controller, virl2, and overall health indicators.get_cml_usersList all CML users. Returns id, username, fullname, email, admin status, groups,get_console_logGet the console output history for a node by lab and node UUID. The node must be started.| Parameter | Type | Description |
|---|---|---|
| console | integer | |
| lab_id * | any | |
| node_id * | any |
get_interfaces_for_nodeList all interfaces on a node by lab and node UUID. Returns id, node, label, slot, type,| Parameter | Type | Description |
|---|---|---|
| lab_id * | any | |
| node_id * | any |
get_node_definition_detailGet full details for one node definition by id: interfaces, default device config,| Parameter | Type | Description |
|---|---|---|
| definition_id * | any |
get_nodes_for_cml_labList all nodes in a lab by lab UUID. Returns id, label, node_definition, x/y, state,| Parameter | Type | Description |
|---|---|---|
| lab_id * | any |
get_packet_capture_dataDownload the complete PCAP file for a link by lab and link UUID. Returns base64-encoded| Parameter | Type | Description |
|---|---|---|
| lab_id * | any | |
| link_id * | any |
modify_cml_labUpdate lab metadata (title, owner, description, notes) by lab UUID.| Parameter | Type | Description |
|---|---|---|
| lab_id * | any | |
| notes | any | |
| title | any |
send_cli_commandSend exec/operational-mode CLI commands to a running node via PyATS/Unicon (e.g. "show| Parameter | Type | Description |
|---|---|---|
| console | integer | |
| lab_id * | any | |
| label * | any |
send_cli_config_commandSend configuration-mode CLI commands to a running node via PyATS/Unicon. Identify the| Parameter | Type | Description |
|---|---|---|
| console | integer | |
| lab_id * | any | |
| label * | any |
set_cml_lab_permissionsConfigure group and user permissions for a CML lab by lab UUID.| Parameter | Type | Description |
|---|---|---|
| groups | array | |
| lab_id * | any | |
| users | array |
start_cml_labStart (boot) a CML lab and all its nodes by lab UUID.| Parameter | Type | Description |
|---|---|---|
| lab_id * | any | |
| wait_for_convergence | boolean |
start_cml_linkStart a link (enable connectivity) by lab and link UUID.| Parameter | Type | Description |
|---|---|---|
| lab_id * | any | |
| link_id * | any |
start_cml_nodeStart (boot) a single node by lab and node UUID.| Parameter | Type | Description |
|---|---|---|
| lab_id * | any | |
| node_id * | any | |
| wait_for_convergence | boolean |
start_packet_captureStart a packet capture on a link by lab and link UUID. At least one of maxtime (seconds, 1-86400)| Parameter | Type | Description |
|---|---|---|
| bpfilter | string | |
| encap | string | |
| lab_id * | any | |
| link_id * | any | |
| maxpackets | integer | |
| maxtime | integer |
stop_cml_labStop (power off) all running nodes in a CML lab by lab UUID.| Parameter | Type | Description |
|---|---|---|
| lab_id * | any |
stop_cml_linkStop a link (disable connectivity, simulate cable pull) by lab and link UUID.| Parameter | Type | Description |
|---|---|---|
| lab_id * | any | |
| link_id * | any |
stop_cml_nodeStop (power down) a single node by lab and node UUID.| Parameter | Type | Description |
|---|---|---|
| lab_id * | any | |
| node_id * | any |
stop_packet_captureStop an active packet capture on a link by lab and link UUID.| Parameter | Type | Description |
|---|---|---|
| lab_id * | any | |
| link_id * | any |
wipe_cml_labWipe a CML lab by UUID -- erases all node disk data and configurations. Lab is stopped first if needed.| Parameter | Type | Description |
|---|---|---|
| lab_id * | any |
wipe_cml_nodeWipe a single node's disks by lab and node UUID. Erases all node data. Node must be stopped first.| Parameter | Type | Description |
|---|---|---|
| lab_id * | any | |
| node_id * | any |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 2.1K words.
- ✓License declaredThe repository declares the BSD-2-Clause license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
1 check has not been run yet.
Releases
README
The repository's README runs to about 2.1K words, fetched a month ago. The original in the repository is authoritative.
Read full README