MistMind 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., "@MistMind MCP ServerList all devices in my Mist organization"
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.
MistMind MCP Server
Code Mode MCP for the Juniper Mist API — 1,011 endpoints in ~800 tokens.
MistMind makes massive APIs accessible to LLMs without training data. Instead of hardcoding every endpoint, it gives the LLM:
A dynamic index of the API hierarchy (~800 tokens)
A hardened Deno sandbox to search & execute against the full OpenAPI spec
Zero pre-training on the API required
Why MistMind?
Traditional MCP servers face a brutal tradeoff:
Document everything → Token explosion, context limits
Document nothing → LLM can't discover what's available
MistMind solves this with progressive disclosure:
Initial: ~800 tokens for API hierarchy (scopes, categories, counts)
Search: LLM writes JS to explore the 84MB resolved spec
Execute: LLM chains API calls with full OpenAPI context
Related MCP server: Code Execution MCP
Architecture
┌─────────────────────────────────────────────────────────────┐
│ Claude Desktop / MCP Client │
│ ┌──────────────────────────────────────────────────────┐ │
│ │ LLM (Claude, GPT-4, etc.) │ │
│ │ • Sees: "Search API (1011 endpoints) + hierarchy" │ │
│ │ • Writes: JS code to search/execute │ │
│ └──────────────────────────────────────────────────────┘ │
└──────────────────────┬──────────────────────────────────────┘
│ MCP Protocol (stdio)
▼
┌─────────────────────────────────────────────────────────────┐
│ MistMind MCP Server (Python) │
│ ┌─────────────────┐ ┌──────────────────────────────────┐ │
│ │ Spec Indexer │ │ Deno Sandbox │ │
│ │ • Analyzes │ │ • --deny-net (search mode) │ │
│ │ OpenAPI │ │ • --allow-net=api.mist.com │ │
│ │ • Generates │ │ • Rate limiting (30/min) │ │
│ │ hierarchy │ │ • Token isolation (IIFE) │ │
│ │ • ~800 tokens │ │ • Output scrubbing │ │
│ └─────────────────┘ └──────────────────────────────────┘ │
└──────────────┬──────────────────────┬───────────────────────┘
│ │
▼ ▼
spec/mist.resolved.json api.mist.com
(84MB, local) (REST API)How It Works
1. Index Generation (Initialization)
from mistmind.spec_indexer import generate_index_from_file
index = generate_index_from_file("spec/mist.resolved.json")
# → ~800 token summary: scopes, categories, auth, paginationThe indexer auto-detects:
API Hierarchy: Path prefixes + tag patterns → scopes (Orgs, Sites, MSPs, etc.)
Auth Pattern: Finds
/selfor/meendpointsPagination: Detects
limit,page,start,endparamsResponse Patterns: Array vs paginated vs single object
2. Search (Discovery)
LLM writes JavaScript to explore the spec:
async () => {
const results = [];
for (const [path, methods] of Object.entries(spec.paths)) {
if (path.includes('/devices') && methods.get) {
results.push({
method: 'GET',
path,
summary: methods.get.summary,
params: methods.get.parameters
});
}
}
return results;
}Runs in hardened Deno sandbox with no network access — only reads the local spec file.
3. Execute (Action)
LLM chains API calls:
async () => {
const self = await mist.request({path: '/api/v1/self'});
const org_id = self.privileges[0].org_id;
const devices = await mist.request({
path: `/api/v1/orgs/${org_id}/inventory`
});
return {
org_id,
device_count: devices.length,
devices: devices.map(d => ({name: d.name, model: d.model, type: d.type}))
};
}Quick Start
1. Prerequisites
Python 3.11+
Deno runtime
Mist API token
2. Install
git clone https://github.com/nagarjun226/mistmind.git
cd mistmind
python -m venv venv
source venv/bin/activate
pip install -e .3. Configure
cp .env.example .env
# Edit .env with your Mist API token4. Add to Claude Desktop
{
"mcpServers": {
"mistmind": {
"command": "python",
"args": ["-m", "mistmind"],
"env": {
"MIST_APITOKEN": "your-token-here",
"MIST_HOST": "api.mist.com",
"MISTMIND_API_MODE": "readonly"
}
}
}
}See claude_desktop_config.example.json for a full example.
Comparison: MistMind vs Traditional MCP
Aspect | Traditional MCP | MistMind |
Initial tokens | ~5,000-20,000 | ~800 |
API coverage | Partial (popular endpoints) | Complete (1,011 endpoints) |
Round trips | 1 (direct call) | 2-3 (search → execute) |
Maintenance | Manual sync with API | Auto-generates from spec |
Private APIs | Requires training data | Works with any OpenAPI spec |
Security
MistMind is built with defense-in-depth:
Deno sandbox isolation — Each execution is a fresh process
IIFE token closure — API token lives in closure scope, unreachable by user code
stdin token passing — Token never written to disk or source files
Network allowlist — Execute mode only reaches
api.mist.comAPI mode enforcement —
readonlyblocks all writes (server-side, not bypassable)Rate limiting — 30 req/min, max 5 concurrent (configurable)
Output scrubbing — Token removed from all stdout/stderr/errors
Temp file hardening —
0o600permissions, atomic writes
191 security tests including red team attack vectors: token exfiltration, sandbox escape, timing side-channels, DNS rebinding, Unicode normalization, regex DoS, and more. See docs/security/ for audit reports.
The "Private API" Proof
The spec indexer has zero Mist-specific knowledge. It works on any OpenAPI 3.x spec.
Proof: The obfuscation test (tests/test_obfuscation.py) renames all Mist-specific terms:
orgs→entities,sites→locations,devices→nodes
MistMind still discovers and searches correctly. This proves it works on private/unknown APIs without training data.
Configuration
Variable | Description | Default |
| Mist API token | (required) |
| Mist API host |
|
|
|
|
| Requests per minute (0=unlimited) |
|
| Max parallel sandbox processes |
|
| Custom OpenAPI spec path |
|
Development
source venv/bin/activate
python -m pytest tests/ -v --cov # Run tests with coverage
ruff check src/ tests/ # Lint
ruff format src/ tests/ # FormatProject Structure
mistmind/
├── src/mistmind/ # Source code
│ ├── __main__.py # CLI entry point
│ ├── config.py # Pydantic settings
│ ├── sandbox.py # Deno sandbox (search + execute)
│ ├── server.py # MCP server handlers
│ ├── spec_indexer.py # OpenAPI → ~800 token index
│ └── spec_resolver.py # $ref resolver
├── tests/ # 191 tests (86% coverage)
├── spec/ # OpenAPI spec + resolver
├── docs/ # Architecture, benchmarks, security audits
├── pyproject.toml
└── README.mdLicense
MIT
Credits
Built by Nagarjun Srinivasan. Inspired by the Code Mode MCP pattern for progressive API disclosure.
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
- AlicenseBqualityDmaintenanceEnables LLMs to interact with Hyperfabric infrastructure management APIs, providing access to 79 endpoints for managing fabrics, devices, networks, VNIs, VRFs, and other network infrastructure components.Last updated792MIT
- Flicense-qualityDmaintenanceEnables efficient AI agent operations through sandboxed Python code execution with progressive tool discovery, PII tokenization, and skills persistence, achieving up to 98.7% token reduction by processing data in a sandbox rather than in context.Last updated

Junos MCP Serverofficial
Alicense-qualityAmaintenanceEnables LLM interactions with Juniper Junos network devices, allowing natural language access to device configuration, monitoring, and management operations through secure SSH connections.Last updated102Apache 2.0- Alicense-qualityDmaintenanceEnables interaction with the complete Cloudflare API using a codemode pattern that allows agents to search the OpenAPI spec and execute API calls via JavaScript. This approach minimizes token usage by keeping the massive specification on the server and only returning relevant results.Last updated28128Apache 2.0
Related MCP Connectors
SaaS intelligence for AI agents. 5 unified tools cover 1,000+ services with 91-96% token savings.
Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.
Curated knowledge API for AI agents - skill packs, semantic search, validated patterns.
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/nagarjun226/mistmind'
If you have feedback or need assistance with the MCP directory API, please join our Discord server