Mindpilot MCP
The Mindpilot MCP server lets you visualize code, architecture, and processes as Mermaid diagrams rendered locally in your browser via an AI coding agent.
render_mermaid: Accepts Mermaid diagram syntax, a title (up to 50 characters), and an optional background color to validate and render diagrams as SVGs. Supports all diagram types (flowcharts, sequence diagrams, C4 context, state machines, etc.) with built-in color classes (coral, ocean, forest, sunshine, etc.) optimized for light/dark mode.open_ui: Launches a local web interface (default:http://localhost:4000) to view, manage, and export previously rendered diagrams.Export: Save any rendered diagram as a vector (SVG) image for sharing or documentation.
Multi-Client Support: Multiple AI assistants or IDE instances share the same server and diagram history simultaneously.
Local-Only Processing: All diagrams are rendered locally—nothing is sent to the cloud beyond what your LLM provider already receives.
Renders Mermaid syntax diagrams generated by AI assistants in a web interface, enabling visualization of code structures, workflows, and architectures
Supports development workflow with hot module reloading for the client interface
Click on "Deploy 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., "@Mindpilot MCP visualize the authentication flow in this codebase"
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.
Mindpilot MCP
See through your agent's eyes. Visualize legacy code, inspect complex flows, understand everything.
Mindpilot is now available as a lightweightagent skill—no local MCP server needed. Ask your agent to diagram something and it builds a self-contained, interactive Mermaid viewer you can open in your browser or publish as a Claude artifact.
Install with: npx skills add abrinsmead/skills/mermaid-viewer

Why Mindpilot?
Visualize Anything: Use your coding agent to generate on-demand architecture, code, and process diagrams to view your code from different perspectives.
Vibe Checks: AI-generated code can accumulate unused and redundant constructs. Use visualizations to spot areas that need cleanup.
Local Processing: Diagrams are never sent to the cloud. Everything stays between you, your agent, and your agent's LLM provider(s).
Export & Share: Export any diagram as a vector image.
Related MCP server: software-design-mermaid-mcp
Prerequisites
Node.js v20.0.0 or higher.
Quickstart
Claude Code
claude mcp add mindpilot -- npx @mindpilot/mcp@latest
Cursor
Under Settings > Cursor Settings > MCP > Click Add new global MCP server and configure mindpilot in the mcpServers object.
{
"mcpServers": {
"mindpilot": {
"command": "npx",
"args": ["@mindpilot/mcp@latest"]
}
}
}VS Code
Follow the instructions here for enabling MCPs in VS Code: https://code.visualstudio.com/docs/copilot/chat/mcp-servers
Go to Settings > Features > MCP, then click Edit in settings json
Then add mindpilot to your MCP configuration:
{
"mcp": {
"servers": {
"mindpilot": {
"type": "stdio",
"command": "npx",
"args": ["@mindpilot/mcp@latest"]
}
}
}
}Windsurf
Under Settings > Windsurf Settings > Manage Plugins, click view raw config and configure mindpilot in the mcpServers object:
{
"mcpServers": {
"mindpilot": {
"command": "npx",
"args": ["@mindpilot/mcp@latest"]
}
}
}Zed
In the AI Thread panel click on the three dots ..., then click Add Custom Server...
In the Command to run MCPserver field enter npx @mindpilot/mcp@latest and click Add Server.
Configuration Options
Port: The server defaults to port 4000 but can be configured using the
--portcommand line switch.Data Path: By default, diagrams are saved to
~/.mindpilot/data/. You can specify a custom location using the--data-pathcommand line switch.
Multi-Client Support
Mindpilot intelligently handles multiple AI assistants running simultaneously. When you have multiple Claude Desktop windows or IDE instances open:
The first mcp client to use Mindpilot starts a shared web server
Additional assistants automatically connect to the existing server
All assistants share the same diagram history and web interface
The server will automatically shuts down a minute after the last MCP clinet disconnects
This means you can work with multiple MCP hosts at once without port conflicts, and they'll all contribute to the same collection of diagrams.
Anonymous Usage Tracking
Mindpilot MCP collects anonymous usage data to help us understand how the product is being used and improve the user experience.
Disabling Analytics
If you prefer not to share anonymous usage data, you can disable analytics by adding the --disable-analytics flag to your MCP configuration:
Claude Code:
claude mcp add mindpilot -- npx @mindpilot/mcp@latest --disable-analyticsOther IDEs:
Add "--disable-analytics" to the args array in your configuration:
{
"command": "npx",
"args": ["@mindpilot/mcp@latest", "--disable-analytics"]
}Using the MCP server
After configuring the MCP in your coding agent you can make requests like "create a diagram about x" and it should use the MCP server to render Mermaid diagrams for you in a browser connected to the MCP server.
You can optionally update your agent's rules file to give specific instructions about when to use mindpilot-mcp.
Example requests
"Show me the state machine for WebSocket connection logic"
"Create a C4 context diagram of this project's architecture."
"Show me the OAuth flow as a sequence diagram"
How it works
Frontier LLMs are well trained to generate valid Mermaid syntax. The MCP is designed to accept Mermaid syntax and render diagrams in a web app running on http://localhost:4000 (default port).
Troubleshooting
Port Conflicts
If you use port 4000 for another service you can configure the MCP to use a different port.
Claude Code example:
claude mcp add mindpilot -- npx @mindpilot/mcp@latest --port 5555
Custom Data Path
To save diagrams to a custom location (e.g., for syncing with cloud storage):
Claude Code example:
claude mcp add mindpilot -- npx @mindpilot/mcp@latest --data-path /path/to/custom/location
Other IDEs:
{
"command": "npx",
"args": ["@mindpilot/mcp@latest", "--data-path", "/path/to/custom/location"]
}asdf Issues
If you use asdf as a version manager and have trouble getting MCPs to work (not just mindpilot), you may need to set a "global" nodejs version from your home directory.
cd
asdf set nodejs x.x.xDevelopment Configuration
Configure the MCP in your coding agent (using claude in this example)
claude mcp add mindpilot -- npx tsx <path to...>/src/server/server.ts
Run claude with the --debug flag if you need to see MCP errors
Start the development client (Vite) to get hot module reloading while developing.
npm run dev
Open the development client
localhost:5173
Available Tools
2 toolsopen_uiC
Open the web-based user interface
Inputs: autoOpen.
render_mermaidA
Render a Mermaid diagram to SVG format. CRITICAL RULES: 1) Node IDs must be alphanumeric without spaces (use A1, nodeA, start_node). 2) For node labels with special characters, wrap in quotes: A["Label with spaces"] or A["Process (step 1)"]. 3) For quotes in labels use ", for < use <, for > use >. 4) For square brackets in labels use A["Array[0]"]. 5) Always close all brackets and quotes. 6) Use consistent arrow styles (either --> or ->). Example: graph TD\n A["Complex Label"] --> B{Decision?}\n B -->|Yes| C["Result "OK""]\n\nIMPORTANT: If the diagram fails validation, the error message will explain what needs to be fixed. Please read the error carefully and retry with a corrected diagram.
Inputs: diagram (required), title (required), background.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have completely distinct purposes: 'open_ui' launches a web interface, while 'render_mermaid' processes diagram code into SVG format. There is no overlap in functionality, making tool selection unambiguous.
Both tools follow a consistent verb_noun naming pattern ('open_ui' and 'render_mermaid'), using lowercase with underscores. The verbs 'open' and 'render' clearly describe their actions, maintaining a predictable convention throughout.
With only two tools, the server feels under-scoped for a 'Mindpilot' domain, which suggests broader cognitive or planning capabilities. This minimal set may limit agent workflows, as it lacks tools for core operations like creating, editing, or managing content beyond diagram rendering.
The tool surface is severely incomplete for a 'Mindpilot' server, which implies mind-mapping or planning functionality. It only offers UI access and diagram rendering, missing essential CRUD operations for mind maps, such as creating, updating, or retrieving content, leaving significant gaps for agent tasks.
Maintenance
Related MCP Connectors
Let Claude, Cursor, or ChatGPT author Mermaid diagrams your team can read and share.
Turn calls and notes into process flow diagrams in Claude, ChatGPT, VS Code, Cursor, and Teams.
Generate dynamic Mermaid diagrams and charts with AI assistance. Customize styles and export diagr…
Talk to Claude and get a live web app deployed to a real URL, with Postgres, storage and cron.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables AI models to generate interactive, clickable code walkthrough diagrams using Mermaid code and node descriptions. It provides a web interface for viewing, persisting, and sharing these diagrams via a local database and a dedicated share server.3-
- AlicenseNot gradedqualityDmaintenanceEnables visual drag-and-drop editing of Mermaid diagrams through Claude, allowing iterative refinement of software architecture designs.6MIT
- FlicenseNot gradedqualityDmaintenanceEnables Claude to design system architectures and scaffold minimal Python/Docker implementations, with live D3 visualization in the browser.-
- AlicenseAqualityDmaintenanceEnables Claude Code to create and edit presentation-grade visualizations such as cloud architecture diagrams, charts, KPI dashboards, and poster infographics, with auto-layout, themes, and export to SVG, PNG, JPG, and PDF.6MIT