Mist MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Mist MCP ServerWhat are the current alarms across all sites?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Mist MCP Server
An MCP (Model Context Protocol) server that exposes the
Juniper Mist REST API (api.mist.com/api/v1, Bearer token auth) as a
curated set of MCP tools for AI agents.
Overview
This project bridges AI assistants (such as Claude, Copilot, or any MCP-compatible agent) with Juniper Mist's REST API. At startup, the server:
Authenticates with a permanent Bearer API token
Registers a static, hand-written set of 22 curated MCP tools
Serves the tools over the
streamable-httpMCP transport
The result: an AI agent can query organizations, sites, devices, WLANs, RF templates, networks, alarms, events, maps, and insights, execute Marvis AI queries, and perform targeted write operations, all through natural-language conversations — without any hand-written API glue.
Why curated tools? The Mist REST API is a large OpenAPI surface. The curated tool set provides safe, conveniently-shaped wrappers for the most common operations. Unlike other MCP servers in this family, there are no escape hatches — the 22 curated tools are the complete surface. There is also no write gating — the Mist API token's RBAC permissions are the sole access control.
Related MCP server: Cisco Catalyst SD-WAN MCP Server
Prerequisites
Before using this server, you must configure Juniper Mist for API access:
Create an API token
Navigate to Organization > Administrators > API Tokens in the Mist Console.
Create a new token and copy the generated value — this is your
MIST_API_TOKEN.
Find your Organization ID
Navigate to Organization > Settings in the Mist Console.
The organization ID appears in the URL or on the settings page — this is your
MIST_ORG_ID.
Important: The token's effective permissions are entirely determined by the Mist RBAC profile assigned to the token. The MCP server does not perform any additional access control. Write tools are exposed by the server but their actual reach is enforced by Mist via the token's RBAC permissions. Mist validates all write operations and rejects unauthorized ones.
How It Works
┌──────────────┐ streamable-http ┌──────────────────┐
│ AI Agent │ ◄──────────────────────► │ Mist MCP │
│ (Claude, │ tools/list │ Server │
│ Copilot…) │ tools/call │ (FastMCP) │
└──────────────┘ └────────┬─────────┘
│
Authorization: Bearer <token>
│
▼
┌──────────────────┐
│ Juniper Mist │
│ REST API │
│ api.mist.com │
│ /api/v1 │
└──────────────────┘Bearer token auth — The server sends a permanent API token as
Authorization: Bearer <token>on every request toapi.mist.com/api/v1. The token is registered for log redaction so it never appears in logs or error messages.Curated tool set — The server registers a fixed, hand-written set of 22 tools defined in
src/mist_mcp/curated_tools.py. The set is:Read tools (15):
mist_orgs,mist_sites,mist_site,mist_devices,mist_device,mist_device_stats,mist_inventory,mist_wlans,mist_rf_templates,mist_networks,mist_alarms,mist_events,mist_maps,mist_insights,mist_marvis_queryWrite tools (7):
mist_marvis_suggest,mist_marvis_action,mist_create_wlan,mist_update_wlan,mist_delete_wlan,mist_claim_devices,mist_restart_device
All 22 tools are always registered and always available. There are no escape hatches — no raw request tool, no introspection tool, no generic "pull anything" tool. Access control is enforced entirely by the Mist API token's RBAC permissions.
Retry & error handling — HTTP 429 and 5xx responses are retried with exponential backoff (1s, 2s, 4s). Timeouts are retried once. The API token is redacted from all log output and error messages.
Tool Catalog
Read tools (15)
Tool | Description |
| Return all organizations accessible with the configured API token |
| Return all sites in an organization |
| Return a single site's full details by its site ID |
| Return all devices (APs, switches, gateways) at a site |
| Return a single device's full details by its device ID |
| Return real-time device statistics and health for a site |
| Return the device inventory for an organization |
| Return all WLAN configurations at a site |
| Return all RF templates in an organization |
| Return all network definitions at a site |
| Return current alarms for an organization |
| Return events for a site, optionally filtered by event type |
| Return all maps (floor plans) at a site |
| Return wireless or client insights for an organization |
| Ask a natural language question to Marvis, the Mist AI engine |
Write tools (7)
Tool | Description |
| Return suggested questions that Marvis can answer |
| Ask Marvis for an actionable remediation recommendation |
| Create a new WLAN at a site with the given SSID and JSON configuration |
| Update an existing WLAN configuration at a site (partial update) |
| Delete a WLAN from a site by its WLAN ID |
| Claim and assign devices to an organization's inventory using a claim code or MAC addresses |
| Restart (reboot) a device by its device ID |
Note: There are no escape hatches (no
mist_get, nomist_raw_request). The 22 curated tools are the complete surface. Write tools have no server-side gate — Mist RBAC is the sole access control. Mist validates all writes and rejects unauthorized operations.
Environment Variables
Variable | Required | Default | Description |
| Yes | — | Mist API token from Organization > Administrators > API Tokens |
| Yes | — | Default organization ID from Organization > Settings |
| No |
| HTTP request timeout in seconds for outbound calls to |
| No | (unset) | Set to |
| No |
| Server bind address. The container image sets |
| No |
| Server bind port |
| No |
| Log level: |
See env.example for a documented template.
Build
Build the container image with Podman:
podman build --format docker -t ghcr.io/adam5isalive/mist-mcp-server:latest -f Containerfile .Note: Build with
--format docker. The default OCI image format does not preserve theHEALTHCHECKdirective defined in the Containerfile;dockerformat keeps it for standalonepodman run. The quadlet unit supplies its ownHealthCmd, so this only matters outside quadlet.
Deploy with Podman Quadlet
Quadlet lets you run containers as systemd user services. This is the recommended deployment method for production use.
Step-by-step
Create the systemd user directory (if it does not already exist):
mkdir -p ~/.config/containers/systemd/Copy the quadlet file into that directory:
cp mist-mcp.container ~/.config/containers/systemd/Create the environment file with your credentials:
mkdir -p ~/.config/mist-mcpEdit
~/.config/mist-mcp/envwith the required variables (seeenv.example):MIST_API_TOKEN=your-api-token MIST_ORG_ID=org_abc123Reload systemd and start the service:
systemctl --user daemon-reload systemctl --user enable --now mist-mcpCheck status:
systemctl --user status mist-mcpView logs:
journalctl --user -u mist-mcp
Example quadlet file (mist-mcp.container)
[Unit]
Description=Mist MCP Server
Documentation=https://github.com/adam5isalive/mist-mcp
[Container]
Image=localhost/mist-mcp:latest
EnvironmentFile=%h/.config/mist-mcp/env
PublishPort=127.0.0.1:8935:8935
Restart=always
HealthCmd=/usr/bin/curl -fsS -o /dev/null -X POST http://127.0.0.1:8935/mcp -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"healthcheck","version":"1"}}}'
HealthInterval=30s
HealthTimeout=10s
HealthStartPeriod=30s
HealthRetries=3
AutoUpdate=registry
Label=io.containers.autoupdate=registry
[Service]
Restart=on-failure
TimeoutStartSec=60
[Install]
WantedBy=default.targetHost binding / pasta: The container binds
0.0.0.0(baked into the image viaENV MIST_HOST=0.0.0.0), which is required so rootless Podman'spastanetwork can forward into the container on WSL2/macOS. The security boundary is the host-side port publish, pinned to loopback withPublishPort=127.0.0.1:8935:8935. The server is reachable only from the host athttp://127.0.0.1:8935/mcp. Never publish the port on0.0.0.0host-side.
Verify
List the available tools using any MCP client, or test directly with curl. The server is
reachable at http://127.0.0.1:8935/mcp from the host. The MCP streamable-http transport
requires a full handshake (initialize → capture Mcp-Session-Id → notifications/initialized
→ tools/list) and the proper Accept header.
For a manual check, first establish a session and capture the session ID:
curl -i -X POST http://127.0.0.1:8935/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"curl","version":"1.0"}}}'Then, using the Mcp-Session-Id header from the response, list the tools:
curl -X POST http://127.0.0.1:8935/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "Mcp-Session-Id: <session-id>" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'A successful response lists all 22 tools, for example:
{
"jsonrpc": "2.0",
"id": 2,
"result": {
"tools": [
{
"name": "mist_orgs",
"description": "Return all organizations accessible with the configured API token, including org id, name, and metadata.",
"inputSchema": { "type": "object", "properties": {} }
},
{
"name": "mist_sites",
"description": "Return all sites in an organization, including site id, name, address, and configuration.",
"inputSchema": { "type": "object", "properties": { "org_id": { "type": "string" } } }
},
{
"name": "mist_devices",
"description": "Return all devices (APs, switches, gateways) at a site, including id, mac, model, name, type, and status.",
"inputSchema": { "type": "object", "properties": { "site_id": { "type": "string" } } }
},
{
"name": "mist_marvis_query",
"description": "Ask a natural language question to Marvis, the Mist AI engine. Supports questions about network health, client experience, device status, and more.",
"inputSchema": { "type": "object", "properties": { "query": { "type": "string" }, "org_id": { "type": "string" } } }
},
{
"name": "mist_create_wlan",
"description": "Create a new WLAN at a site with the given SSID and JSON configuration.",
"inputSchema": { "type": "object", "properties": { "site_id": { "type": "string" }, "ssid": { "type": "string" }, "config": { "type": "string" } } }
},
…
]
}
}Hermes Registration
To register this MCP server with an AI agent that supports the Hermes MCP configuration format, add the following to the agent's MCP config:
{
"mcpServers": {
"mist-mcp": {
"url": "http://127.0.0.1:8935/mcp"
}
}
}Security Notes
Secrets come from environment variables only — The API token and org ID are never baked into the container image. They are provided at runtime via the
EnvironmentFilein the quadlet (or set directly in the shell for development).The API token is redacted from all logs and error messages —
MistClientregisters the token with a log redaction filter, and outgoing request headers are logged with the authorization header replaced byBearer ***.No escape hatches — Unlike other MCP servers in this family, this server has no raw request tool, no introspection tool, and no generic "pull anything" tool. The 22 curated tools are the complete surface. Agents cannot bypass the curated tool set.
No write gating — All 7 write tools are always registered and always available. There is no
ALLOW_WRITEflag. Access control is enforced entirely by the Mist API token's RBAC permissions. Mist validates all writes and rejects unauthorized operations.Loopback-only exposure — The security boundary is the host-side port publish, pinned to loopback (
PublishPort=127.0.0.1:8935:8935in the quadlet). The server is reachable only from the host athttp://127.0.0.1:8935/mcp. Inside the container the server binds0.0.0.0(baked into the image viaENV MIST_HOST=0.0.0.0) so rootless Podman'spastanetwork can forward into the container on WSL2/macOS. Never publish the port on0.0.0.0host-side. For direct host runs the bind defaults to127.0.0.1.TLS verification is on by default —
MIST_INSECURE_SKIP_VERIFY=trueshould only be used in development or test environments. The Mist cloud API always uses valid TLS certificates.Rootless operation — The quadlet runs under
systemctl --user, meaning the container runs without root privileges. This follows the principle of least privilege.
Development
Run the server locally without a container. The curated tool set is registered by
register_curated_tools() in src/mist_mcp/curated_tools.py:
# Create and activate a virtual environment
python -m venv .venv && . .venv/bin/activate
# Install the package in editable mode
pip install -e .
# Run with required environment variables
MIST_API_TOKEN=your-api-token \
MIST_ORG_ID=org_abc123 \
python -m mist_mcpOr use the installed console script:
MIST_API_TOKEN=your-api-token \
MIST_ORG_ID=org_abc123 \
mist-mcpThe server will start on 127.0.0.1:8935 by default. You can override the bind address, port,
log level, timeout, and TLS verification via the environment variables listed above.
Updating
If the container image is published to a registry, and the quadlet includes AutoUpdate=registry,
you can update to the latest image with:
podman auto-updateThis pulls the latest image and restarts the container gracefully. Check the status afterwards:
systemctl --user status mist-mcpArchitecture
mist-mcp-server/
├── env.example # Documented environment variable template
├── pyproject.toml # Project metadata, dependencies, entrypoint
├── src/
│ └── mist_mcp/
│ ├── __main__.py # Entrypoint: env loading, init, server start
│ ├── rest_client.py # Async REST client for api.mist.com/api/v1
│ └── curated_tools.py # Static, hand-written MCP tool set (22 tools)
└── tests/ # Test suite (see test files)Module responsibilities
Module | Role |
| Reads environment variables, validates required ones ( |
| Async HTTP client for |
| Registers the static, hand-written tool set ( |
Skills
skills/mist-tools.skill.md— Per-tool reference for all 22 tools: exact names, argument signatures, return shapes, and read/write status.skills/mist-api.skill.md— Reference for the Juniper Mist REST API itself: endpoint, auth, URL paths, and RBAC.skills/podman-deploy.skill.md— Rootless Podman quadlet build and deployment of the server.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceEnables management of Mistral AI agents through MCP tools including creating, listing, searching, viewing details, and deleting agents. Integrates with Mistral API to provide agent management capabilities through natural language interactions.1
- Flicense-qualityDmaintenanceMCP server for Cisco Catalyst SD-WAN Manager (vManage) that exposes REST API as tools for AI assistants to query and manage SD-WAN fabric, including device management, monitoring, templates, and policies.8
- Alicense-qualityDmaintenanceProvides reliable access to Juniper Mist from AI tools like Cursor and VS Code, enabling natural language interaction with Mist API without writing code.1Apache 2.0
- Alicense-qualityCmaintenanceEnables AI-powered AIOps management of Juniper SSR/128T networks through natural language, providing 22 tools for router management, alarms, traffic analysis, and more.Apache 2.0
Related MCP Connectors
Free public MCP for AI agents — 193 tools, 44 workflows. No API key.
Hosted MCP with 91 agent tools: X, domains, SEO, Maps, Trends, Search, YouTube, TikTok, and more.
Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/adam5isalive/mist-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server