Markmap MCP Server
The Markmap MCP Server converts Markdown text into interactive mind maps using the Model Context Protocol. With this server, you can:
Convert Markdown content into interactive, visual mind maps
Interact with generated mind maps through zooming, expanding/collapsing nodes
Export mind maps in multiple formats (PNG, JPG, SVG)
Copy the original Markdown content with one click
Automatically open generated mind maps in your browser (optional)
Configure output settings via command-line arguments or environment variables
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., "@Markmap MCP Serverconvert this project outline to a mind map and open it in my browser"
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.
Markmap MCP Server
Markmap MCP Server is based on the Model Context Protocol (MCP). It converts Markdown into interactive mind maps using markmap, and can optionally export PNG / JPG / SVG on the server for Agent-friendly delivery. Generation runs locally — no third-party API keys required.
Features
Markdown → Mind Map: Convert Markdown (headings + nested lists) to interactive HTML mind maps
Agent-friendly returns: Return a file path, inline HTML, and/or image content (configured at startup)
Server-side export: Export PNG / JPG / SVG via Playwright for chat/inline preview
Browser preview: Configurable open behavior — always, never, or agent-decided (startup setting)
Browser export toolbar: When viewing HTML, also export PNG/JPG/SVG or copy Markdown in the page UI
Offline HTML: Startup
--offlineinlines assets so the page works without CDN accessFile workflows: Read from
inputPath, list recent outputs, clean up old filesPrivacy-first: Fully local conversion; no cloud mind-map API
Related MCP server: MindManager MCP Server
Prerequisites
Node.js v20 or above
For server-side image export (
format: png|jpg|svg): install Playwright and Chromium
npm install playwright
npx playwright install chromium(playwright is an optional dependency of this package.)
Installation
# Install from npm
npm install @jinzcdev/markmap-mcp-server -g
# Basic run
npx -y @jinzcdev/markmap-mcp-server
# Specify output directory and auto-open in browser
npx -y @jinzcdev/markmap-mcp-server --output /path/to/output/directory --open alwaysDocker
docker build -t markmap-mcp-server .
docker run --rm -i \
-v /path/to/output:/data/markmap \
-e MARKMAP_DIR=/data/markmap \
markmap-mcp-serverOr clone and run locally:
git clone https://github.com/jinzcdev/markmap-mcp-server.git
cd markmap-mcp-server
npm install && npm run build
# Optional: enable server-side image export
npx playwright install chromium
node build/index.jsUsage
Add the following configuration to your MCP client (Cursor / Claude Desktop / etc.):
{
"mcpServers": {
"markmap": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@jinzcdev/markmap-mcp-server"],
"env": {
"MARKMAP_DIR": "/path/to/output/directory",
"MARKMAP_OPEN": "never",
"MARKMAP_RETURN_MODE": "path"
}
}
}
}Server preferences (CLI / env)
These are decided when the server starts — not tool arguments:
Preference | CLI | Env | Values | Default |
Output directory |
|
| any directory path |
|
Open in browser |
|
|
|
|
Return mode |
|
|
|
|
Offline HTML |
|
|
|
|
CLI flags override environment variables. --output overrides MARKMAP_DIR.
--open: bare --open means always. You may also pass --open always|never|agent. An invalid value exits with an error. Without the flag, MARKMAP_OPEN is used (default never).
Return mode:
Mode | Meaning |
| Paths JSON only ( |
| Inline content only (raw HTML text, or a base64 image block) — no paths |
| Paths JSON plus inline content |
Generated HTML always includes the markmap toolbar, English export labels, and fully expanded nodes.
Example prompts
“Summarize this design doc as a mind map.”
“Convert
./notes/architecture.mdto a mind map.”“Generate a PNG mind map of this outline for the chat.”
Available Tools
markdown_to_mindmap
Convert Markdown into an interactive mind map (and optionally an image).
Parameter | Type | Default | Description |
| string | — | Markdown content (required unless |
| string | — | Absolute path to a local |
|
|
| Output format. Image formats need Playwright |
| string | auto | Output base name (sanitized; prefixed with |
| boolean |
| Whether to open the result in browser. Only exposed when server open mode is |
Return (returnMode=path):
{
"htmlFilePath": "/path/to/markmap-….html",
"filePath": "/path/to/markmap-….html"
}For image formats, filePath is the image path and htmlFilePath is still the HTML source.
Return (returnMode=content): Raw HTML text block, or an MCP image content block (base64) for png/jpg/svg — no paths JSON. Oversized HTML (≥200KB) falls back to paths JSON.
Return (returnMode=both): Paths JSON plus the inline content above.
Note: Interactive zoom/collapse and the in-page “Export PNG/JPG/SVG” buttons are part of the HTML viewer. Server-side
format: png|jpg|svgis what Agents can consume directly without a manual browser click.
list_mindmaps
List recent generated files in the output directory (newest first). Only files whose names start with markmap are included.
Parameter | Type | Default | Description |
| number |
| Max files to return (1–200) |
Returns {outputDir, files: [{name, filePath, size, mtimeMs, mtime}]}.
get_mindmap
Retrieve a generated mind map file by its absolute path. Path must stay inside the configured output directory (path traversal denied).
Parameter | Type | Default | Description |
| string | — | Absolute path to the mind map file (HTML or image) |
Returns JSON {filePath, mimeType, size}. For HTML/SVG under 200KB, also appends a text content block. PNG/JPG return metadata only (no image block) — re-export via markdown_to_mindmap with format=png\|jpg if pixels are needed.
cleanup_mindmaps
Delete old (or all) generated mind map files.
Parameter | Type | Default | Description |
| number |
| Delete files older than this many days |
| boolean |
| If true, delete all markmap files |
| boolean |
| If true, preview without deleting |
Prompt: mindmap_from_content
Helper prompt that asks the model to structure notes as Markdown, then call markdown_to_mindmap.
Parameter | Type | Default | Description |
| string | — | Topic or raw notes to organize as a map |
Related Projects
Project | Description |
Create XMind mind maps with Markdown online. Try it → | |
Render XMindMark syntax as XMind mind maps inside Obsidian. |
License
This project is licensed under the MIT License.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseBqualityCmaintenanceA Model Context Protocol server that converts Markdown content into interactive mindmaps, allowing AI assistants to visualize hierarchical information through either HTML content or saved files.1236MIT
- AlicenseAqualityCmaintenanceA Model Context Protocol server that enables LLMs to interact with MindManager mind maps, allowing retrieval of mind map structures and export to formats like Mermaid, Markdown, and JSON.1111MIT
- AlicenseDqualityCmaintenanceAn MCP server that allows LLMs to create structured Xmind mind maps with hierarchical topic structures, supporting features like notes, labels, and markers.17944MIT
- Flicense-qualityDmaintenanceA powerful Model Context Protocol server that automatically generates Mermaid diagrams from code and provides SVG beautification features.1
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
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/jinzcdev/markmap-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server