What is the Markmap MCP server?
Markmap MCP Server is a local MCP server that converts Markdown headings and nested lists into an interactive HTML mind map, built on the markmap library. It can also export the result as PNG, JPG or SVG through Playwright, and an AI coding agent can read back recent or generated output.
Markmap MCP Server reads Markdown headings and nested lists and turns them into an interactive mind map, using the open-source markmap library. The conversion runs on your machine, so no API key or cloud call is needed.
An AI coding agent can pass raw Markdown text or point to a local .md document, then get back a path, inline HTML, or an image block, depending on how the server is configured at startup.
What it changes in your workflow
- A design doc, outline or set of notes becomes a zoomable, collapsible mind map without opening a separate app.
- Server-side export through Playwright produces a PNG, JPG or SVG image so the agent can drop it straight into chat.
- An offline mode inlines assets into the HTML output, so the page still works without reaching a CDN.
- A cleanup tool deletes old generated output by age, so the output location does not fill up over time.
Where it runs
| Markmap MCP server | |
|---|---|
| Where it runs | Locally, started by your MCP client |
| Transport | stdio |
| Account or key | None, conversion is fully local |
| Image export | Needs Playwright and a Chromium install |
Who it is for
Best for
- Anyone who wants a quick mind map from meeting notes, a design brief or a project outline.
- Agent workflows that need a chat-friendly image of a hierarchy instead of a wall of Markdown.
- Privacy-conscious setups, since conversion stays on the local machine with no cloud mind-map API.
Not for
- Generating an animated SVG from a single JSON config rather than a Markdown outline, which is what the nakkas MCP renders.
- Keeping a searchable React component library on hand instead of drawing a one-off mind map, a job the Lightswind UI MCP does for agents.
- Loading visualization design rules for charts or diagrams rather than converting a document outline, the specific task the Generative UI MCP loads on demand.
Use it with UiChemy
A mind map is a useful planning step before building a page. Once the structure is set, UiChemy turns that plan into an editable WordPress page: Composer edits Elementor or Gutenberg visually, and AI to WordPress imports an existing AI build. Click Get Started on uichemy.com.
Connect Markmap MCP Server: Markdown to Interactive Mind Maps to your AI client
npx -y @jinzcdev/markmap-mcp-serverCheck prerequisites
Node.js v20 or above is required. For server-side PNG, JPG or SVG export, run npm install playwright and npx playwright install chromium first.
Add the server config
Put the config above in your MCP client's settings, for Cursor, Claude Desktop or another stdio-capable client. Set MARKMAP_DIR to where generated output should land.
Or run it directly
Run npx -y @jinzcdev/markmap-mcp-server --output /path/to/output --open always to start the server with an output location and auto-open behavior set on the command line.
Restart and test
Restart your client, then ask it to summarize a document or convert a specific Markdown document into a mind map.
Client configuration
{
"mcpServers": {
"markmap": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@jinzcdev/markmap-mcp-server"],
"env": {
"MARKMAP_DIR": "/path/to/output/location",
"MARKMAP_OPEN": "never",
"MARKMAP_RETURN_MODE": "path"
}
}
}
}Endpoints and ports
npx -y @jinzcdev/markmap-mcp-serverStarts the server over stdio with default settings.--output / MARKMAP_DIRWhere generated HTML and images are written, defaults to ~/.markmap-mcp.--return-mode / MARKMAP_RETURN_MODEControls whether tools return paths, inline content, or both.What you can do with it
- Local conversionMarkdown is turned into a mind map on your own machine, with no third-party API key or cloud mind-map service.
- Server-side image exportPlaywright renders the mind map to PNG, JPG or SVG so the agent can hand back an image instead of only HTML.
- Flexible return modesA path, content or both return mode decides whether a tool call gets a path, inline HTML or image data, or everything.
- Document input supportAn agent can point to an existing Markdown document by its absolute path instead of pasting the whole thing as text.
- Offline HTML outputStarting the server with --offline inlines assets into the generated page, so it renders without a CDN connection.
- Browser preview controlAn always, never or agent-decided open setting controls whether the generated mind map opens in a browser automatically.
- Built-in cleanupA dedicated tool removes old generated output by age or clears the output location entirely, with a dry-run check first.
Tools it exposes
markdown_to_mindmap
Converts Markdown text or a document at inputPath into an interactive mind map, with an optional format of html, png, jpg or svg.
list_mindmaps
Lists recently generated mind maps in the output location, newest first, up to a given limit.
get_mindmap
Retrieves a generated mind map by its absolute path, returning its path, MIME type and size.
cleanup_mindmaps
Deletes generated mind maps older than a given number of days, or all of them, with a dry-run preview option.
Frequently asked questions
What is the Markmap MCP server?
It is an MCP server that converts Markdown headings and nested lists into an interactive HTML mind map using the markmap library, and can export that mind map as a PNG, JPG or SVG image through Playwright for an AI coding agent to use.
How do I set up the Markmap MCP server?
Run npx -y @jinzcdev/markmap-mcp-server, or add a server entry with command npx and args -y and @jinzcdev/markmap-mcp-server to your MCP client's stdio configuration. Set MARKMAP_DIR to choose where generated output is written, then restart the client.
Does the Markmap MCP server need an API key?
No. Conversion from Markdown to a mind map runs locally using the markmap library, with no cloud mind-map service or API key involved. Only server-side image export needs an additional local dependency, Playwright with Chromium.
How do I export a mind map as an image?
Install Playwright and Chromium with npm install playwright and npx playwright install chromium, then call markdown_to_mindmap with format set to png, jpg or svg. The HTML version is still produced alongside the image.
Which AI coding agents work with the Markmap MCP server?
The project lists Cursor and Claude Desktop as example MCP clients in its setup config, and the server runs over the standard stdio transport, so any MCP client that can start a local stdio command can use it.
Can an agent find mind maps it generated earlier?
Yes. The list_mindmaps tool returns recent mind maps in the output location, newest first, and get_mindmap retrieves one by its absolute path, as long as that path stays inside the configured output location.
How do I remove old generated mind maps?
Call cleanup_mindmaps with a maxAgeDays value to delete generated mind maps older than that many days, or set all to true to clear the output location. A dryRun option previews what would be deleted first.


