A Model Context Protocol (MCP) server implementation for the mindm
library, providing a standardized interface to interact with MindManager on Windows and macOS.
This server allows you to programmatically interact with MindManager through the Model Context Protocol (MCP), a standardized way to provide context and tools to LLMs. It leverages the mindm
library to manipulate MindManager documents, topics, relationships, and other mindmap elements.
Example:
- Retrieve mindmap structure and central topics
- Export mindmaps to Mermaid, Markdown, JSON formats to be used in LLM chats
- Get information about MindManager installation and library folders
- Get current selection from MindManager
- Create new mindmaps from serialized data
- Add, modify, and manipulate topics and subtopics
- Add relationships between topics
- Add tags to topics
- Set document background images
- Python 3.12 or higher
mcp
package (Model Context Protocol SDK)mindm
library (included in this project)- MindManager (supported versions: 23-) installed on Windows or macOS
# Clone the repository (if you're using it from a repository)
git clone https://github.com/robertZaufall/mindm-mcp.git
cd mindm-mcp
# create a virtual environment for Python
brew install uv # if needed
uv pip install -r pyproject.toml
# alternative: manual installation of modules
uv add "mcp[cli]"
uv add fastmcp
uv add markdown-it-py
uv add -U --index-url=https://test.pypi.org/simple/ --extra-index-url=https://pypi.org/simple/ mindm mindm-mcp
# Change to DOS command prompt
cmd
# Clone the repository (if you're using it from a repository)
git clone https://github.com/robertZaufall/mindm-mcp.git
cd mindm-mcp
# create a virtual environment for Python
pip install uv # if needed
uv pip install -r pyproject.toml
# install nodejs
choco install nodejs # if you have chocolatey installed. If not install nodejs otherwise
refreshenv
node -v
npm install -g npx
# run mcp with inspector
uv run --with mind --with fastmcp --with markdown-it-py mcp dev mindm_mcp/server.py
Adjust the path for the local file as needed.
{
"mcpServers": {
"mindm (MindManager)": {
"command": "uv",
"args": [
"run",
"--with",
"mindm>=0.0.4.6",
"--with",
"fastmcp",
"--with",
"markdown-it-py",
"/Users/master/git/mindm-mcp/mindm_mcp/server.py"
]
}
}
}
Adjust VIRTUAL_ENV
as needed.
{
"mcpServers": {
"mindm (MindManager)": {
"command": "uv",
"args": [
"run",
"--with",
"mindm>=0.0.4.6",
"--with",
"mindm-mcp>=0.0.1.50",
"--with",
"fastmcp",
"--with",
"markdown-it-py",
"-m",
"mindm_mcp.server"
],
"env": {
"VIRTUAL_ENV": "/Users/master/git/mindm-mcp/.venv"
}
}
}
}
Hint: If the MCP server does not show up with the hammer icon on Windows, close Claude Desktop and kill all background processes.
The server exposes the following tools through the Model Context Protocol:
get_mindmap
: Retrieves the current mindmap structure from MindManagerget_selection
: Retrieves the currently selected topics in MindManagerget_library_folder
: Gets the path to the MindManager library folderget_grounding_information
: Extracts grounding information (central topic, selected subtopics) from the mindmap
serialize_current_mindmap_to_mermaid
: Serializes the currently loaded mindmap to Mermaid formatserialize_current_mindmap_to_markdown
: Serializes the currently loaded mindmap to Markdown formatserialize_current_mindmap_to_json
: Serializes the currently loaded mindmap to a detailed JSON object with ID mapping
- Windows: Full support for topics, notes, icons, images, tags, links, relationships, and RTF formatting
- macOS: Support for topics, notes, and relationships (limited support compared to Windows)
This MCP server can be installed in Claude Desktop or other MCP-compatible applications, allowing LLMs to:
- Access mindmap content
- Manipulate mindmaps (coming)
- Create new mindmaps based on LLM-generated content (coming)
- Ensure MindManager is running before starting the server
- For macOS, make sure you allow Claude Desktop to automate MindManager
This project is built upon the mindm
library, providing Python interfaces to MindManager on Windows and macOS platforms. It uses the Model Context Protocol (MCP) SDK developed by Anthropic.
MIT License - See LICENSE file for details