Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Search the Digital Public Library of America; reach the holding institution's record and images.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
DPLA_API_KEY, DPLA_CACHE_DIR, DPLA_TIMEOUT, DPLA_MIN_INTERVALค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"dpla-catalog": {
"command": "uvx",
"args": [
"dpla-catalog-mcp"
],
"env": {
"DPLA_API_KEY": "ใส่ค่าของคุณ",
"DPLA_CACHE_DIR": "ใส่ค่าของคุณ",
"DPLA_TIMEOUT": "ใส่ค่าของคุณ",
"DPLA_MIN_INTERVAL": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add dpla-catalog --env DPLA_API_KEY='ใส่ค่าของคุณ' --env DPLA_CACHE_DIR='ใส่ค่าของคุณ' --env DPLA_TIMEOUT='ใส่ค่าของคุณ' --env DPLA_MIN_INTERVAL='ใส่ค่าของคุณ' -- uvx dpla-catalog-mcpเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"dpla-catalog": {
"command": "uvx",
"args": [
"dpla-catalog-mcp"
],
"env": {
"DPLA_API_KEY": "ใส่ค่าของคุณ",
"DPLA_CACHE_DIR": "ใส่ค่าของคุณ",
"DPLA_TIMEOUT": "ใส่ค่าของคุณ",
"DPLA_MIN_INTERVAL": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"dpla-catalog": {
"type": "stdio",
"command": "uvx",
"args": [
"dpla-catalog-mcp"
],
"env": {
"DPLA_API_KEY": "ใส่ค่าของคุณ",
"DPLA_CACHE_DIR": "ใส่ค่าของคุณ",
"DPLA_TIMEOUT": "ใส่ค่าของคุณ",
"DPLA_MIN_INTERVAL": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
DPLA_CACHE_DIR envDPLA_TIMEOUT envDPLA_MIN_INTERVAL envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub ianderso ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: DPLA_API_KEY
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.1) เข้า registry 31 วันที่ผ่านมา
โปรแกรมที่รองรับ 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 the [Digital Public Library of America](https://dp.la): one search across descriptions of more than 50 million digitised items held by hundreds of US libraries, archives, historical societies and museums. For family history that means county atlases and plat books, city directories, county histories, yearbooks, local newspapers and photographs, many of them held by a small institution you would not think to search.
DPLA holds none of these items. It gathers the descriptions that holding institutions publish, through state and regional "hubs", and every record points back at the item on the holding institution's own site. That page is where the evidence is and what a citation names. The server is built around that fact: each hit carries is_shown_at (the item at its holder), the holding institution, and the rights statement for the digital copy; get_item assembles the parts of a citation of the holder's record; and get_item_images lists the page images from the holder's own IIIF manifest when it publishes one.
It works the way a careful genealogist does. A DPLA record is a finding aid to a finding aid: written by the institution, harvested by a hub, and enriched by DPLA. DPLA searches that metadata only, never the text inside a book or on a page. The tools say so, in the descriptions a model reads.
Nothing here writes anywhere, and nothing here keeps a family tree. It sits well beside nara-catalog-mcp (federal records, with OCR and page images), snac-archives-mcp (which archive holds the papers) and familysearch-mcp (indexed records and images).
This is an independent project. It is not affiliated with, endorsed by, or supported by the Digital Public Library of America or any contributing institution.
The server publishes six tools, all read-only and annotated so for the client. One makes no network call at all.
Finding items
| Tool | Purpose |
|---|---|
search_items | The everyday search: words, title, place, a date range, holding institution, hub, item type. Each hit names its holding institution, the item's address there (is_shown_at), its rights statement, and whether page images can be listed. Copies of one work held in several places are flagged. |
search_items_advanced | The same, with every filter DPLA offers: county, state and city as DPLA geocoded them, subject, collection, publisher, format, creator, identifier, the period an item is *about*, rights, exact matching, any-of matching, sorting, and leaving out National Archives records. |
facet_items | Counts before searching: which institutions hold plat books of a county, which years a run of directories covers, which hubs cover a place. |
Reading an item
| Tool | Purpose |
|---|---|
get_item | Up to 20 records in full, each with citation_parts: the holding institution, title, date, the institution's own identifiers (call numbers, local ids, OCLC numbers, read from the harvested record too), is_shown_at, rights, and the DPLA id as a finder. Optionally the raw harvested record. |
get_item_images | The page images, from the IIIF manifest on the holding institution's site (Presentation API 2 and 3), a stretch of the list at a time. When a site refuses scripts, it says so and gives the address to open in a browser. |
The server itself
| Tool | Purpose |
|---|---|
api_status | Whether a key is configured (never the key), this session's calls and cache hits, and the last error. Makes no request. |
You need Python 3.11 or later, uv, and a DPLA API key.
The key is free and arrives at once, but it is issued to an email address, so request it yourself:
curl -X POST https://api.dp.la/v2/api_key/you@example.org
DPLA emails a 32-character key to that address. Asking again re-sends the same key. DPLA records only the email address, and counts each call made with the key.
Without cloning. uvx fetches the server from PyPI and runs it in one step:
DPLA_API_KEY=your-key uvx dpla-catalog-mcp
From a clone, which is what you want if you will change it:
git clone https://github.com/ianderso/dpla-catalog-mcp
cd dpla-catalog-mcp uv sync cp .env.example .env # then put your key in .env uv run dpla-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.
{
"mcpServers": { "dpla": { "command": "uvx", "args": ["dpla-catalog-mcp"], "env": { "DPLA_API_KEY": "your-key" } } } }
A desktop app does not always inherit your shell's PATH. If the server fails to start because uvx cannot be found, give the full path that which uvx prints as the command.
claude mcp add dpla --env DPLA_API_KEY="$DPLA_API_KEY" -- uvx dpla-catalog-mcp
Or keep the key in a .env file and have the launcher read it, so it is in neither the client's configuration nor your shell history:
"dpla": { "type": "stdio", "command": "sh", "args": ["-c",
"set -a; . \"$HOME/research/.env\"; set +a; exec uvx dpla-catalog-mcp@latest"] }
| Variable | Meaning |
|---|---|
DPLA_API_KEY | Your key. Required. A missing or malformed key is reported on the first tool call as not_configured, without repeating the value. |
DPLA_CACHE_DIR | Response cache directory. Default ~/.cache/dpla-catalog-mcp. |
DPLA_TIMEOUT | HTTP timeout in seconds. Default 30. |
DPLA_MIN_INTERVAL | Least seconds between requests to DPLA. Default 0.25. |
A .env file in the directory the server starts in supplies anything the environment does not; only that directory is read. An unusable value is reported on the first tool call, naming the variable.
DPLA sets no quota, but every call is counted against the key. The server sends one request at a time, at least DPLA_MIN_INTERVAL apart; two identical calls in flight share one request; searches and facets are cached on disk for 7 days and records and manifests for 30 (DPLA re-harvests monthly). A 429 or a 5xx gets one retry, honouring Retry-After up to 30 seconds, and is then reported as rate_limited or upstream_error, which is never the same as "nothing found". Requests to institutions' sites are spaced a second apart per site and never retried.
is_shown_at, read the item there (or its page images), and cite the holding institution and its record, for example "Standard atlas of Champaign County, Illinois (Brock & Company, 1929), University of Illinois Urbana-Champaign Library, digital.library.illinois.edu/items/465c93c0-…". Not DPLA, and not the hub. In a genealogy database: repository = the holding institution; source = the item; citation = the page or plate, with is_shown_at and the institution's identifier. Keep the DPLA id as an attribute, a finder only.query or title as well as place. county, state and city are DPLA's geocoding, filled for few records (mostly Massachusetts). Facet on place to see places as the records name them.date_after=1905 matches an item dated 1900-1909. "ca. 1900" may be indexed as a decade. display_date is what the institution wrote.possible_duplicate_of flags them within a page of results, by title and year; prefer the copy whose holder publishes page images and full text.exclude_nara leaves them out.rights (a rightsstatements.org or Creative Commons address, with a short label) before republishing an image. Some hubs, such as the Portal to Texas History, give only a free-text statement. A thumbnail is not evidence.is_shown_at and the institution's own identifier as well.exact=true matches a whole value, case-sensitively, as facet_items returns it. DPLA has no exact form of creator or identifier, so those are refused with exact.facet_items to see how the hits divide.open_in_browser; it does not work around a refusal.POST /v2/api_key/{email} sends email in someone's name. You request your own key.get_item_images result.https://api.dp.la, only in the Authorization header: never in a URL, a log line, a cache key or file, an error message, or a tool parameter. A request hook refuses any other host for the key-bearing client, and redirects are not followed.Authorization or Cookie header. It refuses IP addresses, local names and DPLA's own host, on the first request and on every redirect.ตัดมาแค่ช่วงต้น อ่านต่อใน repo