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

@lifeng688/xmind-mcp

v0.1.3

Published

An MCP server for creating, reading, editing and exporting XMind mind maps.

Readme

@lifeng688/xmind-mcp

An MCP server for creating, reading, searching, editing, and exporting XMind mind map files — no desktop automation, just clean file I/O.

Features

| Tool | Description | |---|---| | create_mindmap | Create a .xmind file from a JSON topic tree | | read_mindmap | Parse .xmind → structured JSON | | markdown_to_mindmap | Convert Markdown → .xmind | | export_to_markdown | Export .xmind → Markdown | | list_mindmaps | List all .xmind files in workspace | | add_topic | Add a child topic under an existing node | | update_topic | Update title, note, labels, or markers | | delete_topic | Delete a topic and its children | | search_topics | Search by title, note, or labels |

Installation

npm install
npm run build

Usage

npm run dev    # development mode (hot-reload)
npm start      # run compiled server
npm run inspect # launch MCP Inspector

Configuration

| Variable | Default | Description | |---|---|---| | XMIND_WORKSPACE_DIR | ./data/mindmaps | Root directory for .xmind files | | XMIND_AUTO_BACKUP | true | Auto-backup before modifications | | XMIND_AUDIT_LOG | true | Write audit log to logs/audit.log | | XMIND_MAX_TOPICS | 500 | Max topics per mind map |

Claude Desktop / Cursor

{
  "mcpServers": {
    "xmind-mcp": {
      "command": "npx",
      "args": ["-y", "@lifeng688/xmind-mcp"]
    }
  }
}

Or with a local install:

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

Tool Examples

Create a mindmap

{
  "name": "create_mindmap",
  "arguments": {
    "title": "Project Plan",
    "root": {
      "title": "Project Plan",
      "children": [
        { "title": "Phase 1", "children": [{ "title": "Requirement" }, { "title": "Design" }] },
        { "title": "Phase 2" }
      ]
    },
    "outputPath": "project-plan.xmind"
  }
}

Read a mindmap

{ "name": "read_mindmap", "arguments": { "filePath": "project-plan.xmind" } }

Search topics

{ "name": "search_topics", "arguments": { "filePath": "project-plan.xmind", "query": "urgent" } }

Add / Update / Delete topic

// add_topic
{ "name": "add_topic", "arguments": { "filePath": "project-plan.xmind", "parentTopicId": "topic-xyz", "title": "New Branch" } }

// update_topic
{ "name": "update_topic", "arguments": { "filePath": "project-plan.xmind", "topicId": "topic-xyz", "title": "Renamed", "labels": ["urgent"] } }

// delete_topic
{ "name": "delete_topic", "arguments": { "filePath": "project-plan.xmind", "topicId": "topic-to-remove" } }

Markdown ↔ Mindmap

{
  "name": "markdown_to_mindmap",
  "arguments": {
    "markdown": "# My Map\n\n## Branch A\n* Sub-item 1\n* Sub-item 2",
    "outputPath": "from-markdown.xmind"
  }
}
{ "name": "export_to_markdown", "arguments": { "filePath": "project-plan.xmind" } }

Security

  • Path Guard: All paths resolved through resolveWorkspacePath() — prevents directory traversal (../) attacks.
  • Auto Backup: Original file backed up to workspaceDir/.backup/ before mutations.
  • Audit Log: Every tool call logged as JSON line to logs/audit.log.

Limitations

  1. Modern XMind format only (ZIP + content.json). Legacy XMind 8 (content.xml) returns a clear error.
  2. No support for styles, layouts, images, attachments, or relationship lines.
  3. Edit operations rewrite the entire file — not a zip-level patch.
  4. Multi-sheet files: only the first sheet is operated on.

Architecture

src/
├── index.ts              # Entry point
├── server.ts             # MCP server setup
├── config/config.ts      # Environment-based config
├── utils/                # Errors, result builders
├── xmind/                # Reader, writer, converter, markdown parser/exporter
├── security/             # Path guard, backup, audit log
└── tools/                # One file per MCP tool

License

MIT

Roadmap

See docs/roadmap.md.