FamilySearch MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@FamilySearch MCP Server Find my ancestor John Smith born around 1850 in Ohio"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
FamilySearch MCP Server
A local Model Context Protocol (MCP) server for FamilySearch. Gives AI assistants access to search the Family Tree, view person details, explore ancestors and descendants, and search historical records.
About this fork
This fork combines the work spread across the forks of JonathanReiss15/familysearch-mcp and adds a security pass on top:
From | What it brings |
Full-text (AI OCR) search, catalog search, film/DGS browsing, high-resolution downloads, rate limiting with cooldown | |
| |
Fix for | |
This fork | Same fix applied to |
See AUDIT.md for the full review.
Related MCP server: GEDCOM MCP Server
Features
Family Tree search — find individuals by name, dates, places, and gender
Person details — view a person card by ID, with parents, spouses (and marriage) and children
Family view — parents, siblings, spouses and children in one call
Research suggestions — record hints and FamilySearch research flags across your pedigree
Pedigree exploration — ancestors (up to 8 generations) and descendants (up to 3)
Historical records — search indexed records by the person, their father, mother or spouse, marriage or residence place, and open any record to see everyone on it
AI full-text search — search OCR transcripts with OR, AND, or exact-phrase matching
Catalog and film browsing — find catalog items and resolve pages in a DGS image group
High-resolution downloads — download by ARK image ID or by DGS + image number
Browser session auth — log in once with Brave, Chrome, or Chromium; no FamilySearch API key required
How it works
FamilySearch does not approve direct API access for most personal projects. This server reuses your browser session cookies and calls the same internal /service/ endpoints the website uses. Your session is stored locally at ~/.familysearch-mcp/config.json.
Prerequisites
Node.js 18+ and npm
Brave, Chrome, or Chromium (Brave is preferred where available)
A free FamilySearch account
Installation
1. Clone and build
git clone https://github.com/G4rutti/familysearch-mcp.git
cd familysearch-mcp
npm install
npm run build2. Log in to FamilySearch
npm run loginThis opens an installed browser with a dedicated profile. Sign in when prompted. Your session is saved to ~/.familysearch-mcp/config.json.
Tip: You can also ask your AI assistant to run the
login-with-browsertool after the MCP is connected.
3. Configure your MCP client
Add the server to your client using stdio transport. Replace /path/to/familysearch-mcp with the absolute path to this repo.
Recommended config (uses cwd so you don't need absolute paths in args):
{
"mcpServers": {
"familysearch": {
"command": "node",
"args": ["build/index.js"],
"cwd": "/path/to/familysearch-mcp"
}
}
}Run npm run build whenever you pull changes.
MCP client setup
Cursor
Project-scoped — create .cursor/mcp.json in your project (or add globally in Cursor Settings → MCP):
{
"mcpServers": {
"familysearch": {
"command": "node",
"args": ["build/index.js"],
"cwd": "/path/to/familysearch-mcp"
}
}
}Restart Cursor or reload MCP servers after saving.
Claude Desktop
Edit claude_desktop_config.json:
Platform | Config path |
macOS |
|
Windows |
|
{
"mcpServers": {
"familysearch": {
"command": "node",
"args": ["build/index.js"],
"cwd": "/path/to/familysearch-mcp"
}
}
}Restart Claude Desktop after saving.
Claude Code
From the repo directory:
claude mcp add familysearch -- node build/index.jsOr with an absolute path from anywhere:
claude mcp add familysearch -- node /path/to/familysearch-mcp/build/index.jsVerify with claude mcp list.
Codex
From the repo directory (after npm run build):
codex mcp add familysearch -- node build/index.jsOr add to ~/.codex/config.toml:
[mcp_servers.familysearch]
command = "node"
args = ["build/index.js"]
cwd = "/path/to/familysearch-mcp"Use /mcp in Codex to confirm the server is connected.
VS Code
Add to your user MCP config (Command Palette → MCP: Open User Configuration) or .vscode/mcp.json in a workspace:
{
"servers": {
"familysearch": {
"command": "node",
"args": ["build/index.js"],
"cwd": "/path/to/familysearch-mcp"
}
}
}Windows
If node is not found, use the full path to your Node executable. For clients that struggle with direct node invocation, wrap with cmd:
{
"mcpServers": {
"familysearch": {
"command": "cmd",
"args": ["/c", "node", "build/index.js"],
"cwd": "C:\\path\\to\\familysearch-mcp"
}
}
}Authentication
Option 1: Browser login (recommended)
npm run loginOpens Brave when available, otherwise Chrome or Chromium. Set
FAMILYSEARCH_BROWSER_PATH to select a different browser executable.
Option 2: Copy cookies manually
Prefer option 1. Cookies passed to
set-session-cookiebecome part of the AI conversation (and so reach the model provider).npm run loginwrites them straight to the local config file.
Log in at familysearch.org
In DevTools → Console, run:
copy(document.cookie)Use the
set-session-cookieMCP tool with the copied string
The full cookie string is required — bot protection cookies like reese84 and incap_ses_* must be included, not just fssessionid.
Tools
Tool | Description |
| Open an installed browser, log in, and save the session locally |
| Authenticate by pasting cookies from your browser |
| View your authenticated account info |
| Search individuals in the Family Tree (name, givenName/surname, dates, places, gender, limit/offset) |
| Get details for a person by ID, including parents, spouses (with marriage), children and notes |
| Parents, siblings, spouses with marriage date/place, and children of a person |
| Ancestors with pending record hints or research flags such as |
| Sources attached to a person (the "Sources" tab): title, link to the original record or archive, citation, notes, date attached. Read-only |
| Duplicate suspects around a person: look-alike parents when a person has several parent sets, and same-year children of one couple confirmed or ruled out by exact birth date and place. Read-only; suspects, not conclusions |
| Dry run of merging two persons (survivor + duplicate): both people, what would be copied, conflicting resources, FamilySearch warnings, optional |
| View ancestors (default 4 generations, max 8) |
| View descendants (default 2 generations, max 3) |
| Search indexed records by name, birth/death/marriage year ranges and places, residence, father/mother/spouse names, country, collection, or |
| Open a record (persona ID from |
| Search FamilySearch AI-OCR transcripts of unindexed scans by keywords, name, place, years, DGS or collection |
| Search the catalog by place, keywords, title, author, subject, surname, call number, film number, or DGS |
| Resolve a range of one-based image numbers in a DGS to permanent |
| Fetch a scan by ARK image ID or DGS + image number and return it inline; the file is deleted afterwards unless |
| Walk a collection's image folders like the viewer's breadcrumb (collection > place > register book): sub-folders, image count, and image IDs for a range |
| The viewer's "Image Index" tab for one or more consecutive images (max 10): entry/page numbers, event dates, principals with parents (and grandparents when indexed), persona IDs; optional |
| A scan or a zoomed-in part of it returned inline (crop given as 0-1 fractions, |
Reading register books
search-records with filmNumber finds a name anywhere in a film's index in one call. When the index does not have it, browse-waypoints locates the book, get-image-index shows what is indexed image by image, and get-image crops the handwritten entry for reading. These three use the endpoints of FamilySearch's own image viewer (/platform/records/waypoints, /search/filmdatainfo/image-data and the deep-zoom dist.jpg), so they may change without notice; they go through the same throttle as every other call, about 5 seconds per request.
Example prompts
Search for persons named "John Smith" born in "New York"Get person with personId G2KQ-JTHGet 4 generations of ancestors for personId G2KQ-JTHSearch historical records for surname "Reiss" in "Pennsylvania"Search marriage records in Aiuruoca, Minas Gerais between 1905 and 1910 for a groom
surnamed Diniz whose bride is named Ana MariaShow research suggestions for my ancestors, 6 generations up from GJZ7-7SHSearch the full text for "voogd" and "Leeuwarden" between 1700 and 1800Set matchMode to all to require every word (+word) or to exact to
search for an exact quoted phrase. The default, any, retains FamilySearch's
OR behavior.
Full-text results include an OCR excerpt and a direct FamilySearch ARK link to the
scan. Set includeFullTranscript to true to return the complete AI transcript;
use a low result limit because transcripts can be large.
Download image 3:1:3QHK-93G5-35Q3 as a high-resolution JPGFind catalog material for Leeuwarden with "trouwregister" in the titleList 20 images from DGS 008903222, starting at image 500Download image 517 from DGS 008903222 as a high-resolution JPGThe image (or PDF) comes back inline in the tool result, and the file is deleted
from disk right after, so nothing piles up. Pass keep: true to keep it.
Files are written to ~/Downloads/familysearch-mcp by default (set
FAMILYSEARCH_DOWNLOAD_DIR to change it). outputDirectory can only name a
sub-folder inside that root. The official
FamilySearch viewer opens briefly while preparing the file. JPG downloads use the
original scan resolution; PDF downloads are available with or without highlights.
Troubleshooting
Problem | Fix |
"Not authenticated" errors | Run |
Session expired / 401 errors | Re-run |
"Request blocked by FamilySearch security (error 15)" | Re-run |
Browser not found | Install Brave, Chrome, or Chromium, or set |
MCP tools not appearing | Confirm |
| Use the full path to your Node binary in the MCP config |
Rate limiting
FamilySearch's security service blocks clients that issue requests too quickly
(error 15). This server is deliberately conservative to avoid getting your IP
address blocked. It:
spaces every API request out by at least ~4 seconds, plus random jitter so the cadence is not perfectly regular
retries transient failures (HTTP 429/5xx and network errors) with slow, jittered exponential backoff (starting at ~3s, capped at 60s)
honors the
Retry-Afterheader when FamilySearch sends oneenters a 15-minute cooldown after a security block (error 15) or a rate-limit response, during which all requests fail fast instead of hammering the API
Error 15 is a hard bot-protection block and is not retried automatically. If
you see it, wait for the cooldown to finish, refresh your session with
npm run login, and then retry.
All values are configurable through environment variables in your MCP client config (values are milliseconds unless noted):
Variable | Default | Meaning |
|
| Minimum delay between requests |
|
| Random extra delay as a fraction of the interval (0–1) |
|
| Retry attempts for transient failures |
|
| Base delay for exponential backoff |
|
| Maximum backoff delay |
|
| Pause after a block / rate limit (15 min) |
To be extra gentle, raise the interval and cooldown, for example:
{
"mcpServers": {
"familysearch": {
"command": "node",
"args": ["build/index.js"],
"cwd": "/path/to/familysearch-mcp",
"env": {
"FAMILYSEARCH_MIN_INTERVAL_MS": "8000",
"FAMILYSEARCH_COOLDOWN_MS": "1800000"
}
}
}
}Security
Session cookies are stored locally in
~/.familysearch-mcp/config.json(chmod 600on macOS/Linux; on Windows it relies on your user profile's permissions)They grant the same access as your browser session — never share this file
Sessions expire after inactivity; re-authenticate when tools return auth errors
The server runs locally over stdio and only ever talks to
https://*.familysearch.org: any other URL, including one returned by the API or reached through a redirect, is refused before the cookies are attachedPerson and record IDs are validated before they are put into request paths
Downloads can only be written inside the download root
All tools are read-only on FamilySearch; nothing edits your tree
This is an unofficial client of FamilySearch's internal website endpoints, not its public API. Use it at a human pace (the defaults do this) and be aware it is outside FamilySearch's supported integrations
See AUDIT.md for details.
Environment variables
Variable | Default | Meaning |
| auto-detected | Browser executable for login, film listing and downloads |
|
| Root folder for downloads |
| see Rate limiting | Request pacing |
License
MIT
Available Tools
21 toolsanalyze-mergeA
Dry-run analysis of merging two Family Tree persons: shows both people, what would be copied from the duplicate, which resources conflict, and any FamilySearch warning (e.g. "must switch order"). Read-only: it never performs the merge. Merging itself must be done on familysearch.org.
Inputs: survivorId (required), duplicateId (required), filter.
browse-waypointsA
Browse a collection's image folders (waypoints) the way the image viewer does: place > town > register book. Shows the folder path, its sub-folders, how many images it holds, and optionally the image IDs for a range. Start from a collection ID (e.g. 1582573), then pass a sub-folder URL; the wc= value of any image URL also works. Use the image IDs with get-image-index or get-image.
Inputs: waypoint (required), imageLimit, imageStart, collectionId.
download-documentA
Fetch a FamilySearch record image (original high-resolution JPG, or PDF through the official viewer) and return it inline so it can be read. By default the file is deleted from disk right after it is returned; pass keep: true to leave it in the download folder.
Inputs: dgs, keep, format, imageId, +3 more.
find-duplicatesA
Look for likely duplicate persons around a person, using the family structure: parents that look alike when a person is linked to several parent sets, and children of the same couple born the same year (confirmed or ruled out by exact birth date and place). Read-only; results are suspects to verify with analyze-merge, not conclusions.
Inputs: personId (required).
get-ancestorsC
Get ancestors of a specific person
Inputs: personId (required), generations.
get-current-userB
Get information about the currently authenticated user
Inputs: no named parameters.
get-descendantsC
Get descendants of a specific person
Inputs: personId (required), generations.
get-familyB
Get parents, siblings, spouses (with marriage date and place) and children of a person in the Family Tree
Inputs: personId (required).
get-imageA
Return a record image (or a zoomed-in part of it) inline, for reading handwriting. Coordinates are 0-1 fractions of the full scan: x/y is the top-left corner, width/height the size (e.g. x 0.5, width 0.5 is the right-hand page). The output is capped at maxWidth pixels and never upscaled, so crop small to read small writing. enhance: true turns faded ink into high-contrast grayscale. Faster and lighter than download-document.
Inputs: x, y, width, height, +5 more.
get-image-indexA
Read the indexed records on one or more consecutive record images (the viewer's "Image Index" tab): entry and page numbers, event dates, the principals with their parents (and grandparents when indexed) and persona IDs for get-record. Walks forward with each image's next link, at the API pace (about 5 s per image), so keep count small; to find a name in a whole book, prefer search-records with filmNumber. Many images have no index at all: those come back empty and still need to be read with get-image.
Inputs: count, imageId, waypoint, nameFilter, +1 more.
get-personB
Get detailed information about a specific person
Inputs: personId (required).
get-person-sourcesA
List the sources attached to a Family Tree person (the "Sources" tab): title, link to the original record or archive, citation, notes and when it was attached. Read-only.
Inputs: personId (required).
get-recordA
Get a historical record (persona ID from search-records) with its collection, citation, image link, every person on it with their facts and extra fields (age, occupation, residence), and the relationships between them
Inputs: recordId (required).
get-research-suggestionsB
List ancestors (and the root person's children) that have pending record hints (RECORD_HINTS) or FamilySearch research suggestions such as NO_SOURCES_ATTACHED, MISSING_VITAL_EVENT_YEAR or POSSIBLE_CHILD_GAP_AT_END
Inputs: personId (required), generations.
list-film-imagesB
List addressable images in a FamilySearch film/image group (DGS), starting at a chosen image number
Inputs: dgs (required), limit, startImage.
login-with-browserA
Open a browser window to log in to FamilySearch and save the session cookie locally
Inputs: no named parameters.
search-catalogB
Search the FamilySearch catalog for collections, films, image groups, books, and other holdings
Inputs: limit, place, title, author, +7 more.
search-full-textB
Search FamilySearch AI-generated full-text transcripts of unindexed document images
Inputs: limit, place, offset, yearTo, +7 more.
search-personsC
Search for person records in FamilySearch
Inputs: name, limit, gender, offset, +6 more.
search-recordsA
Search indexed historical records in FamilySearch. Each hit shows its facts with places, the collection, the related persons on the record (spouse, parents, children) and the record link. Years are YYYY; use the *From/*To fields for ranges. Searching by father, mother or spouse names is often the fastest way to confirm a family. Year filters drop records indexed without a date, so retry without them before concluding a record is absent. filmNumber searches inside one film (set of register books).
Inputs: limit, gender, offset, surname, +24 more.
set-session-cookieA
Authenticate using browser cookies copied from familysearch.org (DevTools console: copy(document.cookie)). Prefer login-with-browser: cookies passed here travel through the AI conversation, while login-with-browser keeps them on this machine.
Inputs: fsAnid, cookies, sessionId.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 21 tools
Most tools target a clearly distinct resource or action: person tree reads (get-person, get-family, get-ancestors, get-descendants), record search (search-records, search-full-text, search-catalog), and image access (list-film-images, browse-waypoints, get-image-index, get-image). A few pairs could still be confused at a glance — get-image vs download-document both return images, get-family vs get-ancestors/get-descendants overlap on relatives, and get-research-suggestions vs find-duplicates both surface 'things to look at' — but each description draws the boundary well enough.
All names are verb-first kebab-case (get-, search-, list-, browse-, analyze-, find-, download-, login-, set-), which is a coherent convention. Minor deviations: singular/plural noun inconsistency (get-person vs search-persons, get-record vs search-records) and a couple of compound objects (set-session-cookie, login-with-browser) that break noun-after-verb purity.
21 tools is on the heavy side, but the domain legitimately spans auth, tree navigation, indexed records, full-text search, catalog browsing, and image retrieval, and each tool maps to a distinct capability rather than a duplicate. Only marginal candidates for consolidation (get-image/download-document, get-image-index/browse-waypoints) keep it from being perfectly scoped.
The read path is thorough — search, person detail, family structure, sources, hints, duplicates, records, catalog, film images, and full-text all have coverage. However the surface is essentially read-only: no way to attach sources, edit or create persons, or perform a merge (analyze-merge explicitly defers merging to the website), which are core FamilySearch workflows. Agents doing research can proceed end-to-end, but any write-back task is a hard dead end.
Maintenance
Related MCP Connectors
Let AI agents use any website you're logged in to. Sessions stay encrypted on your machine.
Let your AI agent operate any website through a real, logged-in browser session.
Web search, data extraction and controlled browser automation for AI assistants via OAuth.
Lets your AI assistant use websites for you. It asks before it acts and never sees your password.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to load and query local GEDCOM genealogy files, supporting search, browsing, and family tree traversal.22AGPL 3.0
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to query genealogy data from GEDCOM files with 24 tools for search, navigation, relationship analysis, and timeline events.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to search FamilySearch's Family Tree, view person details, explore ancestors and descendants, and search historical records using browser session authentication.7MIT
- AlicenseAqualityBmaintenanceEnables direct interaction with FamilySearch.org's shared Family Tree and historical records, including reading and adding people, facts, relationships, sources, notes, memories, record search, and image downloads, without needing a browser.39MIT