home / mcp / tree analyzer mcp server
Provides family tree analysis, error detection, and report generation via the MCP protocol for genealogy data.
Configuration
View docs{
"mcpServers": {
"ibarrajo-tree-analyzer-mcp": {
"command": "python",
"args": [
"-m",
"tree_analyzer_mcp.server"
]
}
}
}You can run the Tree Analyzer MCP Server to perform family tree analysis, error detection, and report generation through the MCP protocol. It integrates with Claude Code and related tools to identify duplicates, validate timelines, check relationships, and surface missing sources, all while producing Markdown reports you can share or export.
To use the Tree Analyzer MCP Server, you connect your MCP client to the server using the standard MCP protocol. The server exposes a set of analysis tools that you can invoke through explicit function calls, each returning Markdown reports, timelines, and structured recommendations. Focus your usage on the most critical areas first, such as detecting name duplicates, validating timelines, and assessing source coverage, then move to comprehensive audits and targeted research leads.
Prerequisites you need before starting include Python 3.11 or newer and pip for package management.
Option 1 β Via Claude Desktop configuration (recommended for quick setup) : a configuration entry is added to your Claude Desktop config file as shown below.
{
"mcpServers": {
"tree-analyzer": {
"command": "python",
"args": ["-m", "tree_analyzer_mcp.server"],
"cwd": "/path/to/tree-analyzer-mcp-standalone"
}
}
}Run the MCP server in a container and mount your data directory to the containerβs data path.
docker run -v /path/to/data:/app/data tree-analyzer-mcpClone the repository, create a virtual environment, and install the package in editable mode.
git clone https://github.com/ibarrajo/tree-analyzer-mcp
cd tree-analyzer-mcp
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install in development mode
pip install -e ".[dev]"When starting from any installation method, use the final runtime command to run the MCP server. The following command starts the server in stdio mode and enables the protocol communication with an MCP client.
python -m tree_analyzer_mcp.serverFind potential duplicate persons using fuzzy name matching with configurable surname focus and similarity threshold.
Check for impossible dates, age issues, and parent-child age gaps across the tree.
Detect structural problems such as circular ancestry, orphans, and problematic marriages.
Identify persons or events missing source citations within a defined generational window.
Create a detailed Markdown profile for a single person, including facts, relationships, and sources.
Produce a comprehensive audit of the tree with statistics and recommendations.
Provide prioritized next steps for genealogy research based on current findings.
Deeply compare two persons to identify potential duplicates by combining multiple similarity criteria.