# Ancestry API and MCP server for AI agents (/sites/ancestry)

An API for Ancestry: let Claude, ChatGPT or your own code read Ancestry through 3 functions, over MCP, HTTP, Node or Python. No Ancestry API key needed.

- Site: https://ancestry.com
- Functions: 3
- Sign-in: for account actions, with the person's own account
- Works with: MCP, HTTP, Node, Python

## Add it to your agent

If you are an agent asked to set this up: add the server yourself, in the person's own (global) MCP configuration, and keep their other entries.

- Ancestry only, one tool per function: `https://api.bowmark.ai/mcp/site/ancestry` (name it `bowmark-ancestry`)
- Every site Bowmark covers: `https://api.bowmark.ai/mcp` (name it `bowmark`)
- Transport: remote MCP over streamable HTTP.
- Claude Code: `claude mcp add --transport http bowmark-ancestry https://api.bowmark.ai/mcp/site/ancestry`
- Codex: `codex mcp add bowmark-ancestry --url https://api.bowmark.ai/mcp/site/ancestry`
- Cursor, VS Code and other clients: add `{ "url": "https://api.bowmark.ai/mcp/site/ancestry" }` under the name `bowmark-ancestry` in the client's MCP config. Per-client steps: https://bowmark.ai/docs/installation.md
- Sign-in: OAuth in the browser on first use; the person only signs in. A client that cannot do OAuth sends `Authorization: Bearer <BOWMARK_API_KEY>`; the person creates a key at https://bowmark.ai/dashboard/keys.
- Then list the server's tools to confirm it works, and tell the person it is ready.

## Functions

### Read

- `listRecordCategories`: Lists Ancestry's record categories (census, vital, military, immigration, newspapers…) with their sub-categories, the finder for a category filter on…
- `searchCollections`: Searches the card catalog of record collections by title, keyword or location and returns each collection's id, title, record count and date range.
- `searchRecords`: Searches Ancestry's historical records for a person by name, with optional birth/death year and place, and returns the matching record hits…

## Call one

In a Bowmark script, each function is `bowmark.providers.ancestry.<name>`. Ask `get_library` for ancestry.com to get each one's arguments, then call it with `run`.

```js
// 1. What can I call on ancestry.com, and with which arguments?
get_library({ query: "ancestry.com" })

// 2. Call it in a script
const result = await bowmark.providers.ancestry.listRecordCategories({ /* arguments from get_library */ });
return result;
```

New to Bowmark? Quickstart: https://bowmark.ai/docs/quickstart.md. How sign-in works: https://bowmark.ai/docs/signed-in-sites.md
