mindlm-io is a tool that turns text, web pages, and PDFs into interactive mind maps, comprising an MCP server and a command-line tool, usable without an API key.
Purpose and input/output It supports three kinds of input: plain text or Markdown, http(s) web pages, and local PDFs. It produces two kinds of output: an editable Markdown outline and a standalone HTML mind map (built on markmap); the exported HTML works offline, with all scripts inlined.
Main capabilities
- text_to_mindmap: generates an outline for existing text or Markdown.
- url_to_mindmap: fetches a web page and extracts the main content with Readability, removing page elements such as navigation, footers, and references; if the URL returns a PDF, it is automatically handed to the PDF flow.
- pdf_to_mindmap: reads a local PDF; when bookmarks are present, it uses them as the skeleton, and it rejoins soft line breaks to restore complete sentences.
- export_mindmap: renders a Markdown outline as a standalone HTML mind map, and by default does not overwrite existing files.
- The server also provides a prompt: mindmap_outline, which returns outline rules and instructs a call to export_mindmap.
Usage MCP clients uniformly run the command npx -y mindlm-mcp serve, with no environment variables required; MINDMAP_OUTPUT_DIR is optional and specifies where exported files are placed. The documentation gives configuration examples for Claude Code, Claude Desktop, and Cursor; once configured, you can request mind map generation in natural language. The command line starts the MCP server when given no arguments and no terminal; conversion command results go to stdout, progress and diagnostics go to stderr, and exit codes are 0 for success, 1 for usage error, 2 for input error, and 3 for LLM error. The package root also exports programmatic APIs such as textToOutline, urlToOutline, pdfToOutline, renderMindmapHtml, and exportMindmap.
Outline generation By default, mode: "auto" automatically selects an available method; you can also force one via MCP's mode or the CLI's --mode. Running mindlm-mcp doctor shows the current auto resolution result. Without an API key, client mode is used, where the user's own model writes the final outline; heuristic mode (ranking sentences by position and word frequency) can also be used, or a key can be configured to let the server call the model.
Use cases Suitable for quickly organizing notes, articles, and PDF chapters into mind maps, or generating maps via natural language in an MCP client, and exporting a single-file HTML that can be distributed offline.
Limitations
- Pages rendered only by JavaScript return empty or near-empty content; copy the text and use text_to_mindmap instead; there is no headless browser.
- Scanned PDFs without a text layer are rejected; OCR is not supported.
- Long documents are truncated at MINDMAP_MAX_INPUT_CHARS rather than chunked; use the pages parameter to process them in segments.
- Heuristic outlines are only drafts and may select the wrong sentences.
- The fetcher does not send cookies or log in, so it cannot handle paywalls and login pages.
- SSRF protection is in place, rejecting loopback, private, link-local, and similar addresses by default unless MINDMAP_ALLOW_PRIVATE_HOSTS=true is set; only http and https are accepted.
- Limits include 5 MB per response, a 15-second timeout, at most 5 redirects, PDF 50 MB / 300 pages, and a character cap per input.
- Exports do not render raw HTML, and inline JSON escapes </script>; there is no attribution by default, and a footer can be added with branding.
- Requires Node ≥ 22.12.
The project emphasizes no telemetry, no update checks, and no hosted backend; network requests are limited to user-specified URLs and the user's own configured LLM endpoints. For continuous editing, collaboration, and a map library, the project points to mindlm.io, but this package runs completely independently and does not communicate with it.