Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Genealogical research in the US National Archives Catalog: records, transcriptions, page images.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
NARA_API_KEY, NARA_CACHE_DIR, NARA_TIMEOUT, NARA_MONTHLY_CALL_BUDGETค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"nara-catalog": {
"command": "uvx",
"args": [
"nara-catalog-mcp"
],
"env": {
"NARA_API_KEY": "ใส่ค่าของคุณ",
"NARA_CACHE_DIR": "ใส่ค่าของคุณ",
"NARA_TIMEOUT": "ใส่ค่าของคุณ",
"NARA_MONTHLY_CALL_BUDGET": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add nara-catalog --env NARA_API_KEY='ใส่ค่าของคุณ' --env NARA_CACHE_DIR='ใส่ค่าของคุณ' --env NARA_TIMEOUT='ใส่ค่าของคุณ' --env NARA_MONTHLY_CALL_BUDGET='ใส่ค่าของคุณ' -- uvx nara-catalog-mcpเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"nara-catalog": {
"command": "uvx",
"args": [
"nara-catalog-mcp"
],
"env": {
"NARA_API_KEY": "ใส่ค่าของคุณ",
"NARA_CACHE_DIR": "ใส่ค่าของคุณ",
"NARA_TIMEOUT": "ใส่ค่าของคุณ",
"NARA_MONTHLY_CALL_BUDGET": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"nara-catalog": {
"type": "stdio",
"command": "uvx",
"args": [
"nara-catalog-mcp"
],
"env": {
"NARA_API_KEY": "ใส่ค่าของคุณ",
"NARA_CACHE_DIR": "ใส่ค่าของคุณ",
"NARA_TIMEOUT": "ใส่ค่าของคุณ",
"NARA_MONTHLY_CALL_BUDGET": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
NARA_CACHE_DIR envNARA_TIMEOUT envNARA_MONTHLY_CALL_BUDGET envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub ianderso ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: NARA_API_KEY
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.1.0) เข้า registry 32 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี Context7, Codebase Memory, Exa
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
An MCP 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 also searches NARA's Access to Archival Databases (AAD), which the Catalog cannot reach: the NUMIDENT's Social Security applications and deaths, the WWII Army enlistment cards, and the 1820–1912 ship passenger lists among them.
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.
The server publishes 21 tools. Twenty 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. Each series names its creator, the office that made it, which tells apart the many series sharing a title. |
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. |
NARA's Access to Archival Databases (AAD)
AAD serves a selection of NARA's electronic records as searchable tables. Each row is a database entry an agency clerk typed from a record: a transcription or index entry, not the record, and cited as an electronic record. These tools need no key and spend none of the Catalog allowance.
| Tool | Purpose |
|---|---|
aad_list_series | The series in an AAD category (genealogy by default), each with its files and their ids. A search runs on one file. |
aad_search | Search one file by free text over the whole row and by named fields; 50 rows a page, each with its record id. |
aad_get_record | One row in full, every coded value with its meaning, and a citation in NARA's recommended form with the date retrieved. |
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. |
You need Python 3.11 or later, uv, and a Catalog API key. Request a key from the Catalog API team via the API documentation; 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:
NARA_API_KEY=your-key uvx nara-catalog-mcp
From a clone, which is what you want if you will change it:
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.
Without cloning:
{
"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):
{
"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 mcp add nara --env NARA_API_KEY=your-key -- uvx nara-catalog-mcp
or, from a clone whose .env holds the key:
claude mcp add nara -- uv --directory /path/to/nara-catalog-mcp run nara-catalog-mcp
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 by the Catalog tools; the AAD tools need none. |
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.
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.
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.
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.
AAD has no API, so aad_* read its web pages the way a browser does, and parse them. That shapes how they behave:
aad_list_series comes first.fields={"LAST NAME": "PRESLEY", "DATE OF BIRTH (YEAR)": "1930-1935"}. A field AAD stores as a code, such as a state or a country, cannot be searched by name: put its meaning in query, which matches the whole row, code meanings included.NARA_CACHE_DIR/aad; refresh=true on aad_get_record fetches a row again.ตัดมาแค่ช่วงต้น อ่านต่อใน repo