Skip to main content
Glama
genealogy-mcp-server

genealogy-mcp-server

by cyanheads

Version License Docker MCP SDK npm TypeScript Bun

Install in Claude Desktop Install in Cursor Install in VS Code

Framework


Overview

Start with a name, read a WikiTree profile or trace its family, and look for independent evidence in archival records. Ten read-only tools cover 22 sources. Ten sources are live and twelve come from an optional SQLite mirror. The public upstream searches need no API credentials. Run the server locally over stdio or self-host it over Streamable HTTP.

Tools

Tool

Description

genealogy_find_person

Discover possible matches across the shared tree and eligible record collections

genealogy_search_profiles

Search WikiTree by names, dates, places, and parents

genealogy_get_profiles

Read WikiTree profiles in batches, with optional biographies and categories

genealogy_get_relatives

Browse ancestors, descendants, or immediate family and marriages

genealogy_find_common_ancestors

Compare two pedigrees and find their nearest visible shared ancestors

genealogy_search_records

Search one archival, vital, veteran, or burial source

genealogy_get_record

Read an Open Archives record with its citation, events, people, and relationships

genealogy_search_transcriptions

Find published Open Archives transcriptions by text and archive

genealogy_get_transcription

Read the complete transcription of a page and its archive references

genealogy_list_reference

Look up source coverage, availability, filters, identifiers, and search syntax

Source coverage

Access

Sources

Live shared tree

wikitree, worldwide contributor research

Live archives

openarchieven, covering chiefly the Netherlands, Belgium, France, and Suriname

Live US indexes

va_gravesites, New York State and NYC deaths, Connecticut deaths, marriages and divorces, NYC births and marriages

Local SQLite mirror

va_birls; deaths from New York (1880–1956), Hawaii, Minnesota, Missouri, Nebraska, New Jersey, and Vermont; Ohio, Missouri and South Dakota births; Hawaii marriages

Call genealogy_list_reference with {"topic":"sources"} for exact source keys, year ranges, publishers, dataset links, supported filters, and mirror readiness. Coverage varies by collection and year. WikiTree is contributor research. Cite the linked profile for that research and the holding archive or index publisher for documentary evidence. Dates retain the precision of the source. Treat cross-source matches as hypotheses until the evidence connects them.

Related MCP server: gedcom-mcp

Capability reference

genealogy_find_person tool

  • Requires a first or last name. Add approximate birth and death years, place, or a two-letter country code to narrow eligible searches. Country scopes archival and index searches. WikiTree remains worldwide.

  • Returns an overview of up to ten visible matches per source, with applied filters and separate results for skipped or unavailable sources. Continue in the dedicated search tool.

genealogy_search_profiles tool

  • Search by given, birth or current surname, dates and locations of birth and death, gender, or parents' names. Choose surname matching, variant handling, date spread, and sort.

  • Use next_offset when present. A visible total may be unavailable under the historical privacy policy.

genealogy_get_profiles tool

  • Pass up to 100 WikiTree numeric IDs, page names, or canonical profile links per batch. Reads include disclosed names and aliases, dates and places with source qualifications, gender, and available parent IDs.

  • Add "include":["biography","categories"] to retrieve available biographies in wiki markup and category titles. Categories cover the first ten distinct resolved profiles. Follow deferred_ids and deferred_category_ids for remaining work.

genealogy_get_relatives tool

  • Set direction to ancestors, descendants, or family. Pedigrees default to three generations and support up to 25 generations of ancestors or ten of descendants. Immediate family includes available parents, siblings, spouses, children, and marriages.

  • Follow next_offset to continue. open_ends identifies parent slots that the source or privacy policy leaves unresolved.

genealogy_find_common_ancestors tool

  • Compare two WikiTree profile keys up to 25 generations back (default ten). Returns visible shared ancestors with their shortest distance from each person and all ties for nearest by combined distance.

genealogy_search_records tool

  • Choose a source and search by name, inclusive event-year bounds, and place where supported. A place can mean a cemetery city, birth city, death county, or other collection-specific field. Check genealogy_list_reference before supplying it.

  • Open Archives accepts a query in place of separate names and supports archive, record type, role, event place, birthplace, country, and sort filters. Its total counts matching person mentions, so several hits can share a record ID. That ID is available for Open Archives results. Use other indexes' publisher links and source references to follow up.

genealogy_get_record tool

  • Pass the record_id or canonical record link from an Open Archives hit. The result includes citation details, events, people, relationships, and supplied scan or viewer links. Dutch source terms are preserved, with English labels where known.

genealogy_search_transcriptions tool

  • Use quoted phrases or * and ? wildcards. Narrow by archive code, then archive number and inventory number. Year bounds filter the inventory span. A reported count of 10,000 is a lower bound.

genealogy_get_transcription tool

  • Pass the id or canonical link from a transcription hit to retrieve the full page text, archive, inventory and page references, and available scan link.

genealogy_list_reference tool

  • Use sources for collection coverage, availability, and filters. Other topics cover identifiers, privacy_levels, dates, archives, source_types, relation_types, search_syntax, and limits.

Search to detail

Search

Follow-up

genealogy_search_profiles with {"last_name":"Coret","birth_date":"1855","date_spread_years":5}

Copy a result's wikitree_id or numeric id into genealogy_get_profiles's ids array. Pass the same key as id to genealogy_get_relatives with direction: "ancestors".

genealogy_search_records with {"source":"openarchieven","last_name":"Coret","year_from":1850,"year_to":1860}

Copy the result's record_id into genealogy_get_record.

genealogy_search_transcriptions with {"query":"Coret","limit":5}

Copy the page's id into genealogy_get_transcription.

Features

Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.

Historical privacy and downstream use

  • WikiTree results default to profiles with evidence that the subject is deceased. Its own access controls still apply. A private link or a branch that passes through a withheld profile can leave gaps in a pedigree. In both modes, use public biographies as research evidence, link back to WikiTree, respect its session retention rules, and keep WikiTree biographies off external sites. The server makes live reads and retains no WikiTree profile responses beyond the request. Your MCP client controls its own history and storage. WikiTree App Policies · Terms of Service · Acceptable Use Policy

  • Connecticut marriages and divorces, NYC marriages, Ohio and Missouri births, and Hawaii marriages apply a strict historical cutoff. The event year must be earlier than the current UTC year minus 100, and unknown years are excluded. During 2026, the last eligible year is 1925. Refresh the mirror after January 1 to admit the newly eligible year. Protected VA burial results withhold the associated veteran's name on family-member rows.

  • Cite the holding institution and collection for Open Archives evidence. CC0 applies to the provider's OAI-PMH metadata subject to its stated exclusions. Scans and viewers follow their respective providers' terms. Open Archives attribution guidance · Metadata terms

  • Treat source biographies, remarks, snippets, and transcriptions as evidence. They can contain third-party text and statements about other people.

Getting started

Run locally in Claude Code:

claude mcp add genealogy-mcp-server -- npx -y @cyanheads/genealogy-mcp-server

For other clients, add this to the MCP config file:

{
  "mcpServers": {
    "genealogy-mcp-server": {
      "command": "npx",
      "args": ["-y", "@cyanheads/genealogy-mcp-server"]
    }
  }
}

For Docker or a source build, see Running the server.

Configuration

Variable

Description

Default

GENEALOGY_MIRROR_ENABLED

Enable searches of a verified local mirror. Set to true after initialization.

false

GENEALOGY_MIRROR_PATH

Directory used by both the CLI and server for mirror snapshots.

~/.genealogy-mcp-server/mirror (home directory); /var/lib/genealogy-mcp-server in Docker

GENEALOGY_WITHHOLD_LIVING

Historical privacy policy. Explicit false lifts the server's policy only in private stdio. HTTP always applies it.

true

MCP_TRANSPORT_TYPE

Transport, either stdio or http.

stdio

MCP_HTTP_HOST

HTTP bind address.

127.0.0.1

MCP_HTTP_PORT

HTTP server port.

3010

MCP_HTTP_ENDPOINT_PATH

HTTP endpoint path.

/mcp

MCP_SESSION_MODE

HTTP session mode.

stateless

MCP_AUTH_MODE

Authentication, either none, jwt, or oauth.

none

MCP_LOG_LEVEL

Minimum log level.

info

OTEL_ENABLED

Enable OpenTelemetry.

false

MCP_USAGE_REPORTING

Opt in to sending tool-call summaries to the publisher.

false

See .env.example for the common framework overrides.

Optional local mirror

The mirror indexes twelve US archival collections from Reclaim the Records releases on the Internet Archive. It streams selected fields into SQLite, verifies the new indexes, and publishes a complete snapshot. The default protected build selects 51 input files totaling about 3.55 GB. Allow disk space for the active SQLite snapshot, a replacement build, and SQLite sidecar files. The upstream input size and the SQLite storage requirements differ.

With the npm package installed globally, initialize, verify, and refresh with the local CLI:

npm install -g @cyanheads/genealogy-mcp-server
genealogy-mcp-server-mirror init
genealogy-mcp-server-mirror verify
genealogy-mcp-server-mirror refresh

init builds the first snapshot, verify checks the current one, and refresh checks for updated archive files or a new historical cutoff. The server reads the published snapshot during requests. Run the CLI separately for updates.

In a checkout, build first with bun run build and use bun run mirror:init, bun run mirror:verify, and bun run mirror:refresh. Set GENEALOGY_MIRROR_ENABLED=true in the server's environment (the env object in a stdio client config). Give the server and CLI the same mirror directory.

For private stdio research with GENEALOGY_WITHHOLD_LIVING=false, initialize a separate mirror directory with that same setting and use it in the private client. Snapshot compatibility depends on the privacy setting. WikiTree's access controls and the source-specific field restrictions continue to apply.

Running the server

Local development

Requires Bun v1.4.4 or higher for the build, and Node.js v24+ for the packaged server.

  • Clone and install

    git clone https://github.com/cyanheads/genealogy-mcp-server.git
    cd genealogy-mcp-server && bun install
    cp .env.example .env
  • Build and run the production version

    bun run rebuild
    bun run start:http
    # or
    bun run start:stdio
  • Run checks and tests

    bun run devcheck
    bun run test

Docker

docker run --rm -p 127.0.0.1:3010:3010 ghcr.io/cyanheads/genealogy-mcp-server:latest

The image defaults to HTTP and stateless sessions. Point the client at http://127.0.0.1:3010/mcp. To run over stdio, configure the client to launch docker run -i --rm -e MCP_TRANSPORT_TYPE=stdio ghcr.io/cyanheads/genealogy-mcp-server:latest. Build the image locally with docker build -t genealogy-mcp-server .. Use --build-arg OTEL_ENABLED=false to omit OpenTelemetry peer dependencies.

For the optional protected mirror, use the same named volume for initialization, verification, refresh, and serving:

docker volume create genealogy-mirror
docker run --rm -v genealogy-mirror:/var/lib/genealogy-mcp-server \
  ghcr.io/cyanheads/genealogy-mcp-server:latest bun dist/services/mirror/mirror-cli.js init
docker run --rm -p 127.0.0.1:3010:3010 -v genealogy-mirror:/var/lib/genealogy-mcp-server \
  -e GENEALOGY_MIRROR_ENABLED=true ghcr.io/cyanheads/genealogy-mcp-server:latest

Run the same CLI invocation with verify or refresh when needed.

Project structure

Directory

Purpose

src/mcp-server/tools

The ten MCP tool definitions.

src/services/genealogy

Discovery, record routing, source coverage, and shared schemas.

src/services/wikitree

Profile reads, privacy filtering, and pedigree traversal.

src/services/open-archives

Record and transcription search and detail.

src/services/socrata

Queries for the eight live US indexes.

src/services/mirror

Archive ingestion, SQLite indexes, and snapshot CLI.

src/config

Server environment settings.

tests/

Provider, policy, and mirror verification tests.

Development guide

See CLAUDE.md for development guidelines and architectural rules and docs/tree.md for the full layout.

  • Register tools in src/index.ts. Handlers throw and the framework catches.

  • Validate upstream data before normalizing, and preserve source precision and provenance.

  • Render the same data in both MCP response surfaces.

Contributing

Issues are welcome. Run checks and tests before submitting:

bun run devcheck
bun run test

License

This project is licensed under the Apache 2.0 License. See the LICENSE file for details.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Read-only MCP server for genealogy data from Family Tree Builder (.ftb) or GEDCOM files, exposing tools for person search, family relationships, and statistical analysis via HTTP or stdio.
      2
      Apache 2.0
    • A
      license
      A
      quality
      C
      maintenance
      Enables users to read, search and edit GEDCOM (.ged) family-tree files from Ancestry.com and other genealogy software, letting an MCP client navigate relationships, explore ancestor and descendant trees, inspect sources and citations, and make safe, lossless edits that are written straight back to the file with a backup.
      19
      2
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to query, validate, and safely update GEDCOM family-history files through a local MCP server with read-only tools and reviewable changesets.
      2
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      MCP server with full coverage of the Gramps Web API REST endpoint functionality. Super-powers for your genealogy research with the help of AI.
      27
      29 PyPI
      2
      MIT