MDS MCP
Provides read-only access to Cisco MDS NX-OS SAN fabric information, including zoning, device aliases, FLOGI/FCNS, VSANs, interfaces, transceivers, counters, environment, logging, and inventory.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MDS MCPShow FLOGI database on mds-fab-a"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MDS MCP server
A lightweight FastMCP server that exposes
read-only Cisco MDS NX-OS show commands as Model Context Protocol tools. Point it at one or many MDS switches and let an LLM client (VS Code, Claude, a LangChain agent, etc) inspect your SAN fabric in plain language.
Read-only & safe — every tool maps to a
showcommand over NX-API (JSON-RPC).Multi-switch — register as many switches as you want; clients pick one per call.
Two transports —
stdioorhttp.63 tools spanning zoning, device-aliases, FLOGI/FCNS, VSANs, interfaces, port-channels, transceivers, counters, environment, logging, and inventory.
Generative UI — in MCP-Apps-capable clients, the model can turn
showoutput into live charts, tables, and dashboards on the fly.
Requirements
Python 3.13+
Cisco MDS switch(es) with NX-API enabled (
feature nxapi)
Related MCP server: gNMIBuddy
Configuration
Switches are declared with indexed environment variables. Add more by repeating the block with the next number (gaps are tolerated):
Variable | Required | Default | Description |
|
|
| |
|
| HTTP bind address | |
|
| HTTP bind port | |
| ✅ | — | Switch IP or hostname |
| ✅ | — | NX-API username |
| ✅ | — | NX-API password |
| the host | Friendly name used by the | |
|
| NX-API HTTPS port | |
|
| Verify the TLS certificate |
MDS_1_NAME=mds-fab-a
MDS_1_HOST=192.0.2.10
MDS_1_USERNAME=admin
MDS_1_PASSWORD=secret
MDS_2_NAME=mds-fab-b
MDS_2_HOST=192.0.2.11
MDS_2_USERNAME=admin
MDS_2_PASSWORD=secretCopy .env.example to .env and fill it in. On startup the server reads
this .env file, so you don't have to export the variables by hand. Variables set in the
actual environment (shell, Docker, or an MCP client's env block) take precedence over .env.
Run
Install dependencies once, then start the server:
uv sync # create the virtualenv and install dependencies
uv run python main.py # start the server (defaults to HTTP on http://localhost:8000/mcp)To use stdio instead of HTTP, set MCP_TRANSPORT=stdio — either in .env (MCP_TRANSPORT=stdio)
or inline for a single run:
MCP_TRANSPORT=stdio uv run python main.pyDocker / Podman
Build the image, then run it with your .env providing the switch credentials. The commands
below use docker; replace it with podman if you prefer (the syntax is identical):
docker build -t mds-mcp .
docker run --rm -p 8000:8000 --env-file .env mds-mcp # HTTP on http://localhost:8000/mcpUsing it from a client (Visual Studio Code)
Using Visual Studio Code here for the example, but any LLM client that supports MCP will work more or less the same way.
You register the server in a mcp.json file: .vscode/mcp.json for this workspace only,
or your user mcp.json (Command Palette → MCP: Open User Configuration) to use it
everywhere. Pick one of the two options below, paste it into that file, then open the
Command Palette → MCP: List Servers → cisco-mds → Start.
Option A — HTTP
You run the server yourself; VS Code just connects to it.
Configure your switches in
.env(see Configuration).Start the server:
uv run python main.py.Add this to
mcp.json:
{
"servers": {
"cisco-mds": { "type": "http", "url": "http://localhost:8000/mcp" }
}
}Option B — stdio
VS Code launches the process for you. Set cwd to where you cloned the
repo so the server finds your .env. The env block below is optional — use it only to set
or override variables without an .env file (remember it takes precedence over .env).
{
"servers": {
"cisco-mds": {
"type": "stdio",
"command": "uv",
"args": ["run", "python", "main.py"],
"cwd": "/path/to/mds-mcp",
"env": {
"MCP_TRANSPORT": "stdio",
"MDS_1_HOST": "192.0.2.10",
"MDS_1_USERNAME": "admin",
"MDS_1_PASSWORD": "secret"
}
}
}
}Once started, open Copilot Chat and the cisco-mds tools become available to the model.
Usage
Ask the model questions in plain language about your SAN fabric. Examples:
"List the configured switches and their software version."
"Which zones are active in VSAN 20 on mds-fab-a?"
"Show me the FLOGI database on both switches."
"List all device aliases and tell me which ones aren't logged in right now."
"Resolve pwwn
50:00:00:00:00:00:00:01to a device alias and show its FCNS entry.""Are there any interfaces with CRC errors or link failures on mds-fab-b?"
"Compare the transceiver Rx/Tx power on all fc interfaces and flag anything below -7 dBm."
"Which ports are members of port-channel 220, and what's their negotiated speed?"
"Show the traffic counters for interface fc1/3 — how much is it sending vs receiving?"
"Which interfaces are seeing the most txwait or discarded frames on mds-fab-a?"
"Summarize the VSAN membership across both fabrics."
"Check the environment and module status — any failed fans, power supplies, or modules?"
Tool catalog
All tools are read-only.
Area | Tools |
Discovery |
|
Zoning |
|
Devices Aliases |
|
System / Inventory |
|
Interfaces and Port-Channels (all) |
|
Interface detail (per-port) |
|
Flogi / Name Server / Login |
|
VSAN |
|
Interface Counters |
|
Sessions / Users |
|
Logging |
|
Generative UI |
|
Generative UI
The server registers FastMCP's GenerativeUI
provider, which exposes two extra tools: generate_prefab_ui and
search_prefab_components. In a client that supports MCP Apps,
the model can take the raw JSON from any show tool and render it as an
interactive Prefab view — bar/pie charts,
sortable tables, KPI cards, and full dashboards — without any purpose-built UI
tool. For example:
"Query the interface brief on mds-fab-a and chart the ports per VSAN."
"Build a dashboard of interface performance counters for mds-fab-b."
"Show the FCNS database as a sortable table grouped by VSAN."

Clients without MCP-Apps support still get the underlying show data as JSON.
Disclaimer
A personal project, not affiliated with or endorsed by Cisco.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/alecharn/mds-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server