mcp-xmind

mcp-xmind avatar

by apeyroux

Community Servers

What is mcp-xmind

MCP XMind Server

smithery badge

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

Features

  • ๐Ÿ” Smart fuzzy search across mind maps
  • ๐Ÿ“ Task management and tracking
  • ๐ŸŒฒ Hierarchical content navigation
  • ๐Ÿ”— Link and reference extraction
  • ๐Ÿ“Š Multi-file analysis
  • ๐Ÿท๏ธ Label and tag support
  • ๐Ÿ“‚ Directory scanning
  • ๐Ÿ”’ Secure directory access

Installation

Installing via Smithery

To install XMind Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @41px/mcp-xmind --client claude

Manual 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

  1. read_xmind

    • Parse and analyze XMind files
    • Extract complete mind map structure
  2. get_todo_tasks

    • Extract and analyze TODO tasks
    • Include task context and hierarchy
  3. list_xmind_directory

    • Recursively scan for XMind files
    • Filter and organize results
  4. read_multiple_xmind_files

    • Process multiple files simultaneously
    • Compare and analyze across files
  5. search_xmind_files

    • Search files by name patterns
    • Recursive directory scanning
  6. extract_node

    • Smart fuzzy path matching
    • Ranked search results
    • Complete subtree extraction
  7. extract_node_by_id

    • Direct node access by ID
    • Fast and precise retrieval
  8. search_nodes

    • Multi-criteria content search
    • Configurable search fields

Examples

Search for Nodes

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

Extract Node

{
    "name": "extract_node",
    "arguments": {
        "path": "/path/to/file.xmind",
        "searchQuery": "Feature > API"
    }
}

List Tasks

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

Configuration

Development Configuration

Example claude_desktop_config.json for development:

{
  "xmind": {
    "command": "node",
    "args": [
      "/Users/alex/Src/mcp-xmind/dist/index.js",
      "/Users/alex/XMind"
    ]
  }
}

Production Configuration

Example claude_desktop_config.json for production using npmjs:

{
  "xmind": {
    "command": "npx",
    "args": [
      "-y",
      "@41px/mcp-xmind",
      "/Users/alex/XMind"
    ]
  }
}

Security

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

Development

Building

npm run build

Type Checking

npm run type-check

MCP Inspector

npx @modelcontextprotocol/inspector node dist/index.js /Users/alex/XMind

Leave a Comment

Comments section will be available soon. Stay tuned!

Frequently Asked Questions

What is MCP?

MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications, providing a standardized way to connect AI models to different data sources and tools.

What are MCP Servers?

MCP Servers are lightweight programs that expose specific capabilities through the standardized Model Context Protocol. They act as bridges between LLMs like Claude and various data sources or services, allowing secure access to files, databases, APIs, and other resources.

How do MCP Servers work?

MCP Servers follow a client-server architecture where a host application (like Claude Desktop) connects to multiple servers. Each server provides specific functionality through standardized endpoints and protocols, enabling Claude to access data and perform actions through the standardized protocol.

Are MCP Servers secure?

Yes, MCP Servers are designed with security in mind. They run locally with explicit configuration and permissions, require user approval for actions, and include built-in security features to prevent unauthorized access and ensure data privacy.