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 分