
Mindlm Mcp
io.github.qingchejun由 GitHub 帳號 qingchejun 發布v0.1.1更新於 Oct 24, 2026
Turn text, web pages and PDFs into interactive mind maps. MCP server + CLI, no API key.
概覽
本機 MCP 伺服器兼命令列工具,可將文字、網頁與 PDF 轉成 Markdown 大綱和可離線開啟的單一 HTML 心智圖。
- 可以做什麼
- 把既有的文字或 Markdown 整理成大綱,可設定層級深度、每個節點的子項數與語言,並可同時匯出 HTML 檔案(text_to_mindmap)。抓取 http(s) 網頁,擷取正文內容並產生大綱(url_to_mindmap)。讀取本機 PDF,可用書籤作為骨架並選擇頁面範圍,再產生大綱(pdf_to_mindmap)。把 Markdown 大綱轉成單一自包含的 HTML 心智圖,可設定工具列、展開層級與是否覆寫(export_mindmap)。取得可重複使用的大綱提示詞(mindmap_outline)。同一套流程也提供命令列版本,含 demo、text、url、pdf、export 與 doctor 指令。
- 適用情境
- 適合想把筆記、文章或論文快速變成易於瀏覽的心智圖,又不想註冊帳號或設定 API 金鑰,並希望得到可離線開啟或分享的 HTML 檔案。client 模式讓助理自己的模型在規則草稿上改寫大綱,適合助理已讀過原文的工作流程。
- 執行需求
- 透過 npx 以 stdio 在本機執行,需要 Node.js。無需帳號或 API 金鑰,所有環境變數皆為選用。僅在希望伺服器自行呼叫模型時,才需要 ANTHROPIC_API_KEY 或 OPENAI_API_KEY;使用 OpenAI 相容端點時還需 MINDMAP_LLM_MODEL,可選 OPENAI_BASE_URL。MINDMAP_OUTPUT_DIR 決定匯出 HTML 的位置(預設 ./mindmaps)。僅在抓取指定網址或呼叫自己的模型端點時需要網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mindlm Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
mindlm-mcp
Turn text, web pages and PDFs into interactive mind maps — an MCP server and a command-line tool, with no API key required.
[mindlm-mcp turning an outline into a mind map]
That renders a built-in example and opens it. One HTML file, no build step, no account, no key.
- Three inputs. Plain text or Markdown, an http(s) page, or a local PDF.
- Two outputs. A Markdown outline you can edit, and a standalone HTML mind map (markmap) that works offline — every script is inlined.
- Zero keys. Over MCP the server hands your own model a draft plus the cleaned source text and lets it write the final outline. Set your own API key only if you want the server to call a model itself. See How the outline gets written.
Docs and a live demo: https://qingchejun.github.io/mindlm-io/ · Source: https://github.com/qingchejun/mindlm-io
Quick start
Every client runs the same command — npx -y mindlm-mcp serve — and needs no environment
variables. MINDMAP_OUTPUT_DIR below is optional; it just decides where exported files land.
Claude Code
Scope it to one project with --scope project, and pass environment variables with -e:
Check it with claude mcp list, or /mcp inside a session.
Claude Desktop
Add this to claude_desktop_config.json, then restart the app:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Cursor
The same block goes in ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):
Ready-to-copy versions of all three live in examples/configs/.
Then ask for a mind map in plain language — "make a mind map of this PDF", "map out https://example.com/article" — and the client picks the right tool.
Tools
Four tools, always advertised in this order. The three *_to_mindmap tools return a Markdown
outline; export_mindmap turns an outline into an HTML file. Every result carries both a readable
text block and structuredContent.
text_to_mindmap
Outline text or Markdown you already have — a draft, notes, a transcript, a pasted chapter.
Input:
structuredContent (default auto mode with no API key, i.e. client mode):
With "mode": "heuristic" (or when an API key makes it "llm") the result is the same minus
sourceText and instructions — the outline is final and ready to export.
url_to_mindmap
Fetch a page and outline its main content. Article text is extracted with
Readability; navigation, footers and boilerplate are
dropped. Page furniture goes too: reference markers ([1]), "[edit]" links, notes above the
article, image captions, navigation boxes, and the trailing See also / References / Notes /
Further reading / External links / Bibliography sections, which are link lists rather than
content. A URL that serves a PDF is handed to the PDF pipeline automatically.
Input:
structuredContent adds a source block describing where the text came from:
pdf_to_mindmap
Read a local PDF, using its bookmarks as the skeleton when it has them. A PDF stores positioned lines rather than paragraphs, so the soft-wrapped lines of one paragraph are rejoined before sentences are split — otherwise a browser's "print to PDF" would yield nodes like "releases oxygen." instead of whole sentences.
Input:
structuredContent:
export_mindmap
Render a Markdown outline into a standalone HTML mind map. Call this after you (or your model) have written the outline. It will not overwrite an existing file unless you ask.
Input:
structuredContent:
Prompt
The server also exposes one prompt, mindmap_outline, which returns the outline rules
(optionally in a given language) followed by an instruction to call export_mindmap.
Command line
The same pipeline without a client. With no arguments and no terminal attached, mindlm-mcp
starts the MCP server — which is what an MCP client wants.
Options on the conversion commands:
Results a script might consume (a file path, an outline) go to stdout; progress and diagnostics go
to stderr. Exit codes: 0 ok, 1 usage error, 2 input error, 3 LLM error.
There is also a small programmatic API — textToOutline, urlToOutline, pdfToOutline,
renderMindmapHtml, exportMindmap — exported from the package root.
How the outline gets written
Deciding what belongs in the tree is the hard part, and there are three ways to do it. You never have to supply a key for any of this to work.
mode: "auto" (the default everywhere) picks the row that applies. You can always force one with
mode over MCP or --mode on the CLI. Run mindlm-mcp doctor to see which one auto resolves to
right now.
There is no hosted service behind any of this: no telemetry, no update check, no call home.
Configuration
Every variable is optional. Copy .env.example to .env and pass it explicitly
with --env-file .env — nothing is loaded automatically — or set the variables in your MCP
client's env block.
The exported HTML
One file, openable with a double click. By default every script and stylesheet — d3, markmap-view,
the toolbar — is inlined, so the map keeps working with no network, on a locked-down machine, or
five years from now when a CDN has moved on. That costs about 340 KB per file; pass
offline: false (--no-offline) if you would rather link the CDN copies.
The KaTeX and highlight.js markmap plugins are deliberately disabled: both pull stylesheets from a
CDN, which would quietly break an "offline" export. Raw HTML in the outline is not rendered
(markdown-it runs with html: false), so text extracted from a hostile page cannot inject
script into the file you open.
Exports carry no attribution by default. --branding / branding: true adds one small footer
line if you want it.
Limitations
- JavaScript-only pages.
url_to_mindmapreads the HTML the server sends. A single-page app that renders its content client-side will come back empty or nearly so — copy the text and usetext_to_mindmapinstead. There is no headless browser. - Scanned PDFs. A PDF needs a real text layer. Scans and image-only exports are rejected with a clear error; there is no OCR.
- Long documents are truncated, not chunked, at
MINDMAP_MAX_INPUT_CHARS. Usepageson a long PDF, or map it a section at a time. - The heuristic is a draft. It ranks sentences by position and term frequency. It is stable and
fast, and it will sometimes pick the wrong sentence. That is exactly why
clientmode exists. - Paywalls, logins and robots. The fetcher sends no cookies and does not log in.
Security
- SSRF guard.
url_to_mindmapresolves the host first and refuses loopback, private, link-local (including the169.254.169.254cloud metadata address), CGNAT and multicast ranges unless you setMINDMAP_ALLOW_PRIVATE_HOSTS=true. Onlyhttp:andhttps:are accepted. - Limits. 5 MB per fetched response, a 15 s timeout, at most 5 redirects, 50 MB / 300 pages per PDF, and a character cap on every input.
- No telemetry, no update check, no hosted backend. The only network calls are the URL you ask for and — if you configured a key — your own LLM endpoint.
- No raw HTML in exports, and inlined JSON has
</script>escaped. - Reporting a vulnerability, and the known DNS-rebinding caveat: SECURITY.md.
Launch materials and directory listings
This section is a placeholder owned by the outreach lead. Announcement copy, awesome-list entries
and MCP directory submissions (mcp.so, Glama, Smithery, PulseMCP, the official MCP Registry) are
tracked in docs/launch.md and are intentionally empty here.
Contributing
Issues and pull requests are welcome — see CONTRIBUTING.md. Requires Node ≥ 22.12.
Want a full editor?
mindlm-mcp is deliberately small: outline in, one HTML file out. If you want to keep editing the map afterwards — drag nodes around, restyle branches, collaborate, keep a library of maps — that is what mindlm.io is for. This package works completely on its own and never talks to it.
License
MIT © 2026 青澈君
來源:README.md,提交 92dd57b
工具
0版本歷史
1- v0.1.1最新Oct 15, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分