nvidia-cumulus-mcp
MCP server that integrates with the Cumulus Linux OS via NVUE API to read network configuration, interfaces, bridges, VRFs, BGP, and other network information.
README
NVIDIA Cumulus MCP Server
MCP server that integrates with the Cumulus Linux OS. This application was implemented using FastMCP and NVIDIA's NVUE API.
[!NOTE] This application was developed for
Cumulus VX (Virtual Experience) 5.4.0. It has not been tested on actual hardware or the latest version since the simulator has since migrated to the NVIDIA AIR cloud sandbox.
flowchart LR
user["User / MCP client"]
server["nvidia-cumulus-nvue<br/>FastMCP server"]
tools["Read-only MCP tools<br/>platform, system, interfaces, VRFs, BGP"]
client["NVUEClient<br/>HTTP GET + basic auth"]
cumulus["Cumulus VX or switch<br/>NVUE API /nvue_v1"]
user -- "MCP over stdio" --> server
server --> tools
tools --> client
client -- "HTTPS GET :8765" --> cumulus
cumulus -- "JSON response" --> client
client --> tools
tools --> server
server -- "tool result" --> user
Quick Start
Configuring a simulator (optional)
You can find a copy of Cumulus VX by downloading the qcow2 file from GNS3. Run the simulator and be sure to forward ports for SSH and the NVUE API
qemu-system-x86_64 \
-enable-kvm \
-m 2048M \
-smp 2 \
-hda cumulus-linux-5.4.0-vx-amd64-qemu.qcow2 \
-netdev user,id=mgmt,hostfwd=tcp:0.0.0.0:2222-:22,hostfwd=tcp:0.0.0.0:8765-:8765 \
-device virtio-net-pci,netdev=mgmt \
-nographic
By default the OS will have services like ssh and nginx enabled. In order to get the NVUE API connection to work, you need to modify your nginx config:
sudo ln -s /etc/nginx/sites-{available,enabled}/nvue.conf
sudo sed -i 's/listen localhost:8765 ssl;/listen 0.0.0.0:8765 ssl;/g' /etc/nginx/sites-available/nvue.conf
sudo systemctl restart nginx
You can confirm that this API is reachable from your host machine by doing
curl -u '<username>:<password>' -k https://localhost:8765/nvue_v1/interface
Configuring the target machine
Once you have a simulator or an actual switch to use you can run the MCP by doing:
uv sync
export CUMULUS_HOST=127.0.0.1
export CUMULUS_PORT=8765
export CUMULUS_USERNAME=cumulus
export CUMULUS_PASSWORD=cumulus100
export CUMULUS_VERIFY_TLS=false
uv run nvidia-cumulus-mcp
Alternatively, you can add the MCP config:
{
"mcpServers": {
"nvidia-cumulus-nvue": {
"command": "uv",
"args": ["run", "nvidia-cumulus-mcp"],
"env": {
"CUMULUS_HOST": "127.0.0.1",
"CUMULUS_PORT": "8765",
"CUMULUS_USERNAME": "cumulus",
"CUMULUS_PASSWORD": "cumulus100",
"CUMULUS_VERIFY_TLS": "false"
}
}
}
}
Configuration
| Variable | Default | Description |
|---|---|---|
CUMULUS_HOST |
127.0.0.1 |
Cumulus VX or switch hostname/IP |
CUMULUS_PORT |
8765 |
NVUE API HTTPS port |
CUMULUS_USERNAME |
cumulus |
NVUE basic-auth username |
CUMULUS_PASSWORD |
required | NVUE basic-auth password |
CUMULUS_VERIFY_TLS |
false |
Enable TLS certificate validation |
CUMULUS_CA_BUNDLE |
unset | Optional CA bundle path for TLS validation |
CUMULUS_TIMEOUT |
10 |
HTTP timeout in seconds |
Tools
All tools are read-only and return:
{
"endpoint": "/nvue/path",
"data": {}
}
Available tools:
nvue_get(path, include=None, omit=None, rev=None)get_platform()get_system()get_system_resources()list_interfaces()get_interface(interface)get_interface_counters(interface)list_bridges()get_bridge(domain="br_default")get_mac_table(domain="br_default")list_vrfs()get_vrf(vrf="default")get_routes(vrf="default", afi=None)get_ip_neighbors(interface, family="all")get_lldp_neighbors(interface)get_bgp_global()get_bgp_vrf(vrf="default")get_bgp_neighbors(vrf="default")
Development
uv sync
.venv/bin/pytest
.venv/bin/ruff check .
.venv/bin/mypy
Live integration tests are opt-in and only issue NVUE GET requests:
RUN_CUMULUS_INTEGRATION=1 \
CUMULUS_HOST=127.0.0.1 \
CUMULUS_USERNAME=cumulus \
CUMULUS_PASSWORD=cumulus100 \
.venv/bin/pytest tests/test_integration_live.py
References
- NVIDIA Cumulus Linux 5.4 NVUE API: https://docs.nvidia.com/networking-ethernet-software/cumulus-linux-54/System-Configuration/NVIDIA-User-Experience-NVUE/NVUE-API/
- NVIDIA Cumulus Linux 5.4 OpenAPI specification: https://docs.nvidia.com/networking-ethernet-software/cumulus-linux-54/api/openapi.json
- FastMCP tools: https://gofastmcp.com/servers/tools
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。