Skip to main content
Glama
README.md
<!-- 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": "..." }
    }
  }
}
```

### claude.ai (web, desktop and mobile)

claude.ai connects to remote MCP servers over HTTP with OAuth, and this
server speaks stdio. [mcp-stdio](https://github.com/shigechika/mcp-stdio)'s
`serve` mode bridges the two: it exposes a stdio server as a Streamable HTTP
endpoint with an embedded OAuth 2.1 authorization server, and starts one
`merakiadm-mcp` process per session. The API key stays on that host.

```bash
export MERAKI_DASHBOARD_API_KEY=...
mcp-stdio serve --enable-oauth \
  --public-url https://meraki.example.com \
  --trusted-user-header X-Forwarded-User \
  --allow-redirect-uri https://claude.ai/api/mcp/auth_callback \
  --token-store ~/.local/state/merakiadm-mcp/tokens.json \
  --session-idle-ttl 180 --max-sessions-per-owner 3 \
  --port 8080 -- merakiadm-mcp
```

Run it behind a TLS reverse proxy that signs users in (your SSO), admits
only the people who may read the Dashboard, and passes the user name in
`X-Forwarded-User`. Every session runs with the one API key, so everyone the
proxy lets through can read everything that key can read: every organization
it belongs to, unless narrowed with `MERAKI_ORG_ID` / `MERAKI_NETWORK_IDS`.
Signing in is not enough, the proxy has to authorize too. `--token-store`
keeps issued tokens across restarts (without it every restart makes users
reconnect; the file is credential material, so keep it readable by the
service account only, in a directory that account can write: under systemd,
a `StateDirectory=` path rather than `~`). The two session options clear out
sessions a client left behind; the per-user cap also closes that user's
least recently used session when a new one goes over it, so set it to the
number of devices a person really uses at once. The proxy must strip any
`X-Forwarded-User` header a client sends: mcp-stdio trusts that header, so
a copy that gets through lets a client pose as another user. Give the server
its own host name, as above: mcp-stdio's documentation notes that claude.ai
connectors expect the endpoint path to be exactly `/mcp`. A connector added
with claude.ai's "No sign-in" option also needs
`--allow-client-id-url https://claude.ai/oauth/mcp-oauth-client-metadata`;
see the mcp-stdio documentation for these options.

Then add `https://meraki.example.com/mcp` as a custom connector in
claude.ai. The same connector works in the browser, the desktop app and
the mobile apps, so the morning check or a "where is this client?" lookup
can be done from a phone. Bounded answers matter most there: a reply that
fits a model's context also fits a small screen.

## 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

TDQS

A4.2/5.0

Scored across 14 tools

Disambiguation4/5

Most tools target clearly distinct questions: health/daily summaries, per-domain reports (connection failures, Air Marshal, wireless quality, availability, config changes), entity/client resolution, and generic API discovery/read. There is mild overlap among security_events, operational_events, list_events, and daily_brief since all surface event data, but the descriptions clearly distinguish security-relevant events, rare operational events, raw paged logs, and an aggregated brief.

Naming Consistency3/5

All names are lowercase snake_case and readable, but the grammatical convention is mixed: verb_noun (find_client, list_events, resolve_entity, find_api), noun phrases (security_events, wireless_quality, config_changes, connection_failures), and noun_verb (health_check, api_get). The inconsistency is not confusing, but it prevents a predictable verb_noun pattern.

Tool Count5/5

Fourteen tools is well within a reasonable range for a Meraki monitoring server. Each specialized report covers a distinct diagnostic area, and find_api plus api_get provide a bounded generic escape hatch rather than bloating the surface with many one-off endpoints.

Completeness4/5

The read-only monitoring lifecycle is well covered: health, daily brief, wireless failures/quality, security and operational events, raw event paging, availability, clients, entities, config changes, and generic GET access. Minor gaps remain, such as no dedicated list_networks/list_devices/list_clients tools, but health_check, resolve_entity, find_client, and api_get let agents work around them.

Maintenance

ActivityNo data
ResponsivenessNo recent community issues