npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@41px/mcp-xmind

v2.1.0

Published

MCP server for XMind

Downloads

1,708

Readme

MCP XMind Server

A Model Context Protocol server for reading, creating and querying XMind mind maps. This tool provides powerful capabilities for searching, extracting, analyzing and generating XMind files.

Features

Reading

  • Parse complete mind map structure (multi-sheet)
  • Smart fuzzy search across mind maps
  • Task management and tracking (to-do + planned tasks)
  • Hierarchical content navigation
  • Link and reference extraction (external URLs + internal xmind:# links)
  • Multi-file analysis
  • Label, callout, boundary and summary support
  • Directory scanning

Writing

  • Create XMind files from structured JSON
  • Nested topics with notes (plain text + HTML formatting)
  • Labels, markers, callouts, boundaries, summaries
  • Relationships between topics (by title)
  • Internal links between topics across sheets (linkToTopic)
  • Simple to-do tasks (checkbox)
  • Planned tasks with Gantt support (dates, progress, priority, duration, dependencies)
  • Predefined themes (default, business, dark, simple)
  • Layout structures (clockwise, logic.right, org-chart, fishbone, timeline, etc.)
  • Overwrite protection

Security

  • Only allows access to specified directories
  • Path normalization and validation
  • Error handling for invalid access attempts

Installation

npm install @modelcontextprotocol/sdk adm-zip zod
npm install --save-dev typescript @types/node

Usage

Starting the Server

node dist/index.js <allowed-directory> [additional-directories...]

Available Tools

Reading Tools

  1. read_xmind - Parse and extract complete mind map structure
  2. list_xmind_directory - Recursively scan for XMind files
  3. read_multiple_xmind_files - Process multiple files simultaneously
  4. search_xmind_files - Search files by name or content
  5. extract_node - Smart fuzzy path matching with ranked results
  6. extract_node_by_id - Direct node access by ID
  7. search_nodes - Multi-criteria search (title, notes, labels, callouts, tasks)

Writing Tools

  1. create_xmind - Create XMind files from structured data

Examples

Read a Mind Map

{
    "name": "read_xmind",
    "arguments": {
        "path": "/path/to/file.xmind"
    }
}

Search for Nodes

{
    "name": "search_nodes",
    "arguments": {
        "path": "/path/to/file.xmind",
        "query": "project",
        "searchIn": ["title", "notes"],
        "caseSensitive": false
    }
}

Create a Mind Map with Planned Tasks

{
    "name": "create_xmind",
    "arguments": {
        "path": "/path/to/output.xmind",
        "sheets": [{
            "title": "Project Plan",
            "theme": "business",
            "rootTopic": {
                "title": "Deployment",
                "children": [
                    {
                        "title": "Analysis",
                        "durationDays": 3,
                        "progress": 0,
                        "priority": 1
                    },
                    {
                        "title": "Development",
                        "durationDays": 5,
                        "progress": 0,
                        "dependencies": [{"targetTitle": "Analysis", "type": "FS"}]
                    }
                ]
            }
        }]
    }
}

Create Multi-Sheet with Internal Links

{
    "name": "create_xmind",
    "arguments": {
        "path": "/path/to/output.xmind",
        "sheets": [
            {
                "title": "Overview",
                "rootTopic": {
                    "title": "Project",
                    "linkToTopic": "Details Root",
                    "children": [{"title": "Phase 1"}, {"title": "Phase 2"}]
                }
            },
            {
                "title": "Details",
                "rootTopic": {
                    "title": "Details Root",
                    "linkToTopic": "Project",
                    "notes": {"plain": "Detailed view", "html": "<p><strong>Detailed</strong> view</p>"}
                }
            }
        ]
    }
}

Configuration

Claude Desktop

Add the following to your claude_desktop_config.json (on macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):

Using npx (recommended)

{
  "mcpServers": {
    "xmind": {
      "command": "npx",
      "args": [
        "-y",
        "@41px/mcp-xmind",
        "/path/to/your/xmind/files"
      ]
    }
  }
}

Using a local build

{
  "mcpServers": {
    "xmind": {
      "command": "node",
      "args": [
        "/path/to/mcp-xmind/dist/index.js",
        "/path/to/your/xmind/files"
      ]
    }
  }
}

Restart Claude Desktop after editing the configuration.

Claude Code (CLI)

claude mcp add xmind -- npx -y @41px/mcp-xmind /path/to/your/xmind/files

Development

Building

npm run build

Testing

npm test

MCP Inspector

npx @modelcontextprotocol/inspector node dist/index.js /path/to/xmind/files