Markmap

Design and mediaContent and CMS

An MCP server for converting Markdown to interactive mind maps with export support (PNG/JPG/SVG).

Your AI app calls the Markmap MCP server, which does the design and media and content and CMS work and sends the result back to the chat.

About Markmap

Markmap is a community MCP server from jinzcdev, filed in our directory under design and media and content and cms. An MCP server for converting Markdown to interactive mind maps with export support (PNG/JPG/SVG).

Markmap runs on your own machine: your AI app starts it with the command npx -y playwright and talks to it over standard input and output.

At a glance

Publisher
jinzcdev (community)
Runs
Locally on your machine
Install from
Node.js package on npm: playwright
Written in
TypeScript
License
MIT
GitHub stars
290

How to set up Markmap

  1. Install Node.js on the machine that runs your AI app, because Markmap starts with npx and downloads its package on first run.
  2. Check the Markmap README for keys or settings; the registry lists none that Markmap requires.
  3. Add Markmap to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Markmap tools to confirm the connection.
  5. Run one read-only task with Markmap first, and keep your app asking before each tool call until the results look right.

Markmap compared with similar servers

  • Mastergo Magic by mastergo-design has fewer GitHub stars than Markmap (290 against 290); both are community servers, and both run locally.
  • 3d New Era AI by leandrodaf has more GitHub stars than Markmap (292 against 290); both are community servers, and 3d New Era AI runs as a remote server and Markmap runs on your own machine.
  • Open Screenshot Generator by dotnetdreamer has fewer GitHub stars than Markmap (290 against 290); both are community servers, and both run locally.

Before you connect Markmap

  • Give Markmap its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Markmap tool call until you trust what it does with them.
  • Treat text that Markmap fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Markmap on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Markmap

How marketing and sales teams put Markmap to work, by company size. Pick the size closest to yours and start Markmap on one use case.

Small business

  • A small business can use Markmap to resize and adapt one design for every channel instead of hiring for each version.
  • Owners can ask Markmap to pull brand assets and make quick ad and social variations that still look on brand.
  • A small business can use Markmap to draft, update and publish site pages from a chat, keeping the site fresh without an agency.
  • Markmap runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Creative teams can connect Markmap so agents produce variants for testing while designers keep control of the master files.
  • Marketing teams can use Markmap to hand off designs to web and ads with specs attached, cutting review rounds.
  • Content teams can connect Markmap to move drafts into the CMS with fields, tags and metadata filled in, ready for an editor.
  • Start Markmap on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can use Markmap with brand rules and approved assets only, so generated work stays inside the brand system.
  • Large creative ops teams can use Markmap to localize and version assets for many markets with review built in.
  • Enterprises can give Markmap draft-only rights, so agents prepare content while publishing stays with approved editors.
  • Markmap is a community server, so have security review the code and pin a version before Markmap touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Markmap README

From jinzcdev/markmap-mcp-server on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

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 --offline inlines assets so the page works without CDN access
  • File workflows: Read from inputPath, list recent outputs, clean up old files
  • Privacy-first: Fully local conversion; no cloud mind-map API

Prerequisites

  1. Node.js v20 or above
  2. 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 always
Docker
docker build -t markmap-mcp-server .
docker run --rm -i \
  -v /path/to/output:/data/markmap \
  -e MARKMAP_DIR=/data/markmap \
  markmap-mcp-server

Or 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.js

Usage

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 --output / -o MARKMAP_DIR any directory path ~/.markmap-mcp
Open in browser --open [mode] MARKMAP_OPEN always | never | agent (bare --open = always) never
Return mode --return-mode MARKMAP_RETURN_MODE path | content | both path
Offline HTML --offline MARKMAP_OFFLINE true | false (CLI: pass --offline to enable) false

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
path Paths JSON only (htmlFilePath + filePath)
content Inline content only (raw HTML text, or a base64 image block), no paths
both 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.md to 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
markdown string , Markdown content (required unless inputPath is set). Wins when both are provided.
inputPath string , Absolute path to a local .md file
format html | png | svg | jpg html Output format. Image formats need Playwright
filename string auto Output base name (sanitized; prefixed with markmap- if needed; reusing overwrites)
open boolean false Whether to open the result in browser. Only exposed when server open mode is agent (--open agent / MARKMAP_OPEN=agent).

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|svg is 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
limit number 20 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
filePath 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
maxAgeDays number 7 Delete files older than this many days
all boolean false If true, delete all markmap files
dryRun boolean false 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
topic string , Topic or raw notes to organize as a map

Related Projects

Project Description
MarkXMind Online Create XMind mind maps with Markdown online. Try it →
Obsidian MarkXMind Plugin Render XMindMark syntax as XMind mind maps inside Obsidian.

License

This project is licensed under the MIT License.

Questions about Markmap

What is the Markmap MCP server?

An MCP server for converting Markdown to interactive mind maps with export support (PNG/JPG/SVG). Markmap is maintained by jinzcdev on GitHub at jinzcdev/markmap-mcp-server, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Markmap MCP server?

Add Markmap to your AI app's MCP config with the command npx -y playwright. In Claude Code, run claude mcp add --transport stdio markmap -- npx -y playwright. To run Markmap this way you need Node.js installed.

Does Markmap need an API key?

The registry lists no required keys for Markmap. Check the Markmap README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Markmap an official MCP server?

No. Markmap is a community server maintained by jinzcdev. Community servers can be excellent; read the code and the open issues before you give Markmap access to company data.

What license is Markmap under?

Markmap is released under the MIT license, according to its GitHub repository. The license covers the code of Markmap; the service it connects to has its own terms.