Logo: Catalyst Center MCP Server

Catalyst Center MCP Server

Communautéit
richbibby

A Python-based MCP (Model Context Protocol) server for Cisco Catalyst Center (formerly DNA Center) that provides tools for device management and monitoring.

Editeurrichbibby
Repositorycatalyst-center-mcp
SproochPython
Forks
12
Stären
16
Disponibel Tools
0
Transporttypstdio
Kategorien
LizenzUnlicense
Linken
  • Tools mat KI-Workflows verbannen

    Catalyst Center MCP Server bitt MCP-Funktiounen un, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • Disponibel Tools: 0

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an deem MCP-Client ze konfiguréieren, deen Dir am léifste benotzt.

  • Interessi vun der Communautéit um Open-Source-Projet

    Zuele vum verlinkte Repository – Stären: 16, Forks: 12.

Catalyst Center MCP Server

A Python-based MCP (Model Context Protocol) server for Cisco Catalyst Center (formerly DNA Center) that provides tools for device management, client information retrieval, and network monitoring.

Features

  • Secure authentication with Cisco Catalyst Center.
  • Device discovery, listing, and detailed information retrieval.
  • Site information retrieval, including hierarchy and details.
  • Network interface information for specific devices.
  • Client listing with comprehensive filtering options.
  • Detailed client information retrieval by MAC address.
  • Client count retrieval with filtering.
  • Helper tool for API-compatible time range conversion.
  • Implemented using FastMCP for a robust and extensible MCP server.
  • Configuration via .env file for easy setup.

Installation

  1. Clone the repository:
bash
git clone https://github.com/richbibby/catalyst-center-mcp.git
cd catalyst-center-mcp
  1. Create a virtual environment and activate it:
bash
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
bash
pip install -r requirements.txt

Configuration

  1. Copy the example environment file:
bash
cp .env.example .env
  1. Update the .env file with your Catalyst Center credentials:
env
CCC_HOST=your-catalyst-center-host
CCC_USER=your-username
CCC_PWD=your-password

Usage With Claude Desktop Client

  1. Configure Claude Desktop to use this MCP server:
  • Open Claude Desktop
  • Go to Settings > Developer > Edit Config
  • Add the following configuration (adjust paths as needed, see claude_desktop_config.json for an example structure):
json
{
  "mcpServers": {
    "catalyst-center-mcp": {
      "command": "/path/to/your/venv/bin/fastmcp",
      "args": [
        "run",
        "/path/to/your/catalyst-center-mcp/catalyst-center-mcp.py"
      ],
      "env": {
        "PYTHONUNBUFFERED": "1"
      }
    }
  }
}
  • Replace /path/to/your/... with the absolute paths relevant to your local environment.
  • The PYTHONUNBUFFERED environment variable is recommended for Stdio transport.
  1. Restart Claude Desktop

  2. Interact with Claude Desktop:

  • Ask Claude to perform actions like "Show me the devices in my Cisco Catalyst Center"
  • Claude will use the MCP server to authenticate and fetch device information

Claude Desktop with Catalyst Center MCP

Claude Desktop with Catalyst Center MCP

Usage With VScode

  1. Configure VSCode to use this MCP server:
  • Open VScode
  • Open the command pallet : Command + Shift + P in Visual Studio Code on macOS (or Ctrl + Shift + P on Windows and Linux)
  • Type: MCP: Open User Configuration
  • Add the following configuration (adjust paths as needed, see claude_desktop_config.json for an example structure):
json
{
  "servers": {
    "catalyst-center-mcp": {
      "type": "stdio",
      "command": "/path/to/your/venv/bin/fastmcp",
      "args": [
        "run",
        "/path/to/your/catalyst-center-mcp/catalyst-center-mcp.py"
      ],
      "env": {
        "PYTHONUNBUFFERED": "1"
      }
    }
  }
}
  • Replace /path/to/your/... with the absolute paths relevant to your local environment.
  • The PYTHONUNBUFFERED environment variable is recommended for Stdio transport.
  1. Restart VSCode

You can also

  • open the command pallet : Command + Shift + P in Visual Studio Code on macOS (or Ctrl + Shift + P on Windows and Linux)
  • Execute Developer: Reload Window
  1. Interact in Chat window:
  • Ask questions like "Show me the devices in my Cisco Catalyst Center"
  • VSCode will use the MCP server to authenticate and fetch device information

VSCode with Catalyst Center MCP

Example Questions

Here are some example questions you can ask Claude to interact with your Catalyst Center:

Device Information

  • "Show me all devices in my network"
  • "List all switches in my network"
  • "What devices are currently unreachable?"
  • "Show me devices with hostname containing 'switch'"
  • "What's the status of device with IP 10.1.1.1?"

Interface Information

  • "Show me all interfaces for device X"
  • "What interfaces are down on device Y?"
  • "List all Gigabit interfaces on device Z"
  • "Show me interfaces with IP addresses"
  • "What's the status of interface GigabitEthernet1/0/1 on device X?"

Site Information

  • "Show me all sites in my network"
  • "What devices are in site X?"
  • "List all buildings in my network"
  • "Show me the site hierarchy"
  • "What's the address of site Y?"

Client Information

  • "How many clients are currently connected?"
  • "List all wireless clients."
  • "Show me clients connected to SSID 'Corporate-WiFi'."
  • "What are the details for client with MAC address aa:bb:cc:dd:ee:ff?"
  • "Are there any clients with an OS type of 'macOS'?"
  • "List clients active in the last hour."

Combined Queries

  • "Show me all devices in site X and their interfaces"
  • "List all down interfaces across all devices"
  • "What devices in building Y have unreachable interfaces?"
  • "Show me the network topology for site Z"
  • "What's the status of all devices in area A?"

Available Tools

  • fetch_devices: Fetches a list of devices from Cisco Catalyst Center, with filtering options.
  • fetch_sites: Fetches a list of sites from Cisco Catalyst Center, returning a compact JSON structure.
  • fetch_interfaces: Fetches interface information for a specific device ID.
  • get_api_compatible_time_range: Converts natural language time inputs (e.g., "last 24 hours", "yesterday") or specific timestamps into API-compatible epoch millisecond start and end times.
  • get_clients_list: Retrieves a list of clients from Cisco Catalyst Center with comprehensive filtering options (e.g., by client type, OS, site, MAC/IP address, SSID). Returns a maximum of 100 clients per call.
  • get_client_details_by_mac: Fetches detailed information for a specific client by their MAC address.
  • get_clients_count: Retrieves the total count of clients matching specified filters.

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Installatioun

TypingMind
Viraussetzungen:

Node.js 18+

{
  "mcpServers": {
    "richbibby-catalyst-center-mcp": {
      "command": "",
      "args": []
    }
  }
}

Catalyst Center MCP Server MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal Catalyst Center MCP Server verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung, fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector: D'Optioun „Dësen Apparat“ ass ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Setzt de kopéierte Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

Catalyst Center MCP Server als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a setzt d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Setzt d'MCP-Serverkonfiguratioun fir Catalyst Center MCP Server an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert d'Säit, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "richbibby-catalyst-center-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "catalyst-center-mcp"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vun der Integratioun Catalyst Center MCP Server. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vun der Integratioun Catalyst Center MCP Server.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierten MCP-Tools an engem ausgewielte KI-Modell
Kënnt Dir mir mat Catalyst Center MCP Server bei dëser Aufgab hëllefen?
Catalyst Center MCP Server
Jo. Ech hunn et gelies.
Dat hunn ech mat Catalyst Center MCP Server fonnt.

Heefeg gestallte Froen

Fir wat gëtt den MCP-Server Catalyst Center MCP Server benotzt?

Catalyst Center MCP Server ass en MCP-Server, deen et kompatibele KI-Clienten erlaabt, op extern Tools a Kontextinformatioune zouzegräifen. An TypingMind kënnt Dir dësen MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech Catalyst Center MCP Server MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir Catalyst Center MCP Server mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni den MCP-Server fir all Modell separat anzeriichten.

Firwat Catalyst Center MCP Server MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann Catalyst Center MCP Server verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Ären Aarbechtsoflaf beim Chatten an TypingMind organiséieren.

Wéi verbannen ech Catalyst Center MCP Server MCP mat TypingMind?

Catalyst Center MCP Server leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann den MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt Catalyst Center MCP Server MCP an TypingMind zur Verfügung?

Catalyst Center MCP Server stellt MCP-Funktioune zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agente zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir Catalyst Center MCP Server MCP ze benotzen?

Nee. TypingMind ass nom Local-first-Prinzip opgebaut a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann Catalyst Center MCP Server eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir deen MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇