Skip to main content

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

Project description

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, etc.) via STDIO transport.

Features

  • 6 tools for querying Aruba Central infrastructure:
    • list_aps — List all access points (with optional site/status filter)
    • list_switches — List all switches
    • list_clients — List connected wireless clients (with optional SSID/band filter)
    • find_client_by_mac — Find a wireless client by MAC address
    • get_ap_status — Get detailed status of a specific AP
    • get_site_summary — Aggregated site-level summary (AP counts, client counts)
  • 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)

Installation

pip install aruba-central-mcp

Or with uv:

uvx aruba-central-mcp

For development:

git clone https://github.com/shigechika/aruba-central-mcp.git
cd aruba-central-mcp
pip install -e ".[test]"

Configuration

Set the following environment variables:

Variable Description Example
ARUBA_CENTRAL_BASE_URL API gateway URL apigw-uswest4.central.arubanetworks.com
ARUBA_CENTRAL_CLIENT_ID OAuth2 client ID xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
ARUBA_CENTRAL_CLIENT_SECRET OAuth2 client secret xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

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_secretthe secret is shown only once

For details, see:

Usage

Claude Code

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:

{
  "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:

{
  "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"
      }
    }
  }
}

Direct execution

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

Development

python3 -m venv .venv
.venv/bin/pip install -e ".[test]"
.venv/bin/pytest -v

API Reference

This server uses the GreenLake New Central API:

  • /network-monitoring/v1/aps — Access points
  • /network-monitoring/v1/switches — Switches
  • /network-monitoring/v1/clients — Wireless clients

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aruba_central_mcp-0.1.1.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aruba_central_mcp-0.1.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file aruba_central_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: aruba_central_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aruba_central_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1df78b7cff95802a5934edbb2f47dbecd5215a6a0b2d6b6002e02e721f8a89cb
MD5 7520fa020252172be7a4ea9f11374d9a
BLAKE2b-256 b77e47093f65fcfe2f70215d0b52bfd31e09a4e46251b19dcea76893c008455b

See more details on using hashes here.

Provenance

The following attestation bundles were made for aruba_central_mcp-0.1.1.tar.gz:

Publisher: pypi.yaml on shigechika/aruba-central-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aruba_central_mcp-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for aruba_central_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 986926fd035483697bf8d690145700ccfdfad3a2870ed27b8fff21b67cef4ef8
MD5 fd6bfa66ea6896b91ba371d51a45b28f
BLAKE2b-256 3eb727142e33cb849f416ce77a5082bc7081053750fb6c8ecefb4081faa878da

See more details on using hashes here.

Provenance

The following attestation bundles were made for aruba_central_mcp-0.1.1-py3-none-any.whl:

Publisher: pypi.yaml on shigechika/aruba-central-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page