Skip to main content
Glama
books-as-data
by kintopp

books-as-data

MCP Protocol MCP SDK

A Model Context Protocol server that permits LLM-assisted natural language searches of Books as Data, the digitised-books platform of four Swiss libraries (UB Bern, UB Basel, ZHB Luzern and ZB Zürich), through its GraphQL API.

Sample Research Scenarios

The sample research-scenarios provide multilingual prompts designed to test/demo the MCP server's capabilities, plus one example query drawing on the bundled CLI MCP client. Alongside each prompt is a demo link to a previously saved response generated in Claude Desktop which you can consult to see how the server works in practice.

Related MCP server: swiss-academic-libraries-mcp

Install

Hosted (Streamable HTTP)

The easiest way to start is with claude.ai or Claude Desktop. Add the hosted server to Claude as a custom connector with this URL:

https://books-as-data-test.up.railway.app/mcp
  1. Go to Settings → Customize → Connectors → Add custom connector.

  2. Give the connector a name, such as "Books as Data", and paste the URL into the Remote MCP Server URL field. The server needs no authentication, so leave those settings empty.

  3. If you like, set the permissions for its tools, for example to "Always allow". All tools are read only.

Anthropic's instructions give more details. For other LLM clients, please see their respective documentation.

The hosted server needs no account, and every tool reads the public books-as-data.ch services. To host your own instance, see docs/deploy.md.

Local (stdio)

Requirements: Node.js ≥ 24.22.1 < 25 (no native dependencies).

git clone https://github.com/kintopp/books-as-data.git
cd books-as-data
npm install

The MCP client (e.g. Claude Desktop, OpenAI Codex) starts the server itself, on demand, once it's registered as shown below. npm install is still required — it fetches the two runtime dependencies and checks the Node version against the engines range. To verify the install without a client, run npm test. Note that currently (October, 2026) Mistral Vibe can't use a locally hosted MCP server.

Register with an MCP client

Point the MCP client at the entry file, using absolute paths for both command and the script:

{
  "mcpServers": {
    "books-as-data": {
      "command": "/absolute/path/to/bin/node",
      "args": ["/absolute/path/to/books-as-data/src/index.js"]
    }
  }
}

On Windows, with doubled backslashes which JSON requires in every path:

{
  "mcpServers": {
    "books-as-data": {
      "command": "C:\\Program Files\\nodejs\\node.exe",
      "args": ["C:\\path\\to\\books-as-data\\src\\index.js"]
    }
  }
}

For Claude Desktop, the config file is claude_desktop_config.json in ~/Library/Application Support/Claude/ (macOS) or %APPDATA%\Claude\ (Windows). After editing it, fully quit and restart Claude Desktop — on Windows that means exiting from the system-tray icon.

For the ChatGPT desktop app, the MCP configuration file is ~/.codex/config.toml on macOS or %USERPROFILE%\.codex\config.toml on Windows. The app shares this configuration with the Codex CLI and IDE extension. The format is TOML, not JSON: translate the snippets above into a [mcp_servers.books-as-data] table with command = "…" and args = […] keys.

No credentials are needed — the server queries the GraphQL API anonymously (the API is open; the default endpoints are the public books-as-data.ch production services the website itself uses). Optionally set SGBR_ACCESS_TOKEN to reach ACL-restricted records; see Configuration.

Claude Desktop bundle (.mcpb)

For a one-click install with Claude Desktop (macOS, Windows or Linux), build the bundle (the mcpb CLI is a devDependency, installed by npm ci — no global install needed). The bundle runs on Claude Desktop's own bundled Node 24 and needs no manual config-file editing:

npm ci
npm run build:mcpb     # → dist/books-as-data.mcpb — open it with Claude Desktop

The install dialog offers an optional access token plus four optional endpoint overrides (GraphQL / full-text / IIIF image / OCR mediaserver), so an installed bundle can be repointed without a rebuild when the backend moves hosts. A pre-built .mcpb installer is attached to the latest GitHub release.

Tools

All ten tools are read-only and return both a human-readable summary (content[].text) and structured data (structuredContent). A typical flow: search → refine with facets/autocomplete → open a record → read its full text or inspect a page image.

Tool

What it does

sgbr_search

Full-text / faceted search over the ~1.07M-record corpus, relevance-ranked by default or sorted by publication year or title; narrow by library, language, genre, object type / foldouts, a year range, and more. Returns compact records, each with an id for follow-up — plus keyword-in-context snippets from the OCR text when the query matches a scanned item's body.

sgbr_get_record

Full detail for one record id: bibliography, a ready-to-use CSL-JSON citation, IIIF manifest, full-text links, a shareable viewer URL, and GND/GeoNames authorities.

sgbr_facet_values

Breaks a query down by one dimension with record counts (per library, language, year, author, genre, topic, object type, foldout category, …), plus each dimension's enrichment coverage.

sgbr_facet_breakdown

Cross-tabulates two dimensions in one call (e.g. language × genre), returning an exact N×M grid of record counts — auto-discovers each axis' top values, then prices every cell exactly with batched stats calls.

sgbr_get_fulltext

Retrieves the OCR full text of a scanned item, paged one character-window at a time (whole books are large) — or just a span of scan pages (page_from/page_to), e.g. the page sgbr_locate_text found.

sgbr_inspect_image

Fetches one bounded page image (cover, map, fold-out plate, illustration, music notation) as JPEG bytes for the model's own visual analysis — the visual complement to the OCR text. One page per call, size-capped, whole page or a percent-region crop.

sgbr_autocomplete

Type-ahead title / author / subject suggestions to turn a partial term into search phrases for sgbr_search.

sgbr_get_page_ocr

Fetches one page's OCR text plus its layout regions (block / line / word boxes) from IIIF hOCR, each with pixel bbox_px and a percent region_pct that feeds straight into sgbr_inspect_image to crop and visually verify that exact spot.

sgbr_locate_text

Finds which page(s) of a scanned book contain a phrase, in one scan volume — asking the platform's IIIF content search first and falling back to a page-by-page scan of the normalized OCR — returning a page, a context snippet, and line/word regions (bbox_px + region_pct) per hit; also lists sibling volumes for multivolume works.

sgbr_guide

Serves the research guidance for the other tools, one topic per call, e.g. the collection, query-syntax traps, historic spelling, OCR, facets, citing pages, fold-out plates. A model reads it before its first search.

See tool descriptions and parameters for the description of each individual tool and its full parameter list.

Skill file

The research guidance (which tool to choose for a given question type, how to combine searches, important metadata distinctions, and known limitations) is served by the server itself through sgbr_guide, so every client always receives the current version.

The skill is optional: a SKILL.md, zipped in a .skill file (with a .skill.zip copy for clients and browsers that only accept .zip), that sends the model to sgbr_guide. If you installed an earlier version of the Books as Data skill, which held a full copy of the guidance, please uninstall it.

Architecture overview

flowchart TD
    A["LLM / MCP Client"] --> B["stdio JSON-RPC"]
    B --> C["src/index.js<br/>serveStdio"]
    C --> D["src/server.js<br/>createServer + register tools"]
    A --> B2["Streamable HTTP<br/>/mcp"]
    B2 --> C2["src/http.js<br/>stateless, anonymous"]
    C2 --> D

    D --> T1["sgbr_search"]
    D --> T2["sgbr_get_record"]
    D --> T3["sgbr_facet_values"]
    D --> T4["sgbr_facet_breakdown"]
    D --> T5["sgbr_get_fulltext"]
    D --> T6["sgbr_autocomplete"]
    D --> T7["sgbr_inspect_image"]
    D --> T8["sgbr_get_page_ocr"]
    D --> T9["sgbr_locate_text"]
    D --> T10["sgbr_guide"]

    T1 --> W["withTool<br/>errors, logging, result shape"]
    T2 --> W
    T3 --> W
    T4 --> W
    T5 --> W
    T6 --> W
    T7 --> W
    T8 --> W
    T9 --> W
    T10 --> W

    W -->|"sgbr_guide — no backend"| GD["src/guide.md<br/>one section per topic"]
    GD --> O
    W --> S["Search compiler<br/>query args, fields, filters, facets"]
    S --> G["GraphQL operations"]
    W -->|"get(id) — no compiled variables"| G
    G --> GC["GraphQL client<br/>cache, auth fingerprint"]
    GC -. "fetchWithRetry" .-> RDV["RDV GraphQL API"]

    GC --> R["Record / facet / autocomplete shapers"]
    R --> O["content text + structuredContent"]

    W --> RES["id -> scan_id resolver"]
    RES -->|"record lookup"| GC
    RES --> FT["Fulltext REST client<br/>cache"]
    FT -. "fetchWithRetry" .-> OCR["OCR fulltext service"]
    FT --> FS["Fulltext shaper"]
    FS --> O

    RES --> IMG["IIIF image client<br/>cache"]
    IMG -. "fetchWithRetry" .-> IIIF["IIIF image service"]
    IMG --> IS["Image shaper"]
    IS --> O

    RES --> OA["OCR asset client<br/>hOCR + text, cache"]
    OA -. "fetchWithRetry" .-> MED["OCR asset service<br/>(hOCR / text)"]
    OA --> OS["Page-OCR / locate shapers"]
    OA -->|"page spans"| FS
    OS --> O

    RES --> CS["IIIF Content Search client<br/>byte cap, cache"]
    CS -. "fetchWithRetry" .-> CSS["IIIF Content Search service"]
    CS --> OS

    RES --> COL["IIIF Collection client<br/>anonymous, cache"]
    COL -. "fetchWithRetry" .-> MAN["IIIF manifest service"]
    COL --> OS

    O --> A

    classDef client fill:#eef2ff,stroke:#4f46e5,color:#111827;
    classDef server fill:#ecfeff,stroke:#0891b2,color:#111827;
    classDef tools fill:#fef3c7,stroke:#d97706,color:#111827;
    classDef wrapper fill:#f3e8ff,stroke:#9333ea,color:#111827;
    classDef graphql fill:#dcfce7,stroke:#16a34a,color:#111827;
    classDef scan fill:#ffe4e6,stroke:#e11d48,color:#111827;
    classDef shaper fill:#f1f5f9,stroke:#475569,color:#111827;
    classDef backend fill:#e5e7eb,stroke:#374151,color:#111827;

    class A,B,B2 client;
    class C,C2,D server;
    class T1,T2,T3,T4,T5,T6,T7,T8,T9,T10 tools;
    class GD shaper;
    class W,O wrapper;
    class S,G,GC graphql;
    class RES,FT,IMG,OA,CS,COL scan;
    class R,FS,IS,OS shaper;
    class RDV,OCR,IIIF,MED,CSS,MAN backend;

CLI

scripts/cli.mjs (bin bbad) is a headless command-line client for a curated ten-verb subset of the MCP tools — useful for quick queries, piping into jq, and scripted checks. It's an MCP client, not a second implementation: it spawns the server over stdio and calls the same tools an LLM would, so a CLI query and an LLM query return identical results. stdout is pure JSONL; counts, warnings and note: lines go to stderr. The notes restate any caveat a tool reports (e.g. a capped or truncated result), so a partial result is never piped on as a complete one; --quiet suppresses them.

The examples below use npm run cli --, which works in a fresh checkout with nothing else installed. To invoke it as bbad put the bin on your PATH with npm link from the checkout; both run the same script.

npm run cli -- search "Basel" --max 5 --fields id,title,date
npm run cli -- facets language --query Basel --table
npm run cli -- get id991104550959705501_UBBS-00173645
npm run cli -- crosstab language --breakdown genre --query Basel --json
npm run cli -- locate "Beschäftigungen" --scan_id ZBZ-00057370 --level line

bbad search "Basel" --max 5 --fields id,title,date   # the same call, after `npm link`

Ten verbs: search, get, facets, fulltext, comp (autocomplete), inspect (page image), crosstab (facet breakdown), pageocr (per-page OCR text + layout regions), locate (find which page(s) contain a phrase), and guide (a topic of the research guidance). Each command's parameters are documented by its own --help, generated live from the tool's own schema:

npm run cli -- --help          # verbs and global flags
npm run cli -- search --help   # parameters for one verb

crosstab's result is a nested grid (rows[].cells[]), not a flat list, so --json (the full structuredContent) is the authoritative output; default (JSONL) output emits one rows[] object — with its own cells[] array — per line, and --table remains only a rough preview (nested cells stringify and truncate under the existing renderer).

Configuration (env vars)

Var

Default

Purpose

SGBR_GRAPHQL_ENDPOINT

https://books-as-data.ch/query/graphql

RDV GraphQL API (search, records, facets). Its host also serves the IIIF Content Search sgbr_locate_text asks first, and the records' bulk zip links.

SGBR_FULLTEXT_ENDPOINT

https://books-as-data.ch/gbooksapi/v1/swissgbooks_api

REST OCR full-text base (sgbr_get_fulltext).

SGBR_IMAGE_ENDPOINT

https://books-as-data.ch/media/iiif/3

IIIF Image API base for page images (sgbr_inspect_image).

SGBR_OCR_ENDPOINT

https://books-as-data.ch/media

Base URL serving the per-page OCR assets (hOCR/text) for sgbr_get_page_ocr / sgbr_locate_text and sgbr_get_fulltext's page spans — the mediaserver base (without SGBR_IMAGE_ENDPOINT's /iiif/3 segment), overridable separately so it can move independently of the image base.

SGBR_FRONTEND_URL

current portal (https://books-as-data.ch)

Front-end base for the viewer_url returned by sgbr_get_record, sgbr_inspect_image, and the page-OCR/locate tools ({base}/en/detail/{id}).

SGBR_ACCESS_TOKEN

(unset)

Optional OIDC bearer token → Authorization header, to reach ACL-restricted records. Leave unset for anonymous/public access (the default).

SGBR_TIMEOUT_MS

30000

Per-request timeout.

SGBR_RESULT_CHAR_CEILING

150000

Per-result size budget.

SGBR_ENTRY_POINT

stdio

Entry-point tag in the outbound User-Agent (ub-sgbr-mcp/<version> (<entry>)), so the library can attribute this server's traffic. The Desktop bundle sets mcpb and bbad sets cli; you normally leave it alone.

SGBR_LOG

off

1 writes one JSON line per tool call to stderr (tool, latency, success, input).

To host your own instance, run npm run serve, which serves stateless Streamable HTTP from src/http.js. docs/deploy.md describes the setup, the HTTP variables, and the limits.

Development

npm start                # serve over stdio manually (waits for an MCP client; Ctrl-C to stop)
npm run serve            # serve over Streamable HTTP at /mcp (anonymous only)
npm run lint             # ESLint (flat config, Node 24)
npm test                 # offline suite: protocol smoke test + unit tests
npm run test:cli         # just the CLI's own offline assertions
npm run test:live        # ALSO run the live tests for the tools (= SGBR_LIVE=1 npm test)
npm run test:pack        # pack → install with --omit=dev → launch both bins (needs the npm registry)
npm run build:mcpb       # build the Claude Desktop bundle → dist/books-as-data.mcpb
npm run build:skill      # sync SKILL.md's version, repack skill/<name>/ → the committed .skill zip + .skill.zip copy + plugin/books-as-data/
npm run build:docs       # regenerate docs/tools.md's generated blocks from the server
npm run inspector        # open the MCP Inspector against the server

The offline suite stubs the backend by construction, so it can never catch the real one moving: run npm run test:live before a release and after any backend-host change. Editing SKILL.md means running npm run build:skill and committing the result (SKILL.md, .skill and its .skill.zip copy, and the plugin's skill copy and manifests) — nothing else regenerates them, and test/skill.test.js fails if they disagree.

CI (GitHub Actions, .github/workflows/ci.yml) runs two jobs on Node 24. build does npm ci, npm run lint, the offline npm test, and npm run build:mcpb. pack does npm run test:pack, which packs the tarball, installs it into a temp dir with --omit=dev, and launches both shipped bins for real — kept a separate job because it must reach the npm registry, which the offline suite deliberately avoids. The live tests (SGBR_LIVE=1) hit the public production APIs and are intentionally not run in CI, pending the library's policy on MCP access to its endpoints.

src/
  index.js            entry — serveStdio(createServer)
  http.js             entry — stateless Streamable HTTP (not in the .mcpb bundle)
  http-config.js      the HTTP entry's own settings (port, limits)
  server.js           McpServer factory + tool registration
  config.js           endpoint, view, field maps, budgets
  guide.md            the research guidance sgbr_guide serves, one ## per topic
  graphql/            client.js (errors[] parsing + LRU/TTL response cache),
                      operations.js (the query documents)
  fulltext/client.js  REST OCR fetch (normalize, cached)
  image/client.js     IIIF page-image fetch (cached bytes)
  ocr/client.js       per-page OCR asset fetch — hOCR + text (cached)
  contentsearch/client.js  IIIF Content Search fetch — byte-capped, cached
                      (sgbr_locate_text's first engine)
  collection/client.js  IIIF Collection manifest fetch — anonymous, cached
                      (multivolume sibling enumeration)
  search/compiler.js  high-level args → GraphQL variables (search + facet)
  lib/                shapers: record.js (compact search hits), detail.js
                      (full record + citation/IIIF/authorities), facet.js,
                      facet_breakdown.js (cross-tab grid), fulltext.js
                      (windowing), autocomplete.js, image.js (IIIF URL +
                      response shaping), ocr.js (hOCR → layout regions + asset
                      URLs), locate.js (normalize/match + locate shaping);
                      plumbing: http.js (the one fetch/timeout/retry loop every
                      client shares), tool.js (withTool handler wrapper),
                      resolve.js (id → scan_id resolution), cache.js
                      (LRU+TTL+dedup), auth.js (bearer token seam), errors.js,
                      warnings.js (query-misuse hints), vision.js (image
                      delivery-size solver), progress.js (progress
                      notifications), guide.js (splits guide.md into
                      topics), origin.js (the HTTP entry's Origin/Host
                      checks), async.js, prune.js, applied.js
  tools/              search.js, get_record.js, facet_values.js,
                      facet_breakdown.js, get_fulltext.js, autocomplete.js,
                      inspect_image.js, get_page_ocr.js, locate_text.js,
                      guide.js, filter-schema.js (shared filters schema)
test/                smoke.test.js (real stdio server) + offline unit tests
                      (compiler, record, facet, config, clients, …)

License

MIT © 2026 University of Basel.

Available Tools

10 tools
sgbr_autocompletesgbr_autocompleteA
Read-onlyIdempotent

Complete a partial term into title, author, or subject search phrases. These are not filter values: author and subject suggestions come from a different vocabulary than filters.author / filters.subject_heading read, so as filters most return a clean zero and the rest match the wrong entity (a namesake, a printing house). Take filter values from sgbr_facet_values (for authors: facet="author", scope="author", the surname as query), which also ranks the most frequent name first — prefix-ranked suggestions can miss the dominant form entirely. Returns grouped suggestion lists, plus exact_term_records when scope is a single group (the backend reports no count for scope="all"): that counts records matching your query as a complete term, not the suggestions — a partial prefix scores 0 beside a full suggestion list, so never read it as "no records".

Inputs: query (required), limit, scope, full_text_only. Returns: query, scope, warnings, suggestions, +2 more

sgbr_facet_breakdownsgbr_facet_breakdownA
Read-onlyIdempotent

Cross-tabulate two dimensions into one exact grid of record counts. E.g. language × genre, or library × availability. Auto-discovers the top values of each dimension, then prices every cell exactly with batched stats calls — not a facet-bucket approximation. Each axis is a top-N grid, not a complete enumeration: only the top size/breakdown_size values appear, and row_axis/col_axis report distinct_values/others_count/truncated so an absent value is not read as absent from the corpus (raise the sizes, or use sgbr_facet_values for the full list of one dimension). year and object_type are not supported as axes; use sgbr_facet_values or sgbr_search filters for those.

Inputs: facet (required), breakdown (required), size, query, +10 more. Returns: rows, facet, query, scope, +6 more

sgbr_facet_valuessgbr_facet_valuesA
Read-onlyIdempotent

Read sgbr_guide before your first search. Break a query down by one dimension, returning each value with its count. Dimensions include library, language, publication year, author, genre, and topic. Counts are scoped to the query (and any filters / ranges) so they agree with sgbr_search. The year facet is an overlapping density profile; if warnings appear, verify exact totals with sgbr_search. Facet one dimension while filtering on another to build a cross-tab slice. Some dimensions (notably object_type) store "no value" as an empty bucket: those records are reported as absent_records, excluded from coverage_pct, and cannot be reached by a filter on that dimension — so read a value's absence as evidence only across matching_records.

Inputs: facet (required), size, query, scope, +8 more. Returns: facet, query, scope, values, +12 more

sgbr_get_fulltextsgbr_get_fulltextA
Read-onlyIdempotent

Read one item's OCR full text in paged character windows. Books are large, so page forward with offset/next_offset, or read a span of scan pages with page_from/page_to. Identify the item by record id (from sgbr_search) or scan_id (from sgbr_get_record). Text is uncorrected OCR, often Fraktur, so expect recognition errors. A fold-out plate id is refused: a plate is one page and its scan_id is the parent volume's, so read the plate's own lettering with sgbr_get_page_ocr, or pass the parent scan_id here to read the whole volume deliberately.

Inputs: id, offset, page_to, scan_id, +2 more. Returns: id, text, offset, page_to, +12 more

sgbr_get_page_ocrsgbr_get_page_ocrA
Read-onlyIdempotent

Get one page's OCR text and layout regions (line/word boxes). Fetches IIIF hOCR for a single page and parses it into block/line/word regions, each with a pixel bbox_px and a region_pct — the latter is ready to pass straight to sgbr_inspect_image's region_pct argument to crop and visually verify that exact spot on the page. Also returns the page's plain OCR text (reading order) unless include_text is false. Text is uncorrected OCR, often Fraktur, so expect recognition errors. Identify the page by record id or scan_id plus a page; a fold-out plate id needs no page (it resolves to its own plate page, so a map or table's printed lettering can be read directly). If you do not yet know which page, use sgbr_locate_text to find the page(s) a phrase appears on first.

Inputs: id, page, level, scan_id, +2 more. Returns: id, page, text, level, +12 more

sgbr_get_recordsgbr_get_recordA
Read-onlyIdempotent

Expand one search-result id into that record's complete detail. Returns full bibliographic metadata, a ready-to-use CSL-JSON citation, the IIIF manifest URL, full-text and bulk-download links, thumbnail, license, and GND/GeoNames authorities. It is the hub between search and the page tools: digital.scan_id is what sgbr_get_fulltext, sgbr_locate_text, sgbr_get_page_ocr and sgbr_inspect_image address. A record listing several scans shows them as digital.scan_ids: pass one of those, since the other page tools refuse its id and sgbr_locate_text searches only the first. A record without a scan id (often partner-scanned) cannot be read or viewed page by page whatever its availability says; viewer_url is the citable link. Per-page media lists are summarised to counts and a license, not enumerated, and no page text is returned. A fold-out plate id returns the plate's record, whose scan_id is its parent volume's. An unknown id is an error result, not an empty record.

Inputs: id (required). Returns: id, date, notes, place, +20 more

sgbr_guidesgbr_guideA
Read-onlyIdempotent

How to search Books as Data well: read it before your first search. Read one topic at a time. Topics: overview, collection, query_syntax, historic_spelling, ocr_text, facets, evidence, ordering_and_scale, patterns, collection_scale, citing_pages, cross_tabs, foldouts. Start with overview, then read the topics the question needs; each result names the others.

Inputs: topic. Returns: text, title, topic, topics

sgbr_inspect_imagesgbr_inspect_imageA
Read-onlyIdempotent

Fetch one page image and inspect it yourself for the user. Returns image bytes for your own visual analysis. The client may also show the image to the user; that is expected, so neither avoid the call nor try to hide or comment on the image for that reason. To link the user to the page itself, give the result's viewer_url when present. Best for inherently visual material (e.g. maps, plates, music notation) or to sanity-check unreliable OCR from sgbr_get_fulltext. Identify the page by record id or scan_id plus a page; if the user pastes a viewer link .../detail/{id}?page={n}, extract {id} and {n}. Pass region_pct to crop to part of the page (e.g. a page-number corner or one figure of a plate) at a fraction of the payload — those region_pct values can come straight from sgbr_get_page_ocr's or sgbr_locate_text's layout regions. A crop is delivered at its own scanned resolution, so a word-sized region arrives small and cheap; when you need more detail, widen region_pct rather than raising max_long_edge — only a larger region carries more pixels. A non-error result is the page image itself (the pixels are included; see byte_size): describe what you see in it. A fetch failure arrives as an explicit error result, never as an empty image.

Inputs: id, page, scan_id, region_pct, +1 more. Returns: id, page, scan_id, warnings, +9 more

sgbr_locate_textsgbr_locate_textA
Read-onlyIdempotent

Locate a phrase in a scanned book's OCR and return the page(s) it is on. Asks the platform's content search (whole words, exact accents) and, when that finds nothing, scans the pages' OCR for the phrase as a substring; engine says which answered. For each hit returns the page, a context snippet, and line/word regions with bbox_px + region_pct (feed region_pct to sgbr_inspect_image to crop/verify; regions is best-effort and may be empty — the page and snippet still stand). Text is uncorrected Fraktur OCR, so expect misses. Searches one volume — for a multivolume work it returns the ordered sibling volumes so you can call again with the next scan_id, and unsearched_scans names any other scan the record lists (a volume or another library's copy) that went unsearched. A fold-out plate id is refused (a plate is one page; its scan_id is the parent volume's) — pass the parent scan_id to search the volume.

Inputs: phrase (required), id, level, engine, +4 more. Returns: id, hits, level, engine, +17 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 10 tools

    Disambiguation4/5

    Each tool has a fairly distinct role: search vs. record expansion vs. one-dimension facets vs. cross-tab breakdown vs. autocomplete are clearly separated, as are whole-item fulltext, single-page OCR, phrase location, and image inspection. Some boundary blur exists between full-text reading paths (sgbr_get_fulltext, sgbr_locate_text, sgbr_get_page_ocr) and the descriptions spend a lot of text warning about traps, but the intended division of labor is recoverable.

    Naming Consistency4/5

    All names share a consistent sgbr_ prefix and snake_case, and most are verb_noun (get_record, get_fulltext, get_page_ocr, locate_text, inspect_image). A few deviate from verb_noun (facet_values, facet_breakdown, autocomplete, guide), but these are minor and still readable.

    Tool Count5/5

    Ten tools is well within the ideal range and each one plays a distinct role: discovery, record detail, two facet modes, three text/page access modes, image inspection, autocomplete, and a guide. Nothing feels redundant or padding.

    Completeness4/5

    The surface covers the full research lifecycle for a digitized-book corpus: discovery (search, autocomplete, facets, cross-tabs), retrieval (record detail with CSL citation, IIIF manifest, licenses), and page-level access (fulltext, OCR, locate, image). Minor gaps: no explicit bulk-download or collection-listing tool, and citation is embedded in get_record rather than standalone, but agents can work around these.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      C
      maintenance
      Enables access to the Gallica digital library of the Bibliothèque nationale de France (BnF) with search capabilities across titles, authors, subjects, and dates, plus retrieval of document metadata, IIIF images, and OCR text content.
      12
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI models to search and retrieve bibliographic and digitized records from Swiss academic libraries (swisscovery, e-rara, e-periodica, e-manuscripta) via open protocols without requiring API keys.
      16
      43 PyPI
      1
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Provides AI assistants with programmatic access to the National Library of Sweden's digitized historical newspapers, enabling full-text search, filtering, timelines, and image retrieval across over 2.2 million pages.
      5
      1
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to search and retrieve historical materials from five public archives in a unified format, including full-text search inside scanned books, rights statements, and provenance-tracked media downloads.
      23
      1
      MIT