Aruba Central MCP

io.github.shigechika由 GitHub 帳號 shigechika 發布v0.10.2更新於 Nov 3, 2026

MCP server for Aruba Central: expose AP, switch, and client status to AI assistants

概覽

AI 產生的概覽

唯讀的 MCP 伺服器,讓助理查詢 Aruba Central 的存取點、交換器、用戶端、WLAN 與韌體狀態。

可以做什麼
  • 檢視存取點、無線電、BSSID、WLAN、AP 叢集,以及單一 AP 的狀態與吞吐量
  • 列出交換器與已連線的無線用戶端,依 MAC 查詢用戶端並追蹤其漫遊紀錄
  • 分析用量與容量趨勢:依頻寬排名的 AP 與用戶端、用戶端數量隨時間變化
  • 依叢集檢視韌體狀態,包括 Classic Central 的升級狀態與可選版本
  • 執行伺服器與驗證的健康檢查,或產生標示離線 AP 比例過高站點的每日簡報
適用情境
適合管理 Aruba Central 無線網路的系統管理員,讓助理不必開啟主控台就能回答設備清單、射頻疑難排解、用戶端漫遊、容量與韌體相關問題。所有工具皆為唯讀,適合監控與診斷而非設定。
執行需求
本機 Python 3.10+ 程序,通常以 uvx 啟動(uv 需在 PATH 中)。需要具備 GreenLake New Central API 存取權限的 Aruba Central 帳號及 OAuth2 用戶端憑證,透過 ARUBA_CENTRAL_BASE_URL、ARUBA_CENTRAL_CLIENT_ID 與 ARUBA_CENTRAL_CLIENT_SECRET 提供。選用的 Classic Central 韌體細節需四個 ARUBA_CLASSIC_* 變數,其中包含伺服器會改寫的權杖檔案。
安裝前請注意
需要 OAuth2 用戶端密鑰(ARUBA_CENTRAL_CLIENT_SECRET);啟用 Classic Central 時還需用戶端密鑰及存放存取與更新權杖的檔案,伺服器會改寫該檔案並輪換更新權杖,因此只應有一個程序使用它。網路設備清單、用戶端 MAC 位址與站點名稱會傳送至 Aruba Central API。所有工具皆為唯讀,不會設定或升級任何設備。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Aruba Central MCP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

aruba-central-mcp

English | 日本語

MCP server for Aruba Central (GreenLake New Central API).

Exposes access point, switch, and wireless client status to MCP-compatible AI assistants (Claude Code, Claude Desktop, OpenAI Codex, etc.) via STDIO transport.

Documentation: https://shigechika.github.io/aruba-central-mcp/

Features

Access Points

ToolDescription
list_apsList all access points (with optional site/status filter)
list_radiosList AP radios (channel, utilization, noise floor, TX power)
list_bssidsList all BSSIDs
list_wlansList WLANs (SSID, security, VLAN)
list_swarmsList AP swarms/clusters
get_ap_statusGet detailed status of a specific AP
get_ap_throughputGet AP throughput trend (TX/RX over time)
get_top_apsTop APs by bandwidth usage (wireless/wired/total)

Clients

ToolDescription
list_clientsList connected wireless clients (with optional SSID/band filter)
find_client_by_macFind a client by MAC address (direct API lookup)
get_clients_trendClient count trend over time
get_top_clients_by_usageTop clients by bandwidth usage
get_client_mobility_trailClient roaming history

Infrastructure

ToolDescription
list_switchesList all switches
get_site_summaryAggregated site-level summary (AP counts, client counts)
health_checkReport server version and verify Aruba Central authentication (no data fetch)
daily_briefOne-shot morning AP health check: sites whose offline-AP ratio exceeds a threshold

Firmware

ToolDescription
firmware_statusPer swarm: group, site, running versions, recommended version, upgrade status; filter by group, site and/or swarm. With Classic Central configured, also the Classic group, the group's compliance version (what Central upgrades the swarm to next) with its scheduled time, Classic's upgrade state and reason, and Classic-only (stale) swarms
firmware_versionsFirmware versions Classic Central offers for a device type or one swarm (registered only when Classic Central is configured)

Every tool reads; nothing is configured or upgraded. See docs/firmware-api-notes.md for which API reports what.

Highlights

  • Server-side OData filtering for efficient queries
  • OAuth2 Client Credentials authentication (GreenLake SSO)
  • Automatic pagination for large result sets
  • Token auto-refresh before expiration
  • Lightweight: only mcp SDK + httpx (no pandas)

Prerequisites

  • Python 3.10+
  • Aruba Central account with API access (GreenLake New Central API)
  • OAuth2 client credentials (client ID and secret)

Setup

bash
# uvuv pip install aruba-central-mcp
# pippip install aruba-central-mcp

Or run without installing:

bash
uvx aruba-central-mcp

From source:

bash
git clone https://github.com/shigechika/aruba-central-mcp.gitcd aruba-central-mcp
# uvuv sync
# pippip install -e .

Configuration

Set the following environment variables:

VariableDescriptionExample
ARUBA_CENTRAL_BASE_URLAPI gateway URLapigw-uswest4.central.arubanetworks.com
ARUBA_CENTRAL_CLIENT_IDOAuth2 client IDxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
ARUBA_CENTRAL_CLIENT_SECRETOAuth2 client secretxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Optional: Classic Central (firmware details)

AOS-8 Instant APs in Classic Central groups are upgraded from Classic Central, and only its API reports why a swarm's upgrade failed, the group compliance version and the versions on offer. Set all four to enable that:

VariableDescription
ARUBA_CLASSIC_BASE_URLClassic API gateway host, apigw-<region>.central.arubanetworks.com
ARUBA_CLASSIC_CLIENT_IDClient id of the API-gateway application
ARUBA_CLASSIC_CLIENT_SECRETIts client secret
ARUBA_CLASSIC_TOKEN_FILEJSON file holding the token pair; this server rewrites it on every refresh

Bootstrap the token file once with the access and refresh token Classic Central's API Gateway issues for that application, readable only by the user the server runs as:

bash
umask 077printf '{"access_token": "%s", "refresh_token": "%s"}\n' "$ACCESS" "$REFRESH" > /path/to/classic-token.json

The refresh token is replaced on every refresh (the old one stops working), so let only this server refresh it, and point every process that runs it at the same file: refreshes are serialised with a lock file next to it. When the refresh token is rejected, health_check reports classic: error and asks for a new pair; when only some ARUBA_CLASSIC_* variables are set it reports classic: misconfigured and names the missing ones. The directory holding the file must be writable by that user (the new pair is written next to it, then renamed); without that, the server refuses to refresh rather than lose the rotated token. Windows has no cross-process lock here, so run one process there.

How to obtain API credentials

  1. Log in to HPE GreenLake Platform
  2. Go to Manage Workspace > Personal API clients
  3. Click Create Personal API client
  4. Enter a nickname and select Aruba Central as the service
  5. Copy the client_id and client_secret — the secret is shown only once

For details, see:

Usage

Claude Code (plugin)

This repository doubles as a single-plugin marketplace, so Claude Code can install the server for you:

/plugin marketplace add shigechika/aruba-central-mcp/plugin install aruba-central-mcp@aruba-central-mcp

The plugin launches uvx aruba-central-mcp and reads the same three environment variables described in Configuration; export them before starting Claude Code. It also passes the four optional ARUBA_CLASSIC_* variables through, so firmware_status gets its Classic details and firmware_versions is offered when they are exported; left unset they arrive empty and Classic stays off.

uvx must be on the PATH of the process that runs Claude Code — a login shell usually has it, but a GUI-launched app may not; install uv system-wide if the plugin fails to start.

Claude Code (manual)

bash
claude mcp add aruba-central \  -e ARUBA_CENTRAL_BASE_URL=apigw-uswest4.central.arubanetworks.com \  -e ARUBA_CENTRAL_CLIENT_ID=your-client-id \  -e ARUBA_CENTRAL_CLIENT_SECRET=your-client-secret \  -- uvx aruba-central-mcp

Or add to .mcp.json:

json
{  "mcpServers": {    "aruba-central": {      "command": "uvx",      "args": ["aruba-central-mcp"],      "env": {        "ARUBA_CENTRAL_BASE_URL": "apigw-uswest4.central.arubanetworks.com",        "ARUBA_CENTRAL_CLIENT_ID": "your-client-id",        "ARUBA_CENTRAL_CLIENT_SECRET": "your-client-secret"      }    }  }}

Claude Desktop

Add to claude_desktop_config.json:

json
{  "mcpServers": {    "aruba-central": {      "command": "uvx",      "args": ["aruba-central-mcp"],      "env": {        "ARUBA_CENTRAL_BASE_URL": "apigw-uswest4.central.arubanetworks.com",        "ARUBA_CENTRAL_CLIENT_ID": "your-client-id",        "ARUBA_CENTRAL_CLIENT_SECRET": "your-client-secret"      }    }  }}

Codex

bash
codex mcp add aruba-central \  --env ARUBA_CENTRAL_BASE_URL=apigw-uswest4.central.arubanetworks.com \  --env ARUBA_CENTRAL_CLIENT_ID=your-client-id \  --env ARUBA_CENTRAL_CLIENT_SECRET=your-client-secret \  -- uvx aruba-central-mcp

Any other MCP client that launches stdio servers works the same way: give it uvx aruba-central-mcp as the command and set the three ARUBA_CENTRAL_* variables in its environment.

Direct execution

bash
export ARUBA_CENTRAL_BASE_URL="apigw-uswest4.central.arubanetworks.com"export ARUBA_CENTRAL_CLIENT_ID="your-client-id"export ARUBA_CENTRAL_CLIENT_SECRET="your-client-secret"python3 -m aruba_central_mcp

CLI Options

bash
aruba-central-mcp --version   # Print version and exitaruba-central-mcp --help      # Show usage and required environment variablesaruba-central-mcp --check     # Verify environment variables and OAuth2 authentication, then exitaruba-central-mcp             # Start MCP server (STDIO, default)

With no options, the process runs as an MCP STDIO server (the mode used by MCP clients).

--check exit codes: 0 success, 1 config error, 2 auth error.

Development

bash
git clone https://github.com/shigechika/aruba-central-mcp.gitcd aruba-central-mcp
# uvuv sync --devuv run pytest -v
# pippython3 -m venv .venv.venv/bin/pip install -e ".[test]".venv/bin/pytest -v

Live smoke test

The unit suite mocks Central at the transport layer, which is what makes it fast — and also what makes it blind to a tool that has stopped returning real data. scripts/smoke_test.py runs every registered tool against the configured tenant and fails on empty, malformed or error answers:

bash
# needs the same ARUBA_CENTRAL_* environment variables as the serveruv run python scripts/smoke_test.pyuv run python scripts/smoke_test.py --only radios --traceback
  • Read-only. Every tool here reads; nothing in Central is configured. A future tool that writes must be listed as state-changing and skipped, and a test enforces that.
  • No payloads in the report. Tool names, statuses and row counts only; error text is redacted too, since an error routinely quotes the device, client MAC or site it was asked about.
  • Nothing network-specific in the specs. The AP, the serial number and the client MAC that the per-device tools need are discovered at run time from the listings, and skipped when the network has none to offer. Two tests keep it that way: one refuses those parameters as literals, the other bans anything address-shaped anywhere in the file, because this repository is public.
  • Empty answers pass for the listings and the time-series tools — a site with no swarms configured is a real deployment — but a lookup handed a name discovered seconds earlier must not come back empty, and those probes say so.
  • CI enforces the cheap half: a tool registered without a probe spec fails the build (tests/test_smoke_probes.py), so adding a tool forces the question "how would we know it works?".
  • scripts/smoke_harness.py is the engine and holds no Central knowledge: it is kept identical across the servers that share it, so fix engine bugs once and sync the file rather than patching this copy.

Its first run found a real one: get_client_mobility_trail was requesting a page size the endpoint rejects, so the tool had been failing for every client.

API Reference

This server uses the GreenLake New Central API:

  • /network-monitoring/v1/aps — Access points
  • /network-monitoring/v1/radios — AP radios
  • /network-monitoring/v1/bssids — BSSIDs
  • /network-monitoring/v1/wlans — WLANs
  • /network-monitoring/v1/swarms — AP swarms/clusters
  • /network-monitoring/v1/switches — Switches
  • /network-monitoring/v1/clients — Clients
  • /network-monitoring/v1/clients-trend — Client count trends
  • /network-monitoring/v1/clients-topn-usage — Top clients by usage
  • /network-monitoring/v1/top-aps-by-usage — Top APs by usage

License

MIT

來源:README.md,提交 f5c6931

工具

18

health_check

Report server version and Aruba Central backend authentication. Call this at session start (or after a tool-call timeout) to confirm the MCP is up, see which version is running, and verify the Aruba Central backend can be authenticated. Lightweight: it builds the client and obtains an OAuth2 access token (GreenLake SSO, reusing the cached token) — it does NOT fetch APs, switches, clients, or any other data endpoint. Always returns the same keys: ``status`` (healthy / degraded / error), ``service``, ``version``, ``base_url`` (the configured ARUBA_CENTRAL_BASE_URL, empty string if unset), ``auth`` (ok / error / missing-env) and ``classic`` (not-configured / ok / error / misconfigured: the optional Classic Central token used by the firmware tools; ``misconfigured`` means some ARUBA_CLASSIC_* variables are set and others are not). ``error`` and ``misconfigured`` make the status degraded and add ``classic_detail``. On a degraded or error result, ``detail`` carries the reason (the New Central one first when both fail).

無需輸入參數。

list_aps

List access points with device-level overview. Use this for AP inventory and availability checks. For RF details (channel, utilization, noise floor), use list_radios instead. Args: site: Filter by site name (exact match, server-side). Empty for all. status: Filter by status (e.g. "ONLINE", "OFFLINE"). Empty for all.

輸入參數sitestatus

list_switches

List all switches from Aruba Central. Returns switch name, status, model, type, IP, firmware, and MAC address.

無需輸入參數。

list_clients

List connected wireless clients with connection details. Returns client name, MAC, IP, SSID, band, SNR, connected AP, and auth type. For a single client's full details, use find_client_by_mac instead. Args: ssid: Filter by SSID name (exact match, server-side). Empty for all. band: Filter by wireless band (exact match, server-side). Empty for all.

輸入參數bandssid

find_client_by_mac

Look up a single client by MAC address (wireless or wired). Returns detailed info including OS, manufacturer, VLAN, and connection status. Uses direct API lookup (no full-list scan). Args: mac_address: Client MAC address (e.g. "aa:bb:cc:dd:ee:ff").

輸入參數mac_address必填

get_ap_status

Get detailed status of a specific access point by name. Args: ap_name: AP device name (case-insensitive).

輸入參數ap_name必填

get_site_summary

Get a summary of all sites with AP and client counts. Aggregates data across all APs and clients, grouped by site name. Shows total APs, online/offline counts, and client count per site.

無需輸入參數。

list_radios

List AP radios with RF details. Use this for RF troubleshooting: channel assignment, channel utilization, noise floor, and TX power. Each AP typically has 2-3 radios (one per band). Args: site: Filter by site name (exact match, server-side). Empty for all. band: Filter by band (e.g. "2.4 GHz", "5 GHz"). Empty for all.

輸入參數bandsite

list_bssids

List all BSSIDs (per-radio, per-SSID broadcast identifiers). Useful for identifying which radio on which AP is broadcasting a specific SSID. Each AP radio broadcasts one BSSID per WLAN. Args: site: Filter by site name (exact match, server-side). Empty for all.

輸入參數site

list_wlans

List configured WLANs (SSIDs) with security and VLAN settings. Shows each WLAN's name, band, operational status, security level, and VLAN assignment. Args: site_id: Filter by site ID. Empty for all. serial_number: Filter by AP serial number. Empty for all.

輸入參數site_idserial_number

list_swarms

List all AP swarms (clusters) from Aruba Central. Returns cluster name, conductor AP, site, IP, and firmware version. Args: site: Filter by site name (exact match, server-side). Empty for all.

輸入參數site

firmware_status

Firmware of every AP swarm (cluster): running versions, upgrade status, group and site. Use this to see which swarms still need a firmware upgrade and what Central will do next. Read-only. The whole call is bounded (about 48 s); what could not be read in time is named under Notes. One line per swarm with its group(s) and site(s), AP count and how many are online, the running versions with AP counts, the recommended version and New Central's per-AP upgrade status (/network-services/v1/firmware-details). APs that belong to no swarm are listed per group and site. When Classic Central is configured (ARUBA_CLASSIC_*), each swarm also gets its Classic group, the group's compliance version (the version Central keeps the group's swarms on: an upgrade of a Classic IAP group happens when the compliance version changes, and ``scheduled`` is when that is set to run; a site-level upgrade in the UI does not change it), marked "matches running" or "pending", and "older than ..." when it is lower than the running or recommended version, plus Classic's upgrade ``state``, ``reason`` and ``upgrade_required``. New Central reports no group for AOS-8 APs, so the group comes from Classic; Classic data is cached per group for a few minutes. Swarms Classic knows but New Central does not (e.g. 0 APs, Down) are listed at the end when no site or swarm filter is given. A Classic failure is reported under Notes; the New Central data is still shown. Filters combine (all must match); each is an exact name, case-insensitive. Empty means no filter. ``group`` uses the Classic group when New Central has none. Args: group: Central group name. site: Site name. swarm_name: Swarm (cluster) name.

輸入參數sitegroupswarm_name

get_top_aps

Get top access points ranked by bandwidth usage over a time range. Returns a ranked list of APs sorted by descending bandwidth consumption. Args: usage_type: "wireless" (Wi-Fi traffic), "wired" (uplink traffic), or "total" (wireless + wired combined). Default: "total". site_id: Filter by site ID. Empty for all sites. limit: Maximum number of APs to return (1-25, default 10). start_at: Start time in RFC 3339 format (e.g. "2025-01-01T00:00:00Z"). Max 30 days range. Defaults to 24 hours ago if omitted. end_at: End time in RFC 3339 format. Defaults to current time if omitted.

輸入參數limitend_atsite_idstart_atusage_type

get_ap_throughput

Get throughput trend for a specific AP as a time-series table. Returns timestamped TX/RX throughput in bps. Defaults to last 3 hours. Args: serial_number: AP serial number (use list_aps or get_ap_status to find it). interface_type: "WIRELESS" (Wi-Fi), "WIRED" (Ethernet uplink), or "LTE". start_at: Start time in RFC 3339 format. Defaults to 3 hours ago. end_at: End time in RFC 3339 format. Defaults to current time.

輸入參數end_atstart_atserial_number必填interface_type

get_clients_trend

Get client count trend over time, grouped by a chosen dimension. Useful for capacity planning and usage pattern analysis. Args: site_id: Filter by site ID. Empty for all. site_name: Filter by site name. Empty for all. start_at: Start time in RFC 3339 format (max 1 month range). Must not be in the future. end_at: End time in RFC 3339 format. Must not be in the future. group_by: Dimension to group by. Supported values: - Any client_type: TYPE, ROLE, VLAN - WIRELESS only: WLAN, RADIO, SECURITY, PROTOCOL Default is TYPE. client_type: Client category: ALL, WIRELESS, or WIRED. Default is ALL. Must be WIRELESS when group_by is WLAN, RADIO, SECURITY, or PROTOCOL (the API returns 400 otherwise).

輸入參數end_atsite_idgroup_bystart_atsite_nameclient_type

get_top_clients_by_usage

Get top clients ranked by bandwidth usage. Args: site_id: Filter by site ID. Empty for all. site_name: Filter by site name. Empty for all. start_at: Start time in RFC 3339 format (max 1 month range). end_at: End time in RFC 3339 format. limit: Maximum number of clients to return (1-100, default 5).

輸入參數limitend_atsite_idstart_atsite_name

get_client_mobility_trail

Get roaming history for a wireless client as a time-series table. Shows which APs the client connected to, when, and on which SSID. Useful for troubleshooting connectivity issues or tracking movement. Defaults to last 3 hours. Args: mac_address: Client MAC address (e.g. "aa:bb:cc:dd:ee:ff"). start_at: Start time in RFC 3339 format. Defaults to 3 hours ago. end_at: End time in RFC 3339 format. Defaults to current time.

輸入參數end_atstart_atmac_address必填

daily_brief

Run a morning AP health check across all sites. Fetches all access points and aggregates their online/offline status by site. Sites whose offline AP ratio is *strictly greater than* ``offline_threshold`` percent are flagged as WARNING (uses ``>``, so a site with exactly ``offline_threshold`` % offline is still OK). Args: offline_threshold: Percentage of offline APs that triggers a WARNING (default 10.0). Sites at or below this threshold appear in the OK section. Pass 0.0 to flag any site with at least one offline AP. Output tiers: - CRITICAL — API connection failure - WARNING — offline AP ratio strictly above threshold - OK — offline ratio at or below threshold Returns a Markdown summary with site-level AP counts and anomaly details.

輸入參數offline_threshold

版本歷史

4
  1. v0.10.2最新Oct 29, 2026
  2. v0.10.1Oct 24, 2026
  3. v0.9.0Sep 29, 2026
  4. v0.8.0Sep 16, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分