by YuChenSSR
A Model Context Protocol (MCP) server for converting Markdown content to interactive mindmaps.
mindmap-mcp-server is a Model Context Protocol (MCP) server designed to convert Markdown content into interactive mindmaps. It leverages the markmap-cli
library to generate HTML-based mindmaps, providing a visual representation of structured text.
Mindmap-mcp-server can be installed and used in several ways:
pip install mindmap-mcp-server
uvx mindmap-mcp-server
ychen94/mindmap-converter-mcp
and configure your MCP client to use the Docker command.Once installed, you can integrate it with MCP clients like Claude Desktop by adding the server configuration to your claude_desktop_config.json
. You can specify whether the server should return the full HTML content of the mindmap or a file path to the generated HTML file.
Q: What are the prerequisites for running mindmap-mcp-server?
A: Node.js is required when using python
or uvx
to run the server. Docker is an alternative that bundles all dependencies.
Q: I'm a Windows user and facing issues. What should I do? A: The Docker method is recommended for Windows users. Alternatively, for Visual Studio Code users, the "Markmap" extension might be a simpler solution.
Q: How can I save tokens when using this server with an AI client?
A: Configure the server to return filePath
instead of html
. This will save the mindmap to a file and return the file path, reducing the amount of data sent back to the AI client.
Q: What is the difference between markdown-to-mindmap-content
and markdown-to-mindmap-file
tools in the Docker container?
A: markdown-to-mindmap-content
returns the entire HTML content, suitable for simple mindmaps and direct preview in AI client artifacts. markdown-to-mindmap-file
saves the mindmap to a file in a mounted directory and returns the file path, ideal for complex mindmaps or saving tokens.
Q: My mind map file is not accessible after generation. What should I check? A: Ensure correct volume mounting in Docker, verify path formats for your operating system, and confirm Docker has directory access permissions.
Q: The server is not appearing in my Claude Desktop. What troubleshooting steps can I take? A: Restart Claude Desktop after configuration changes, check Claude logs for connection errors, and ensure Docker is running if you are using the Docker method.
A Model Context Protocol (MCP) server for converting Markdown content to interactive mindmaps.
pip install mindmap-mcp-server
Or using uvx
:
uvx mindmap-mcp-server
Or using docker
safer and easier.
Three installation methods have been successfully tested on macOS and Linux.
For Windows users experiencing issues with npx
for this MCP, consider using the Docker method. Alternatively, if you use Visual Studio Code, the "Markmap" extension offers a potentially simpler solution than navigating command-line tools.
If you're experiencing unresolved issues, you can use my recent system prompt as a Mindmap Assistant instead of using this MCP server.
You are a specialized assistant that generates HTML code for interactive markdown-based mind maps (markmaps). When a user sends you content, respond with a complete HTML document that displays their content as a markmap visualization.
If artifact tool is turned on, you can use the artifact.
Follow these requirements:
1. Use the markmap-autoloader library (version 0.18 or latest stable version)
2. Format the HTML exactly according to the template below
3. Replace the demo content in the template with the user's content, preserving their hierarchical structure
4. Maintain the markmap configuration options (maxWidth: 300, colorFreezeLevel: 2)
5. If the user doesn't provide markdown formatting (# for headings), format their content appropriately with main topics using # and subtopics using ##
Template to follow:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Markmap</title>
<style>
svg.markmap {
width: 100%;
height: 100vh;
}
</style>
<script src="https://cdn.jsdelivr.net/npm/markmap-autoloader@0.18"></script>
</head>
<body>
<div class="markmap">
<script type="text/template">
---
markmap:
maxWidth: 300
colorFreezeLevel: 2
---
# markmap
## Links
- <https://markmap.js.org/>
- [GitHub](https://github.com/markmap/markmap)
## Related
- [coc-markmap](https://github.com/markmap/coc-markmap)
- [gatsby-remark-markmap](https://github.com/markmap/gatsby-remark-markmap)
## Features
- links
- **inline** ~~text~~ *styles*
- multiline
text
- `inline code`
- Katex - $x = {-b \pm \sqrt{b^2-4ac} \over 2a}$
- This is a very very very very very very very very very very very very very very very long line.
</script>
</div>
</body>
</html>
Visualization options: (If formulas or symbols don’t display correctly, download the HTML file and open it in a browser.)
View the mindmap in artifacts (if available):
Render the HTML file as a mindmap:
This package requires Node.js to be installed when using command python
or uvx
to run the server.
Add this server to your claude_desktop_config.json
:
{
"mcpServers": {
"mindmap": {
"command": "uvx",
"args": ["mindmap-mcp-server", "--return-type", "html"]
}
}
}
or
recommended:
{
"mcpServers": {
"mindmap": {
"command": "uvx",
"args": ["mindmap-mcp-server", "--return-type", "filePath"]
}
}
}
we use --return-type
to specify the return type of the mindmap content, you can choose html
or filePath
according to your needs.
html
will return the entire HTML content of the mindmap, which you can preview in your AI client's artifact;
filePath
will save the mindmap to a file and return the file path,which you can open in your browser. It can save your tokens !
Using a specific Python file in this repository:
{
"mcpServers": {
"mindmap": {
"command": "python",
"args": ["/path/to/your/mindmap_mcp_server/server.py", "--return-type", "html"]
}
}
}
or
{
"mcpServers": {
"mindmap": {
"command": "python",
"args": ["/path/to/your/mindmap_mcp_server/server.py", "--return-type", "filePath"]
}
}
}
we use --return-type
to specify the return type of the mindmap content, you can choose html
or filePath
according to your needs. see using `uvx` for more details.
First, you pull the image:
docker pull ychen94/mindmap-converter-mcp
Second, set the server:
{
"mcpServers": {
"mindmap-converter": {
"command": "docker",
"args": ["run", "--rm", "-i", "-v", "/path/to/output/folder:/output", "ychen94/mindmap-converter-mcp:latest"]
}
}
}
⚠️ Replace /path/to/output/folder
with an actual path on your system where you want to save mind maps, such as /Users/username/Downloads
on macOS or C:\\Users\\username\\Downloads
on Windows.
Tools Provided in the docker container The server provides the following MCP tools:
-v
and /path/to/output/folder:/output
in the command docker
.File Not Found
If your mind map file isn't accessible:
1 Check that you've correctly mounted a volume to the Docker container
2 Ensure the path format is correct for your operating system
3 Make sure Docker has permission to access the directory
Docker Command Not Found
1 Verify Docker is installed and in your PATH
2 Try using the absolute path to Docker
Server Not Appearing in Claude
1 Restart Claude for Desktop after configuration changes
2 Check Claude logs for connection errors
3 Verify Docker is running
Advanced Usage
Using with Other MCP Clients
This server works with any MCP-compatible client, not just Claude for Desktop. The server implements the Model Context Protocol (MCP) version 1.0 specification.
This server provides a tool for converting Markdown content to mindmaps using the markmap-cli
library:
In Claude, you can ask:
"give a mindmap for the following markdown code, using a mindmap tool:
# Project Planning
## Research
### Market Analysis
### Competitor Review
## Design
### Wireframes
### Mockups
## Development
### Frontend
### Backend
## Testing
### Unit Tests
### User Testing
"
if you want to save the mindmap to a file, and then open it in your browser using the iTerm MCP server:
"give a mindmap for the following markdown input_code using a mindmap tool, after that,use iterm to open the generated html file. input_code:
markdown content
"
"Think about the process of putting an elephant into a refrigerator, and provide a mind map. Open it with a terminal."
and more
This project is licensed under the MIT License. For more details, please see the LICENSE file in this project repository
If this project is helpful to you, please consider giving it a Star ⭐️
The advancement of technology ought to benefit all individuals rather than exploit the general populace.
Please log in to share your review and rating for this MCP.
Discover more MCP servers with similar functionality and use cases
by elie222
An AI‑powered email assistant that automates inbox management, enabling users to reach inbox zero fast by handling replies, labeling, archiving, unsubscribing, and providing analytics through a plain‑text prompt configuration.
by makenotion
Provides a remote Model Context Protocol server for the Notion API, enabling OAuth‑based installation and optimized toolsets for AI agents with minimal token usage.
by sooperset
MCP Atlassian is a Model Context Protocol (MCP) server that integrates AI assistants with Atlassian products like Confluence and Jira. It enables AI to automate tasks, search for information, and manage content within Atlassian ecosystems.
by ggozad
Interact with Ollama models through an intuitive terminal UI, supporting persistent chats, system prompts, model parameters, and MCP tools integration.
by nbonamy
A desktop AI assistant that bridges dozens of LLM, image, video, speech, and search providers, offering chat, generative media, RAG, shortcuts, and extensible plugins directly from the OS.
by GongRzhe
Provides tools for creating, editing, and enhancing PowerPoint presentations through a comprehensive set of MCP operations powered by python-pptx.
by GongRzhe
Creates, reads, and manipulates Microsoft Word documents through a standardized interface for AI assistants, enabling rich editing, formatting, and analysis capabilities.
by GongRzhe
Gmail-MCP-Server is a Model Context Protocol (MCP) server that integrates Gmail functionalities into AI assistants like Claude Desktop. It enables natural language interaction for email management, supporting features like sending, reading, and organizing emails.
by nspady
google-calendar-mcp is a Model Context Protocol (MCP) server that integrates Google Calendar with AI assistants. It enables AI assistants to manage Google Calendar events, including creating, updating, deleting, and searching for events.