Skip to main content
ClaudeWave
ianderso avatar
ianderso

nara-catalog-mcp

Ver en GitHub

MCP server for genealogical research in the US National Archives Catalog: search records, read OCR text and citizen transcriptions, browse the hierarchy, and download page images.

MCP ServersRegistry oficial0 estrellas0 forks● PythonMITActualizado today
ClaudeWave Trust Score
95/100
✓ Verified
Passed
  • ✓Open-source license (MIT)
  • ✓Actively maintained (<30d)
  • ✓Clear description
  • ✓Topics declared
  • ✓Documented (README)
Last scanned: 9/29/2026
Install in Claude Code / Claude Desktop
Method: UVX (Python) · nara-catalog-mcp
Claude Code CLI
claude mcp add nara-catalog-mcp -- uvx nara-catalog-mcp
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "nara-catalog-mcp": {
      "command": "uvx",
      "args": ["nara-catalog-mcp"],
      "env": {
        "NARA_API_KEY": "<nara_api_key>"
      }
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
Detected environment variables
NARA_API_KEY
Casos de uso

Resumen de MCP Servers

# nara-catalog-mcp

[![CI](https://github.com/ianderso/nara-catalog-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/ianderso/nara-catalog-mcp/actions/workflows/ci.yml)
[![PyPI](https://img.shields.io/pypi/v/nara-catalog-mcp)](https://pypi.org/project/nara-catalog-mcp/)

<!-- mcp-name: io.github.ianderso/nara-catalog-mcp -->

An [MCP](https://modelcontextprotocol.io) server for genealogical research in
the **US National Archives Catalog**. Find an ancestor's pension file, service
record or census page, read what machines and volunteers have transcribed
from it, and fetch the page images you will cite.

It works the way a careful genealogist does. A catalogue description is a
finding aid, and OCR text, transcriptions and tags are somebody else's
reading of the page: all of them are leads. The page image is the source. The
tools say which is which, and the server tells the model to read the image
before citing it.

Nothing here writes to the Catalog, and nothing here keeps a family tree. The
server finds and reads records; what you conclude from them belongs in your
genealogy software, or in a family-tree MCP server running alongside this one.

The tools work on any record the Catalog describes, so a historian or a
journalist can use them too. The examples throughout are about tracing people.

This is an independent project. It is not affiliated with, endorsed by, or
supported by the National Archives and Records Administration.

## Tools

The server publishes 18 tools. Seventeen only read, and are annotated
read-only for the client. One, `download_page_image`, writes a new file to
local disk; it never overwrites one.

**Finding a record**

| Tool | Purpose |
| --- | --- |
| `search_records` | Search by title or full text. Returns totals plus compact summaries: NAID, hierarchy, holding unit, date coverage, image count. |
| `search_records_advanced` | The same search with the filters that narrow a common name: date range, record group, collection, ancestor NAID, level of description, microfilm publication number, local identifier, any control number, Congress number, reference unit, creator, person or organisation, place, type of materials, recurring date, digitised-only, "has transcriptions/tags/comments", exact matching of identifiers, `search_after` cursor paging past 10,000 hits, and each hit's OCR text (NARA's and partners') folded in on request. |
| `browse_children` | The immediate children of a node: record group to series to file unit to item. Walk down from a series you trust. |

**Reading a record**

| Tool | Purpose |
| --- | --- |
| `get_record` | Read one record in full by NAID: scope and content note, hierarchy, reference units, every page image with its object id. |
| `get_record_images` | Page images in page order, each with its object id and URL — the evidence to read before citing. |
| `download_page_image` | Save one page to a new local file, by page number or by the object id an OCR or transcription entry names. The media host is open, so this spends no API quota. |
| `get_online_availability` | Where else the record is published online, including by commercial partners. |
| `get_partner_digital_objects` | Digital object ids a commercial partner (Ancestry among them) has matched to this NAID. An empty list is the common answer. |

**What machines and other people read in it**

Everything in this group is somebody else's reading of the document. It tells
you which page to open. It does not tell you what the page says.

| Tool | Purpose |
| --- | --- |
| `get_extracted_text` | OCR text extracted from the page images, per digital object, with who produced it, and the object total and next results page when a file runs longer than one call. |
| `get_transcriptions` | Citizen transcriptions — how you get into a handwritten pension file that OCR cannot touch. |
| `get_tags` | Citizen tags, which on genealogical records are usually the names of the people inside the file. |
| `get_comments` | Other researchers' notes on the record. |

**Searching the documents rather than the catalogue**

| Tool | Purpose |
| --- | --- |
| `search_by_contribution_text` | Search transcriptions, tags, comments and OCR text — and get full record summaries back. |
| `search_transcriptions` | Find records whose transcribed text mentions a name or phrase. |
| `search_tags` | Find records carrying a tag, exactly or by word. |
| `search_extracted_text` | Find records whose partner-contributed extracted text matches. |
| `search_comments` | Find records other researchers have commented on. |

**Housekeeping**

| Tool | Purpose |
| --- | --- |
| `api_budget` | Live calls and cache hits this session, the month's live calls from a ledger beside the cache, and what remains of the key's monthly allowance. |

## Setup

You need Python 3.11 or later, [uv](https://docs.astral.sh/uv/), and a Catalog
API key. Request a key from the Catalog API team via
[the API documentation](https://www.archives.gov/research/catalog/help/api);
the default allowance is 10,000 calls per month.

There are two ways to run the server.

**Without cloning.** `uvx` fetches it from PyPI and runs it in one step, and
caches the result:

```bash
NARA_API_KEY=your-key uvx nara-catalog-mcp
```

**From a clone**, which is what you want if you will change it:

```bash
git clone https://github.com/ianderso/nara-catalog-mcp
cd nara-catalog-mcp
uv sync
cp .env.example .env      # then put your key in it
uv run nara-catalog-mcp   # stdio server, usually launched by the client
```

Either way the server speaks MCP over stdio, so you will normally let an MCP
client start it rather than run it by hand.

### Claude Desktop

Without cloning:

```json
{
  "mcpServers": {
    "nara": {
      "command": "uvx",
      "args": ["nara-catalog-mcp"],
      "env": { "NARA_API_KEY": "your-key" }
    }
  }
}
```

From a clone (the `env` block can be dropped if the key is in the clone's
`.env`):

```json
{
  "mcpServers": {
    "nara": {
      "command": "uv",
      "args": ["--directory", "/path/to/nara-catalog-mcp", "run", "nara-catalog-mcp"],
      "env": { "NARA_API_KEY": "your-key" }
    }
  }
}
```

A desktop app does not always inherit your shell's `PATH`. If the server fails
to start because `uv` or `uvx` cannot be found, give the full path that
`which uvx` prints as the `command`.

### Claude Code

```bash
claude mcp add nara --env NARA_API_KEY=your-key -- uvx nara-catalog-mcp
```

or, from a clone whose `.env` holds the key:

```bash
claude mcp add nara -- uv --directory /path/to/nara-catalog-mcp run nara-catalog-mcp
```

## Configuration

All settings come from the environment. A `.env` file in the directory the
server starts in supplies any that the environment does not; with
`uv --directory` that is the clone. Only that directory is read — not its
parents, and not the directory the package is installed in.

| Variable | Meaning |
| --- | --- |
| `NARA_API_KEY` | Your Catalog API key. Required. |
| `NARA_CACHE_DIR` | Response cache directory. Default `~/.cache/nara-catalog-mcp`. |
| `NARA_TIMEOUT` | HTTP timeout in seconds. Default 60. |
| `NARA_MONTHLY_CALL_BUDGET` | Calls per month the key allows, reported by `api_budget`. Default 10000. |

A missing key, or an unusable value, is reported on the first tool call as a
`not_configured` result naming the variable.

## The call budget

A Catalog key is capped per month, and a sweep across many names will exhaust
it faster than expected. Every successful response is cached on disk, keyed by
endpoint and query, so repeating a call costs nothing. Live calls are also
written to a ledger, `budget.json` beside the cache, so `api_budget` reports
the month's spend across sessions as well as this session's live calls and
cache hits. A rejected call counts as live, since it reached the API. The
ledger sees one machine and one cache directory; the Catalog's own count is
the authority.

The cache never expires. Pass `refresh=true` to `get_record`,
`get_record_images`, `get_extracted_text`, `get_transcriptions`, `get_tags`
or `get_comments` to re-read one answer from the Catalog: that spends one
call and replaces the cached copy. New transcriptions and tags arrive over
time, and a file that was paper-only can be digitised, so a cached "nothing
here" is the answer most worth refreshing. Deleting `NARA_CACHE_DIR` still
works, and also resets the month's ledger.

## Searching past the first 10,000 hits

`page` stops working beyond 10,000 results, which a common surname passes.
`search_records_advanced` reports a `paging_note` when you hit that boundary;
either narrow the search or re-run it with `search_after="*"` and follow the
`next_search_after` value from each response.

## How a search behaves

`title` matches words in the record title and is the precise option — case
files are usually titled with the person's name. `query` searches the full
description: broader, noisier, and worth reaching for only when a title search
finds nothing.

Results come back as summaries rather than whole records. A raw Catalog record
is large and mostly irrelevant to the decision you are making, which is whether
this record is worth opening.

## Notes

- **A description is not evidence.** It summarises a file; it says nothing
  about what any individual page contains. Read the images before citing.
- **Neither is OCR, and neither is a transcription.** `get_extracted_text` is
  a machine reading a scan of handwriting; `get_transcriptions` is one
  volunteer's typing, unreviewed. Both are the fastest way to find the page
  that matters, and neither is a source. Open the image and cite that.
- **Record the NAID.** It is the stable identifier that makes a citation
  refindable.
- **Not every record is digitised.** `image_count: 0` means the description
  exists but the pages are not online — the `reference_units` field tells you
  which archive holds the paper.
- **Open is not unrestricted.** The media host needs no key, and most of
  NARA's holdings a
archivesfamily-historygenealogyhistorical-recordsmcpmcp-servermodel-context-protocolnaranational-archivespython

Lo que la gente pregunta sobre nara-catalog-mcp

¿Qué es ianderso/nara-catalog-mcp?

+

ianderso/nara-catalog-mcp es mcp servers para el ecosistema de Claude AI. MCP server for genealogical research in the US National Archives Catalog: search records, read OCR text and citizen transcriptions, browse the hierarchy, and download page images. Tiene 0 estrellas en GitHub y su última actualización registrada es del 2026-09-28.

¿Cómo se instala nara-catalog-mcp?

+

Puedes instalar nara-catalog-mcp clonando el repositorio (https://github.com/ianderso/nara-catalog-mcp) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar ianderso/nara-catalog-mcp?

+

Nuestro agente de seguridad ha analizado ianderso/nara-catalog-mcp y le ha asignado un Trust Score de 95/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene ianderso/nara-catalog-mcp?

+

ianderso/nara-catalog-mcp es mantenido por ianderso. La última actividad registrada en GitHub es del 2026-09-28, con 0 issues abiertos.

¿Hay alternativas a nara-catalog-mcp?

+

Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.

Despliega nara-catalog-mcp en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

Featured on ClaudeWave: ianderso/nara-catalog-mcp
[![Featured on ClaudeWave](https://claudewave.com/api/badge/ianderso-nara-catalog-mcp)](https://claudewave.com/repo/ianderso-nara-catalog-mcp)
<a href="https://claudewave.com/repo/ianderso-nara-catalog-mcp"><img src="https://claudewave.com/api/badge/ianderso-nara-catalog-mcp" alt="Featured on ClaudeWave: ianderso/nara-catalog-mcp" width="320" height="64" /></a>

Más MCP Servers

Alternativas a nara-catalog-mcp