Reliable access to Juniper Mist from your AI tools, without writing code.
This project provides a production-grade MCP server that wraps the Mist API via
mistapi, so Cursor and VS Code can call Mist safely through standard MCP
tools.
MCP servers make API access simple and consistent for AI tools. This server centralizes connection and auth, validates configuration at startup, and exposes a tool registry so non-coders can use Mist through natural language.
- Python 3.10+
- A Mist API token
No manual install required for end users. The MCP runner bootstraps the local virtual environment on first run.
Create a .env file in this folder (see mist.env.example):
MIST_API_TOKEN=your_token_here
MIST_API_HOST=https://api.mist.com
MIST_API_TIMEOUT_SECONDS=30Important: MIST_API_HOST must be the base host (no /api/v1). The server
will call the Mist “self” endpoint at startup and exit immediately if the host
or token is invalid.
- Open this project in Cursor.
- Make sure a
mcp.jsonfile exists at.cursor/mcp.json. This repo already provides it, so you usually do not need to change anything. - Use the configuration below:
{
"mcpServers": {
"mist": {
"command": "${workspaceFolder}/run-mcp.sh",
"args": [],
"envFile": "${workspaceFolder}/.env",
"transport": "stdio"
}
}
}- Restart Cursor (or reload the window).
- Ask Cursor to call Mist tools, e.g. “list my orgs”.
- Open this project in VS Code.
- Make sure a
mcp.jsonfile exists at.vscode/mcp.json. This repo already provides it, so you usually do not need to change anything. - Reload the window and use your MCP client to call Mist tools.
- A tool registry is generated from the Mist SDK.
- Use
mist_search_toolsto find tools by keyword. - Use
mist_list_groupsto discover tool groups and filter search. - Use
mist_list_methodsto list methods in a group. - Use
mist_describe_toolto see parameters and details. - Use
mist_call_toolto execute by name with args/kwargs. - Regenerate the registry after SDK updates via
scripts/generate_tools.py.
Built while working at Hamina.
pip install -e ".[dev]"
./.venv/bin/python scripts/generate_tools.py
pytest
ruff check .
ruff format .
mypy srcWe welcome good PRs. See CONTRIBUTING.md for guidelines.
Apache-2.0. See LICENSE.