Northwestern University Libraries Digital Collections API

io.github.nulib由 GitHub 帳號 nulib 發布v2.12.0更新於 Oct 29, 2026

Agent integration with the Northwestern University Libraries Digital Collections API

已驗證Streamable HTTP可網頁執行網頁搜尋與抓取知識與記憶

概覽

AI 產生的概覽

讓助理檢索與瀏覽西北大學圖書館數位館藏,取得作品中介資料、館藏集合與 IIIF 清單。

可以做什麼
  • 依欄位值或自然語言檢索作品,欄位值可作為附加條件
  • 依 ID 取得單一作品的完整中介資料,並列出可用的館藏集合
  • 以語意嵌入找出與某件作品相似的作品
  • 以 IIIF 清單形式檢視作品、集合,以及先前的檢索結果與相似結果,供相容的檢視器顯示
適用情境
適合需要助理探索西北大學圖書館數位化資料的情況:尋找某主題的作品、取得編目中介資料、瀏覽館藏集合,或找出視覺或語意上相似的作品。
執行需求
可作為託管遠端端點透過 streamable HTTP 直接連線,無需本機安裝;也可從 npm 套件或容器映像在本機執行。本機開發需要 Node.js 24+ 與 mise;可選環境變數 DC_API_BASE、DC_IIIF_BASE 與 SECRETS_PATH 可覆寫預設值。未宣告需要身分驗證。
安裝前請注意
對公開圖書館目錄的唯讀存取,預設不要求憑證。本機設定提到用於 AWS Secrets Manager 設定的 SECRETS_PATH 變數,設定前請確認該路徑會揭露哪些內容。檢索詞與作品 ID 會傳送至西北大學圖書館的 API。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Northwestern University Libraries Digital Collections API,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.nulib%2Fdc-api/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "northwestern-university-libraries-digita": {
      "type": "http",
      "url": "https://api.dc.library.northwestern.edu/api/v2/mcp"
    }
  }
}

README

dc-api-mcp

A Model Context Protocol (MCP) server that exposes Northwestern University Library's Digital Collections as tools for AI assistants. It provides tools for searching, browsing, and retrieving metadata and IIIF manifests for digitized library materials.

Available Tools

ToolDescription
searchSearch for works using field-based and/or natural language queries
similarity-searchFind works visually or semantically similar to a given work
get-workRetrieve full metadata for a single work by ID
view-workView a work's IIIF manifest for display in compatible viewers
list-collectionsList available digital collections
view-collectionBrowse a specific collection's IIIF manifest
view-search-resultsRetrieve results from a previous search
view-similar-worksRetrieve results from a previous similarity search

Using the Remote Endpoint

The server is available as a hosted remote at:

https://api.dc.library.northwestern.edu/api/v2/mcp

No local installation is required. Configure your MCP client to connect to this URL using the streamable HTTP transport.

Claude Desktop

Add the following to your Claude Desktop configuration file.

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

json
{  "mcpServers": {    "dc-api": {      "type": "http",      "url": "https://api.dc.library.northwestern.edu/api/v2/mcp"    }  }}

Claude Code

bash
claude mcp add --transport http dc-api https://api.dc.library.northwestern.edu/api/v2/mcp

Development

Requirements

  • Node.js 24+ (see .tool-versions)
  • mise (used by bin/run.sh to activate the correct runtime)

Setup

bash
npm install

Configuration

The server reads the following environment variables:

VariableDefaultDescription
DC_API_BASEhttps://api.dc.library.northwestern.edu/api/v2Base URL for the Digital Collections API
DC_IIIF_BASEhttps://iiif.dc.library.northwestern.edu/iiif/3Base URL for the IIIF server
SECRETS_PATH(none)Base path for AWS Secrets Manager config

Running locally

stdio (for Claude Desktop / Claude Code)
bash
bun run stdio

Or via the wrapper script (activates the correct Node.js version via mise):

bash
bin/run.sh
HTTP (Streamable HTTP transport, port 3000)
bash
bun run http

Configuring Claude Desktop (local build)

json
{  "mcpServers": {    "dc-api": {      "command": "/path/to/dc-api-v2/mcp/bin/run.sh"    }  }}

Replace /path/to/dc-api-v2/mcp with the absolute path to this directory. Restart Claude Desktop after editing.

Tests

CommandResult
bun run testRun the test suite
bun test:watchRun the test suite, watching for changes
bun test:coverageRun the test suite and calculate coverage
bun test:recordRun the test suite against live data and record new fixtures
  • By default, the test suite uses pre-recorded HTTP fixtures. Set MSW_MODE=live to run against live data.
  • bun test:record records new fixtures (requires mitmproxy: pip install mitmproxy).

來源:mcp/README.md,提交 56b4d99

工具

8

get-work

Get Work

Retrieve the full metadata for a work from the NUL Digital Collections.

輸入參數work_id必填

list-collections

List Collections

List collection records from the NUL Digital Collections.

輸入參數pagemax_resultspublic_only

view-work

View Work

View a work from the NUL Digital Collections in an interactive viewer.

輸入參數work_id必填

view-collection

View Collection

View a collection from the NUL Digital Collections in an interactive viewer.

輸入參數collection_id必填

view-search-results

View Search Results

View results from the search-works tool in an interactive viewer.

輸入參數pagequeryfieldsmax_resultspublic_only

view-similar-works

View Similar Works

View results from the similarity-search tool in an interactive viewer.

輸入參數pagework_id必填max_resultspublic_only

版本歷史

2
  1. v2.12.0最新Oct 29, 2026
  2. v2.11.15Sep 16, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。