Token导航 LogoToken导航TokenDH.com
Clab MCP Server logo
运维云端stdio官方级别未说明来源级核验

Clab MCP Server

MCP Server

一个基于Python的MCP服务器,用于通过ContainerLab API管理容器化的网络实验室。

工具数

6

提示词数

0

GitHub Stars

3

资源数

0
PythonAPI集成云端部署

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

seanerama

提供方

seanerama

最后核验

2026/5/17 20:23

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

pip install -r requirements.txt

详细介绍

ContainerLab MCP服务器

用于管理容器化网络实验室的Python MCP服务器 集装箱实验室API.

工具

工具说明
authenticate使用ContainerLab API服务器进行身份验证(可选-自动身份验证处理此问题)
listLabs列出所有可用的实验室
deployLab部署一个具有拓扑定义的新实验室
inspectLab获取实验室详细信息、节点状态、管理IP
execCommand在一个或所有实验室节点上执行命令
destroyLab摧毁实验室,清理资源

先决条件

跑步 ContainerLab API服务器 其中Linux用户被配置为进行身份验证。

# On the ContainerLab host:
sudo groupadd -f clab_admins && sudo groupadd -f clab_api
sudo useradd -m -s /bin/bash netclaw 2>/dev/null || true
sudo usermod -aG clab_admins netclaw && sudo passwd netclaw

# If the API server runs in Docker, restart it to pick up the new user:
docker restart clab-api-server

安装

pip install -r requirements.txt

环境变量

变量默认值描述
CLAB_API_SERVER_URLhttp://localhost:8080containerlab API服务器URL
CLAB_API_USERNAMEadminAPI用户名
CLAB_API_PASSWORDpasswordAPI密码

用法

独立(stdio MCP服务器)

python3 -u clab_mcp_server.py

使用NetClaw的mcp-call.py

python3 mcp-call.py "python3 -u clab_mcp_server.py" listLabs '{}'
python3 mcp-call.py "python3 -u clab_mcp_server.py" deployLab '{"topologyContent":{"name":"demo","topology":{"nodes":{"srl1":{"kind":"nokia_srlinux","image":"ghcr.io/nokia/srlinux:latest"}},"links":[]}}}'
python3 mcp-call.py "python3 -u clab_mcp_server.py" inspectLab '{"labName":"demo","details":true}'
python3 mcp-call.py "python3 -u clab_mcp_server.py" execCommand '{"labName":"demo","nodeName":"srl1","command":"show version"}'
python3 mcp-call.py "python3 -u clab_mcp_server.py" destroyLab '{"labName":"demo","cleanup":true,"graceful":true}'

支持的节点类型

ContainerLab支持多种网络操作系统。常见示例:

种类平台示例图片
cisco_iosxr思科IOS XRios-xr/xrd-control-plane:latest
cisco_iosxe思科IOS XE(Cat8000v)c8000v:latest
cisco_nxos 思科 NX-OS(Nexus 9000v) n9kv:latest
cisco_ftdv思科Firepower FTDvftdv:latest
cisco_csr1000v思科CSR 1000vcsr1000v:latest
nokia_srlinux诺基亚SR Linuxghcr.io/nokia/srlinux:latest
ceos Arista CEOSceos:latest
juniper_crpdJuniper cRPDcrpd:latest
juniper_vjunosswitchJuniper vJunos交换机vrnetlab/vr-vjunosswitch:latest
juniper_vjunosrouterJuniper vJunos路由器vrnetlab/vr-vjunosrouter:latest
frrFR路由frrouting/frr:latest
linux通用Linuxalpine:latest
paloalto_panos 帕洛阿尔托 PAN-OS panos:latest
fortinet_fortigateFortinet FortiGatefortigate:latest

有关完整列表,请参阅 ContainerLab文档.

许可证

麻省理工学院

目录标签

目录标签

PythonAPI集成云端部署容器化网络本地部署实验室管理网络仿真

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

6

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP