Integrates with Alibaba Cloud services including DashScope API for AI-powered mind map generation using Qwen models, and Object Storage Service (OSS) for automatically uploading and hosting generated mind maps with signed URLs
Converts Markdown text and files (including from URLs) into interactive mind maps with support for rich formatting and hierarchical structures
Markmap MCP Server
Markmap MCP Server is based on the Model Context Protocol (MCP) that allows one-click conversion of Markdown text to interactive mind maps, built on the open source project markmap. The generated mind maps support rich interactive operations and can be exported in various image formats.
🎉 Explore More Mind Mapping Tools
Try MarkXMind - An online editor that creates complex mind maps using simple XMindMark syntax. It supports real-time preview, multi-format export (.xmind/.svg/.png), importing existing XMind files. Try it now!
Features
🤖 AI-Powered Generation: Generate mind maps from plain text using Alibaba Cloud Qwen AI (NEW in v0.2.0)
🌠 Markdown to Mind Map: Convert Markdown text to interactive mind maps
🔗 Dual Storage Support: Upload to both Aliyun OSS and Minio, providing download and preview links (NEW in v0.2.8)
☁️ Aliyun OSS Integration: Automatically upload generated mind maps to Aliyun Object Storage and get online access links
🚀 Minio Fast Preview: Provide Minio preview links for fast access
🖼️ Multi-format Export: Support for exporting as PNG, JPG, SVG images, and XMind-compatible format
🔄 Interactive Operations: Support for zooming, expanding/collapsing nodes, and other interactive features
📋 Markdown Copy: One-click copy of the original Markdown content
🧹 Auto Cleanup: Automatically delete local temporary files after OSS upload
Prerequisites
Node.js (v20 or above)
Installation
Manual Installation
Alternatively, you can clone the repository and run locally:
Usage
Configuration (AI and OSS Required)
⚠️ Important: This tool requires API keys from environment variables to work.
The following configurations are pre-configured in the code:
OSS Bucket:
aiagenttestOSS Region:
oss-cn-beijingOSS Endpoint:
oss-cn-beijing.aliyuncs.comQwen Model:
qwen3-235b-a22b-thinking-2507API URL:
https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions
You need to provide the following API keys:
Environment Variables
Required API Keys (Must be configured):
DASHSCOPE_API_KEYorQWEN_API_KEY: Your Alibaba Cloud DashScope API key (Required)Get from: https://dashscope.console.aliyun.com/
OSS_ACCESS_KEY_ID: Aliyun OSS Access Key ID (Required)OSS_ACCESS_KEY_SECRET: Aliyun OSS Access Key Secret (Required)MINIO_ACCESS_KEY: Minio Access Key (Required)MINIO_SECRET_KEY: Minio Secret Key (Required)
Pre-configured Settings (Hard-coded in the application):
Model:
qwen3-235b-a22b-thinking-2507API URL:
https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completionsOSS Bucket:
aiagenttestOSS Region:
oss-cn-beijingOSS Endpoint:
oss-cn-beijing.aliyuncs.comMinio Endpoint:
119.45.11.171Minio Bucket:
pageMinio Preview URL:
http://page.thingotech.com.cn/page
Optional Configuration:
MARKMAP_DIR: Specify the output directory for temporary files (defaults to system temp directory)
⚠️ Important Notes:
Need to configure 5 API keys via environment variables (DashScope, OSS, Minio)
All other settings (buckets, regions, model, endpoints) are pre-configured
Mind maps are uploaded to both OSS and Minio, returning two links
OSS link valid for 5 years, Minio link for fast preview
Temporary local files are automatically deleted after upload
Available Tool
text-to-mindmap
Convert plain text descriptions into interactive mind maps using AI.
The text will be processed by Qwen AI model to generate structured Markdown, then converted to a mind map and automatically uploaded to OSS.
Parameters:
text: Text description to convert into a mind map (required string)
Example:
Filename Generation Rules:
The system automatically extracts the first heading (# heading) from the generated Markdown as the filename:
Keeps only Chinese, English, and numeric characters
Limits length to 20 characters
Adds timestamp to avoid duplicates
Example:
Pythonprogrammingbasics-1760693213328.html
Return Value:
On success, returns a structured JSON response (with two links):
Field Descriptions:
downloadUrl: OSS download link (long-term valid, 5-year signed URL)previewUrl: Minio preview link (fast access)filename: Auto-generated filename (extracted from first heading, max 20 chars)timestamp: Generation timestampmessage: Plain text formatted status message (URLs on separate lines for easy copying)
message Field Format:
On failure, returns error details:
Requirements:
✅ Qwen API configuration (required)
✅ OSS configuration (required)
Available Export Formats:
The generated mind map HTML includes buttons (in Chinese) to export in multiple formats:
📸 导出 PNG: Export as PNG image
📸 导出 JPG: Export as JPG image
📸 导出 SVG: Export as SVG vector image
🧠 导出 .mm 文件: Export as FreeMind format (.mm file) - Can be opened in XMind, FreeMind, Freeplane
📋 复制 Markdown: Copy the original Markdown content
License
This project is licensed under the MIT License.
This server cannot be installed