Metadata-Version: 2.4
Name: merakiadm-mcp
Version: 0.0.1
Summary: Read-only MCP server for Cisco Meraki Dashboard administrators: bounded health, wireless, client, change-log and event summaries, and a size-limited read of any GET operation with secrets masked
Author: AIKAWA Shigechika
License-Expression: MIT
Project-URL: Homepage, https://github.com/shigechika/merakiadm-mcp
Project-URL: Repository, https://github.com/shigechika/merakiadm-mcp
Project-URL: Issues, https://github.com/shigechika/merakiadm-mcp/issues
Keywords: meraki,cisco,mcp,model-context-protocol,network,wireless
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: System Administrators
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Topic :: System :: Networking
Classifier: Topic :: System :: Systems Administration
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: mcp<3,>=2
Requires-Dist: httpx>=0.27
Requires-Dist: tzdata; sys_platform == "win32"
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: pytest-cov; extra == "test"
Requires-Dist: respx; extra == "test"
Dynamic: license-file

<!-- mcp-name: io.github.shigechika/merakiadm-mcp -->

# merakiadm-mcp

[日本語](README.ja.md) | [Documentation](https://shigechika.github.io/merakiadm-mcp/)

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

```bash
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

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

### Claude Desktop

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

## Development

```bash
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):

```bash
MERAKI_DASHBOARD_API_KEY=... python scripts/smoke_test.py
```

## License

MIT
