Meraki Admin MCP

v0.0.1
io.github.shigechika/merakiadm-mcp Checked 3 days ago Published 9 days ago

Read-only MCP server for Cisco Meraki Dashboard admins: bounded summaries, any GET, secrets masked

Read-only MCP server for Cisco Meraki Dashboard administrators. It answers the questions an administrator asks every morning — is anything down, are clients failing to connect and at which step, is there a rogue DHCP server or a spoofed SSID — with bounded, aggregated summaries instead of raw API payloads. Several Dashboard endpoints return far more than a model's context can hold at a busy site: an hour of Air Marshal can be over a thousand SSIDs (hundreds of KB), a day of failed connections thousands of rows, a day of wireless events tens of thousands.

Summary extracted from the README.

merakiadm-mcp

日本語 | Documentation

Read-only MCP server for Cisco Meraki Dashboard administrators. It answers the questions an administrator asks every morning — is anything down, are clients failing to connect and at which step, is there a rogue DHCP server or a spoofed SSID — with bounded, aggregated summaries instead of raw API payloads.

Why

Several Dashboard endpoints return far more than a model's context can hold at a busy site: an hour of Air Marshal can be over a thousand SSIDs (hundreds of KB), a day of failed connections thousands of rows, a day of wireless events tens of thousands. Passing them through verbatim makes an agent's next request fail. Every tool here reads those endpoints server-side and returns counts, rankings and the few rows that matter, and says capped when it left something out and how to ask for less.

For everything else, find_api searches the Dashboard's own OpenAPI spec for a read operation and api_get calls it under the same rules: one page, a size limit, secrets masked, the configured scope enforced. One server covers both the routine checks and open-ended exploration, so an agent does not need a second, unbounded Meraki server.

Tools

All tools are read-only (GET only) and annotated readOnlyHint.

Tool What it answers
health_check Server version, API key validity, organizations and networks in scope, device counts by status
daily_brief One-shot morning check of every network over the last 24 h: devices offline now or during the window, health alerts, connection success rate compared with the previous window, wireless packet loss and channel use, security and operational events, switch uplinks, configuration changes, firmware, license end date; CRITICAL / WARNING / OK
connection_failures Failed wireless connections aggregated by step (assoc/auth/dhcp/dns), type, SSID, VLAN, access point and hour
wireless_quality Packet loss in each direction, access points with no traffic, channel utilization per band (Wi-Fi and non-Wi-Fi), best-effort latency; the worst access points of each
air_marshal Neighbouring SSIDs: totals, SSIDs seen on your wired LAN (rogues), SSIDs using one of your SSID names
availability_history Devices that went offline (or alerting/dormant) and came back: how often, for how long, still down or not
security_events Rogue/duplicate DHCP servers, AP spoofing, rogue AP association, IP/IPv6 conflicts, RA guard, loops, STP guards
operational_events Rare operational events: reboots, RADIUS timeouts, DHCP pool exhaustion, radar, wireless attacks, switch hardware/config/port faults, dropped log entries
list_events One page of the event log with an older_cursor to continue and a complete flag
config_changes Who changed what and when: counts by administrator and page, the newest entries with old and new values (secret values masked)
resolve_entity Organization, network and device IDs from a name, serial, MAC or LAN IP
find_client A client by MAC, IP or user/description: its record, last AP or switch port, and its wireless connections, events per AP with signal, latest problems, latency
find_api Search the Dashboard's read (GET) operations by English keywords, or show one operation's parameters
api_get Call any read operation: one page, fields / offset / limit, a size limit, secrets masked as [redacted], scope enforced

IP conflicts on 192.0.0.0/29 are counted apart and never raise a warning: 464XLAT (CLAT) clients all use 192.0.0.2 by design (RFC 7335).

Install

uvx merakiadm-mcp --check        # verify the API key
# or
pip install merakiadm-mcp

Python 3.11 or later.

Configuration

Variable Required Meaning
MERAKI_DASHBOARD_API_KEY yes Dashboard API key (sent as a Bearer token)
MERAKI_ORG_ID no Comma-separated organization IDs to limit the scope
MERAKI_NETWORK_IDS no Comma-separated network IDs to limit the scope
MERAKI_BASE_URL no API base URL (default https://api.meraki.com/api/v1)

The server never writes: a key with write access is safe to use, but a read-only Dashboard administrator is enough.

Claude Code

claude mcp add merakiadm --env MERAKI_DASHBOARD_API_KEY=... -- uvx merakiadm-mcp

Claude Desktop

{
  "mcpServers": {
    "merakiadm": {
      "command": "uvx",
      "args": ["merakiadm-mcp"],
      "env": { "MERAKI_DASHBOARD_API_KEY": "..." }
    }
  }
}

Development

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

scripts/smoke_test.py calls every tool against a live organization and reports which ones are broken (names, statuses and timings only):

MERAKI_DASHBOARD_API_KEY=... python scripts/smoke_test.py

License

MIT