About Ra MCP
Ra MCP is an MCP server published by AI-Riksarkivet in the Developer Tools category: mCPs for Riksarkivet open APIs. This covers both agents and mcps. Conduid read 59 tools from its source: display_pdf, document, get_page_blocks, get_pdf_state, get_sbl_state, get_viewer_state and 53 more. No package is published for it, so it installs from a source checkout.
The repository has 27 stars and 5 forks, is licensed Apache-2.0, and its last commit was on 30 Nov 2026. The latest release is v0.17.4 (1 Oct 2026): Documentation List TORA under live HTTP APIs, not LanceDB datasets (449fc46) Fixed Pin crane image and use new /crane binary path (ce5ccc0) Close pyjwt and urllib3 CVEs… It follows v0.17.3 (26 Aug 2026), and the 5 most recent releases go back to v0.17.0 (24 Jul 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include iiif-image, digital-archive, devtools, fastmcp, iiif-presentation and iiif.
Install
git clone https://github.com/AI-Riksarkivet/ra-mcpTools (59)
display_pdfREQUIRED FIRST STEP: Open a PDF in the interactive viewer. Must be called before search_pdf, read_pdf_page, pdf_go_to_page, or pdf_set_search. Defaults to Medeltidens samhalle if no URL given. Use list_pdfs to see available PDFs.| Parameter | Type | Description |
|---|---|---|
| title | string | Optional display title for the PDF. |
| url | string | URL to a PDF file. Supports direct links and academic sources (arxiv, etc). |
documentView full page transcriptions of a document by reference code. Use reference codes from search results. Returns original text (usually Swedish), links to bildvisaren (image viewer), and ALTO XML.
Blank pages are normal (digitised but no text). Non-digitised materials return metadata only. Session dedup: re-browsing same pages returns stubs. Set dedup=False to force full text.
TOKEN COST: ~300 tokens overhead per response + ~200-1500 tokens per page depending on content density. Dense court protocol pages average ~1000 tokens each; title/cover pages ~300. Request only the pages you need — start with 3-5 pages and paginate.| Parameter | Type | Description |
|---|---|---|
| dedup | boolean | Session deduplication. True replaces already-shown pages with stubs; False forces full text. |
| highlight_term | string | Optional keyword to highlight in the transcription. |
| max_pages | integer | Maximum pages to retrieve. |
| pages * | string | Page specification: single ('5'), range ('1-10'), or comma-separated ('5,7,9'). |
| reference_code * | string | Document reference code from search results (e.g. 'SE/RA/420422/01'). |
| research_context | string | Brief summary of the user's research goal. Used for telemetry only. |
get_page_blocksGet all structured blocks for a page with bounding boxes and types. Used by the viewer for block overlay.| Parameter | Type | Description |
|---|---|---|
| page * | integer | Page number (1-based). |
| url * | string | URL of the PDF. |
get_pdf_stateGet the current PDF viewer state by view_id. Used by the viewer to poll for LLM-initiated changes.| Parameter | Type | Description |
|---|---|---|
| view_id * | string | View ID from the initial tool result. |
get_sbl_stateGet the current SBL article state for a specific view (app-only, for polling).| Parameter | Type | Description |
|---|---|---|
| view_id | string | The view ID to get state for. |
get_viewer_stateGet the current viewer state by view_id. Used by the viewer to poll for changes.| Parameter | Type | Description |
|---|---|---|
| view_id * | string | View ID from the initial tool result. |
htr_transcribeTranscribe handwritten documents and return results as file URLs.| Parameter | Type | Description |
|---|---|---|
| custom_yaml | string | Optional HTRflow YAML pipeline config. Overrides language/layout when provided |
| export_format | string | Archival export format |
| image_urls * | array | Image URLs to process (http/https URLs) |
| language | string | Document language |
| layout | string | Page layout: single_page or spread (two-page opening) |
import_to_label_studio| Parameter | Type | Description |
|---|---|---|
| alto_urls | array | ALTO XML URLs paired by index with image_urls. If provided, creates pre-annotated tasks with VectorLabels polygons and transcriptions. If omitted, creates blank tasks for annotation from scratch. |
| assign_to | string | Email of a Label Studio user to assign the imported tasks to for annotation. If omitted, tasks are unassigned. |
| dry_run | boolean | If true, return converted JSON without importing to Label Studio. |
| feedback | array | Feedback choices per page, paired by index. Values: 'Transcription', 'Segmentation'. Example: [['Transcription'], [], ['Transcription', 'Segmentation']]. Only used with alto_urls. |
| image_urls * | array | Image URLs to import (one per page). |
| ls_token | string | Label Studio access token. Falls back to LS_TOKEN env var. |
| ls_url | string | Label Studio URL (e.g. 'https://your-ls.hf.space'). Falls back to LS_URL env var. |
| project_id | integer | Label Studio project ID. Falls back to LS_PROJECT_ID env var. |
list_pdfsList available PDF documents from Riksarkivet's collection. Includes guides on medieval history, Sami history, genealogy research, and more. Use display_pdf with the URL from the results to open a specific PDF.load_pageLoad a single document page (image + text layer). Used by the viewer for pagination.| Parameter | Type | Description |
|---|---|---|
| image_url * | string | |
| page_index * | integer | |
| text_layer_url * | string |
load_sbl_articleLoad an SBL article into the viewer (app-only, for cross-reference navigation).| Parameter | Type | Description |
|---|---|---|
| article_id * | integer | The SBL article ID to load. |
| view_id | string | The view ID from the initial tool result. |
load_thumbnailsLoad thumbnail images for a batch of document pages. Used by the viewer for lazy-loading the thumbnail strip.| Parameter | Type | Description |
|---|---|---|
| image_urls * | array | |
| page_indices * | array |
metadataSearch document metadata (titles, names, places, descriptions) across the Swedish National Archives catalog. Covers 2M+ records when only_digitised=False, including non-digitised materials. Use the dedicated name parameter for person searches and place parameter for place searches — these can be combined with keyword.
Does NOT search transcribed page text — use search_transcribed for that. Query syntax: all terms required (implicit AND), wildcards and fuzzy work, AND/OR/NOT do not. Quotes match only reference codes (keyword='"SE/RA/720660"' lists an archive's volumes) — quoted title phrases return 0, use plain terms. Session dedup: re-calling returns stubs for already-seen documents.
Important: name and place filter a dedicated metadata field that is sparsely populated. Most person/place matches are NOT digitised, so set only_digitised=False when using name or place to avoid empty results.| Parameter | Type | Description |
|---|---|---|
| dedup | boolean | Session deduplication. True compacts already-seen documents; False forces full results. |
| keyword * | string | Free-text search across all metadata fields — all terms must match. Wildcards (*) and fuzzy (~) supported; AND/OR/NOT are NOT. Quotes only for reference codes ('"SE/RA/720660"'). |
| limit | integer | Maximum documents to return per query. |
| max_response_tokens | integer | Maximum tokens in response. |
| name | string | Person name search in dedicated name field (e.g. 'Nobel', 'Linné'). Combinable with keyword and place. Most name matches are non-digitised — set only_digitised=False. |
| offset * | integer | Pagination start position. Use 0 for first page, then 50, 100, etc. |
| only_digitised | boolean | True = digitised materials only. False = all 2M+ records including non-digitised. |
| place | string | Place name search in dedicated place field (e.g. 'Stockholm', 'Göteborg'). Combinable with keyword and name. Most place matches are non-digitised — set only_digitised=False. |
| research_context | string | Brief summary of the user's research goal. Used for telemetry only. |
| sort | string | Sort order: 'relevance', 'timeAsc', 'timeDesc', 'alphaAsc', 'alphaDesc'. |
| year_max | integer | End year filter (e.g. 1750). |
| year_min | integer | Start year filter (e.g. 1700). |
pdf_go_to_pageNavigate the PDF viewer to a page. REQUIRES display_pdf first.| Parameter | Type | Description |
|---|---|---|
| page * | integer | Page number (1-based). |
| view_id | string | view_uuid from the display_pdf result. Pass it so the correct viewer is targeted (works across sessions). |
pdf_set_searchHighlight a term in the PDF viewer. REQUIRES display_pdf first.| Parameter | Type | Description |
|---|---|---|
| search_term * | string | Search term to highlight. Use empty string to clear. |
| view_id | string | view_uuid from the display_pdf result. Pass it so the correct viewer is targeted (works across sessions). |
read_pdf_bytesRead a range of bytes from a PDF file (max 4MB per request). Used by the viewer to stream PDF data.| Parameter | Type | Description |
|---|---|---|
| offset | integer | Byte offset to start reading from. |
| url * | string | URL of the PDF file. |
read_pdf_pageRead text from one or more pages of a loaded PDF. Supports single page (page=42) or range (page=42, count=3 reads pages 42-44). Use after search_guides or search_pdf to read matched pages with surrounding context.| Parameter | Type | Description |
|---|---|---|
| count | integer | Number of pages to read (default 1, max 5). |
| page * | integer | Start page number (1-based). |
| url * | string | URL of the PDF (must match a previous display_pdf or be a gallery PDF). |
search_all_pagesSearch for a term across all document pages. Returns match counts per page.| Parameter | Type | Description |
|---|---|---|
| term * | string | |
| text_layer_urls * | array |
search_bolagSearch Swedish joint-stock companies 1901-1935 — 12,500 companies with >100,000 kr capital. Returns company name, purpose, address, board seat city, managing director, share capital, and board member names.| Parameter | Type | Description |
|---|---|---|
| keyword * | string | Search term for full-text search across company records. |
| limit | integer | Maximum number of records to return per query (default 25). |
| offset | integer | Pagination start position. Use 0 for first page, then 25, 50, etc. |
| research_context | string | Brief summary of the user's research goal. Used for logging only. |
| styrelsesate | string | Optional filter: board seat city (case-insensitive substring match, e.g. 'Stockholm', 'Göteborg'). |
search_dodaSearch Swedish death records — 950,000 records from 1600s-1951. Returns name, occupation, home parish, age, cause of death, relative information, and archive reference.| Parameter | Type | Description |
|---|---|---|
| datum_from | string | Optional filter: earliest date (YYYY-MM-DD format, inclusive). |
| datum_till | string | Optional filter: latest date (YYYY-MM-DD format, inclusive). |
| dodsorsak | string | Optional filter: cause of death (case-insensitive substring match). |
| forsamling | string | Optional filter: parish name (case-insensitive substring match). |
| keyword * | string | Search term for full-text search across death records. |
| lan | string | Optional filter: county name (case-insensitive substring match). |
| limit | integer | Maximum number of records to return per query (default 25). |
| offset | integer | Pagination start position. Use 0 for first page, then 25, 50, etc. |
| research_context | string | Brief summary of the user's research goal. Used for logging only. |
search_domboksregisterSearch Västra härad court records 1611-1730 — 88,000 persons in court cases. Returns person name, role (plaintiff/defendant), title, parish, place, case notes, date, and case type.| Parameter | Type | Description |
|---|---|---|
| arende | string | Optional filter: case type (case-insensitive substring match on arende field, e.g. 'Skuld', 'Våld'). |
| datum_from | string | Optional filter: date range start inclusive (e.g. '1650-01-01'). String comparison on datum field. |
| datum_till | string | Optional filter: date range end inclusive (e.g. '1700-12-31'). String comparison on datum field. |
| keyword * | string | Search term for full-text search across Domboksregister court records. |
| limit | integer | Maximum number of records to return per query (default 25). |
| offset | integer | Pagination start position. Use 0 for first page, then 25, 50, etc. |
| research_context | string | Brief summary of the user's research goal. Used for logging only. |
| roll | string | Optional filter: role in case (case-insensitive substring match, e.g. 'Kärande' for plaintiff, 'Svarande' for defendant). |
| socken | string | Optional filter: parish name (case-insensitive substring match). |
search_faltjagareSearch Jämtland field regiment records 1645-1901 — 43,000 soldier service records. Returns soldier name, family name, rank, company, parish, region, service period, and fate (killed/died/deserted).| Parameter | Type | Description |
|---|---|---|
| befattning | string | Optional filter: rank/position (case-insensitive substring match, e.g. 'Soldat', 'Korpral'). |
| keyword * | string | Search term for full-text search across soldier records. |
| kompani | string | Optional filter: company name (case-insensitive substring match). |
| limit | integer | Maximum number of records to return per query (default 25). |
| offset | integer | Pagination start position. Use 0 for first page, then 25, 50, etc. |
| region | string | Optional filter: region (case-insensitive substring match, e.g. 'Jämtland', 'Härjedalen'). |
| research_context | string | Brief summary of the user's research goal. Used for logging only. |
search_fangrullorSearch Östersund prison records 1810-1900 — 11,500 inmates with names, ages, crimes, and home parishes.| Parameter | Type | Description |
|---|---|---|
| brott | string | Optional filter: crime type (case-insensitive substring match, e.g. 'stöld' for theft). |
| keyword * | string | Search term for full-text search across prison records. |
| limit | integer | Maximum number of records to return per query (default 25). |
| offset | integer | Pagination start position. Use 0 for first page, then 25, 50, etc. |
| research_context | string | Brief summary of the user's research goal. Used for logging only. |
search_filmregSearch Swedish film censorship records — 60,000 films reviewed 1911-2011. Returns original and Swedish titles, production year/country, category, age rating, number of cuts, producer, free-text descriptions, and notes.| Parameter | Type | Description |
|---|---|---|
| aaldersgraens | string | Optional filter: age rating (case-insensitive substring match, e.g. '15 år', 'Barntillåten'). |
| filmkategori | string | Optional filter: film category (case-insensitive substring match, e.g. 'Spelfilm', 'Dokumentär'). |
| keyword * | string | Search term for full-text search across film censorship records. |
| limit | integer | Maximum number of records to return per query (default 25). |
| offset | integer | Pagination start position. Use 0 for first page, then 25, 50, etc. |
| produktionsland | string | Optional filter: production country (case-insensitive substring match, e.g. 'Sverige', 'USA'). |
| research_context | string | Brief summary of the user's research goal. Used for logging only. |
search_fkprSearch Gothenburg FKPR suffrage association members 1911-1920 — 1,700 women. Returns name, title/occupation, address, and years of membership.| Parameter | Type | Description |
|---|---|---|
| keyword * | string | Search term for full-text search across FKPR membership records. |
| limit | integer | Maximum number of records to return per query (default 25). |
| offset | integer | Pagination start position. Use 0 for first page, then 25, 50, etc. |
| research_context | string | Brief summary of the user's research goal. Used for logging only. |
search_flygvapenSearch Swedish military aviation accidents 1912-2007 — 2,400 incidents with aircraft types, crash sites, and summaries.| Parameter | Type | Description |
|---|---|---|
| fpl_typ | string | Optional filter: aircraft type (case-insensitive substring match, e.g. 'J 35' for Draken). |
| keyword * | string | Search term for full-text search across aviation accident records. |
| limit | integer | Maximum number of records to return per query (default 25). |
| offset | integer | Pagination start position. Use 0 for first page, then 25, 50, etc. |
| research_context | string | Brief summary of the user's research goal. Used for logging only. |
search_fodelseSearch Swedish birth/baptism records — 1.3 million records from 1600s-1914. Returns child name, gender, parents (father/mother names, occupations), birth/baptism date, parish, county, and birth place.| Parameter | Type | Description |
|---|---|---|
| datum_from | string | Optional filter: earliest date (YYYY-MM-DD format, inclusive). |
| datum_till | string | Optional filter: latest date (YYYY-MM-DD format, inclusive). |
| forsamling | string | Optional filter: parish name (case-insensitive substring match). |
| keyword * | string | Search term for full-text search across birth/baptism records. |
| kon | string | Optional filter: gender (case-insensitive substring match, e.g. 'Man' or 'Kvinna'). |
| lan | string | Optional filter: county name (case-insensitive substring match). |
| limit | integer | Maximum number of records to return per query (default 25). |
| offset | integer | Pagination start position. Use 0 for first page, then 25, 50, etc. |
| research_context | string | Brief summary of the user's research goal. Used for logging only. |
search_guidesSearch across ALL Riksarkivet PDF guides at once. No display_pdf needed. Returns matches with guide title, page number, and text snippets. Use this to find information across all guides, then display_pdf to show the source.| Parameter | Type | Description |
|---|---|---|
| term * | string | The search term to find across all guides. |
search_judaSearch SJ railway property register — 198,000 properties managed by Swedish State Railways. Returns property description, county, municipality, owner, and notes.| Parameter | Type | Description |
|---|---|---|
| fbagrkod2 | string | Optional filter: owner code (case-insensitive substring match, e.g. 'Jernhusen'). |
| keyword * | string | Search term for full-text search across JUDA railway property records. |
| limit | integer | Maximum number of records to return per query (default 25). |
| offset | integer | Pagination start position. Use 0 for first page, then 25, 50, etc. |
| research_context | string | Brief summary of the user's research goal. Used for logging only. |
search_kurhusetSearch hospital patient records 1817-1866 — 3,000 patients with diagnoses, treatments, and outcomes.| Parameter | Type | Description |
|---|---|---|
| keyword * | string | Search term for full-text search across hospital patient records. |
| limit | integer | Maximum number of records to return per query (default 25). |
| offset | integer | Pagination start position. Use 0 for first page, then 25, 50, etc. |
| research_context | string | Brief summary of the user's research goal. Used for logging only. |
| sjukdom | string | Optional filter: disease name (case-insensitive substring match, e.g. 'syfilis'). |
search_liggareSearch Swedish seamen's voyage records (Liggare) — 637,000 individual voyages from 1700s-1900s. Returns seaman name, rank, ship, home port, destination, captain, shipowner. Filter by occupation, ship, seamen's house, home port, captain, shipowner, or destination.| Parameter | Type | Description |
|---|---|---|
| befattning | string | Optional filter: occupation/rank (case-insensitive substring match, e.g. 'matros', 'styrman'). |
| destination | string | Optional filter: voyage destination (case-insensitive substring match, e.g. 'Medelhavet', 'Nordamerika'). |
| fartyg | string | Optional filter: ship name (case-insensitive substring match). |
| hemmahamn | string | Optional filter: home port (case-insensitive substring match). |
| kapten | string | Optional filter: captain name (case-insensitive substring match). |
| keyword * | string | Search term for full-text search across Liggare voyage records. |
| limit | integer | Maximum number of records to return per query (default 25). |
| offset | integer | Pagination start position. Use 0 for first page, then 25, 50, etc. |
| redare | string | Optional filter: shipowner name (case-insensitive substring match). |
| research_context | string | Brief summary of the user's research goal. Used for logging only. |
| sjoemanshus | string | Optional filter: seamen's house name (case-insensitive substring match, e.g. 'Göteborg', 'Stockholm'). |
search_matrikelSearch Swedish seamen's registration records (Matrikel) — 51,000 registrations. Returns seaman name, birth info, parents, home parish, registration/deregistration dates.| Parameter | Type | Description |
|---|---|---|
| keyword * | string | Search term for full-text search across Matrikel registration records. |
| limit | integer | Maximum number of records to return per query (default 25). |
| offset | integer | Pagination start position. Use 0 for first page, then 25, 50, etc. |
| research_context | string | Brief summary of the user's research goal. Used for logging only. |
| sjoemanshus | string | Optional filter: seamen's house name (case-insensitive substring match, e.g. 'Göteborg', 'Stockholm'). |
search_medelstadSearch Medelstad härad court books 1668-1750 — 91,000 persons with 21,000 case summaries. Returns person name, title, parish, court date, case type, and full case summary text.| Parameter | Type | Description |
|---|---|---|
| datum_from | string | Optional filter: date range start inclusive (e.g. '1690-01-01'). String comparison on ting_dag field. |
| datum_till | string | Optional filter: date range end inclusive (e.g. '1750-12-31'). String comparison on ting_dag field. |
| keyword * | string | Search term for full-text search across Medelstad court records. |
| limit | integer | Maximum number of records to return per query (default 25). |
| mal_typ | string | Optional filter: case type (case-insensitive substring match). |
| norm_forsamling | string | Optional filter: parish name (case-insensitive substring match). |
| offset | integer | Pagination start position. Use 0 for first page, then 25, 50, etc. |
| research_context | string | Brief summary of the user's research goal. Used for logging only. |
search_mpoSearch MPO (Medeltida Pergamentomslag) — 23,000+ medieval parchment fragments used as bookbinding covers. The content of this database is in German with use of Latin terms and abbreviations to describe historical contexts. Returns results as a markdown table with key columns (ID, category, dating, origin, script, content). ALWAYS present search results to the user as a table — do not convert to prose. Each result includes a IIIF manifest URL for viewing fragment images — pass this to view_manifest. Paginate with offset (0, 25, 50, ...).| Parameter | Type | Description |
|---|---|---|
| category | string | Optional filter: only return fragments in this category (case-insensitive substring match). |
| institution | string | Optional filter: only return fragments held at this institution (case-insensitive substring match). |
| keyword * | string | Search term for full-text search across MPO fragment text. |
| limit | integer | Maximum number of records to return per query (default 25). |
| offset | integer | Pagination start position. Use 0 for first page, then 25, 50, etc. |
| research_context | string | Brief summary of the user's research goal. Used for logging only. |
| script | string | Optional filter: only return fragments with this script type (case-insensitive substring match). |
search_pdfSearch ALL pages of a loaded PDF (requires display_pdf first). Returns match counts per page and text snippets. Fast server-side search.| Parameter | Type | Description |
|---|---|---|
| term * | string | The search term to find. |
| url * | string | URL of the PDF file (must match a previous display_pdf call). |
search_pressSearch Swedish government press conferences 1993-2017 — 5,700 conferences with titles and content descriptions.| Parameter | Type | Description |
|---|---|---|
| aar | string | Optional filter: year (case-insensitive substring match, e.g. '2005'). |
| keyword * | string | Search term for full-text search across press conference records. |
| limit | integer | Maximum number of records to return per query (default 25). |
| offset | integer | Pagination start position. Use 0 for first page, then 25, 50, etc. |
| research_context | string | Brief summary of the user's research goal. Used for logging only. |
search_ritningarSearch SJ railway technical drawings — 118,000 drawings of stations, buildings, and infrastructure. Returns station/building name, description, drawing number, date, format, district, and building type.| Parameter | Type | Description |
|---|---|---|
| dkod | string | Optional filter: district code (case-insensitive substring match). |
| keyword * | string | Search term for full-text search across FIRA/SIRA railway drawing records. |
| limit | integer | Maximum number of records to return per query (default 25). |
| offset | integer | Pagination start position. Use 0 for first page, then 25, 50, etc. |
| research_context | string | Brief summary of the user's research goal. Used for logging only. |
search_rosenbergSearch Rosenberg's geographical lexicon of Sweden — 66,000 historical places with descriptions. Returns place name, parish, hundred, county, full description text, and industry/feature flags. Use for looking up historical Swedish places, parishes, and their descriptions.| Parameter | Type | Description |
|---|---|---|
| forsamling | string | Optional filter: parish/församling (case-insensitive substring match, e.g. 'Klara', 'Hedvig'). |
| keyword * | string | Search term for full-text search across Rosenberg's geographical lexicon. |
| lan | string | Optional filter: county/län (case-insensitive substring match, e.g. 'Stockholms', 'Malmöhus'). |
| limit | integer | Maximum number of records to return per query (default 25). |
| offset | integer | Pagination start position. Use 0 for first page, then 25, 50, etc. |
| research_context | string | Brief summary of the user's research goal. Used for logging only. |
search_rostrattSearch women's suffrage petition signatures 1913-1914 — 29,000 names from 5 counties. Returns signer name, title, occupation, address, town, county, and monetary contributions.| Parameter | Type | Description |
|---|---|---|
| keyword * | string | Search term for full-text search across Rösträtt petition records. |
| lan | string | Optional filter: county name (case-insensitive substring match, e.g. 'Blekinge', 'Gotland'). |
| limit | integer | Maximum number of records to return per query (default 25). |
| offset | integer | Pagination start position. Use 0 for first page, then 25, 50, etc. |
| ortens_namn | string | Optional filter: town name (case-insensitive substring match). |
| research_context | string | Brief summary of the user's research goal. Used for logging only. |
search_sblSearch Svenskt biografiskt lexikon (SBL) — 9,400+ articles about notable people in Swedish history. Returns name, occupation, career details and credentials (CV/meriter), birth/death dates and places, sources, and portrait image URLs. The full biographical narrative is only available on the SBL website (linked via SBL URI in results). Covers medieval to 20th century. Articles go up to letter S (T to O not yet published). Filter by gender, occupation, place, or year range. Paginate with offset (0, 25, 50, ...). NOTE: SBL text uses printed-encyclopedia abbreviations: f=fodd, d=dod, G=Gift, o=och, m=med, Sthlm=Stockholm, univ=universitet, doc=docent, prof=professor, sn=socken, hd=harad, s a=samma ar, bl a=bland annat. Expand these naturally when presenting to users.| Parameter | Type | Description |
|---|---|---|
| birth_place | string | Optional filter: only return articles with this birth place (case-insensitive substring match). |
| birth_year_max | integer | Optional filter: maximum birth year (inclusive). |
| birth_year_min | integer | Optional filter: minimum birth year (inclusive). |
| death_place | string | Optional filter: only return articles with this death place (case-insensitive substring match). |
| death_year_max | integer | Optional filter: maximum death year (inclusive). |
| death_year_min | integer | Optional filter: minimum death year (inclusive). |
| gender | string | Optional filter: m (male), f (female), or - (family/other). Exact match. |
| keyword * | string | Search term for full-text search across SBL biographical articles. |
| limit | integer | Maximum number of records to return per query (default 25). |
| occupation | string | Optional filter: only return articles with this occupation (case-insensitive substring match). |
| offset | integer | Pagination start position. Use 0 for first page, then 25, 50, etc. |
| research_context | string | Brief summary of the user's research goal. Used for logging only. |
search_sdhkSearch SDHK (Diplomatarium Suecanum) — 44,000+ medieval Swedish charters dated before 1540. Returns results as a markdown table with key columns (ID, date, place, author, summary, status). ALWAYS present search results to the user as a table — do not convert to prose. About 15,000 charters are digitized — these include IIIF manifest URLs you can pass to view_manifest. Only use view_manifest on results that have a manifest URL. Paginate with offset (0, 25, 50, ...).| Parameter | Type | Description |
|---|---|---|
| author | string | Optional filter: only return charters with this author (case-insensitive substring match). |
| keyword * | string | Search term for full-text search across SDHK charter text. |
| language | string | Optional filter: only return charters in this language (case-insensitive substring match). |
| limit | integer | Maximum number of records to return per query (default 25). |
| offset | integer | Pagination start position. Use 0 for first page, then 25, 50, etc. |
| place | string | Optional filter: only return charters from this place (case-insensitive substring match). |
| research_context | string | Brief summary of the user's research goal. Used for logging only. |
search_styrelseSearch board members of Swedish companies 1901-1935 — 49,000 board members. Returns member name, title, gender, and company name.| Parameter | Type | Description |
|---|---|---|
| keyword * | string | Search term for full-text search across board member records. |
| limit | integer | Maximum number of records to return per query (default 25). |
| offset | integer | Pagination start position. Use 0 for first page, then 25, 50, etc. |
| research_context | string | Brief summary of the user's research goal. Used for logging only. |
| titel | string | Optional filter: title (case-insensitive substring match, e.g. 'Direktör', 'Ingenjör'). |
search_toraGeocode historical Swedish places using TORA (Topografiskt register på Riksarkivet). Returns WGS84 coordinates, parish, municipality, county, and province for 51,000 settlements. Many places include linked historical Suecia Antiqua engravings (1600s) from KB. Use to find the location of a historical Swedish place, village, or settlement. Optionally filter by parish or county to disambiguate common place names. When presenting results: show the location on a map using the coordinates, and use view_document_urls to display linked historical images in the document viewer (pass image URLs as image_urls, empty strings as text_layer_urls).| Parameter | Type | Description |
|---|---|---|
| county | string | Optional county/län to disambiguate (case-insensitive substring match, e.g. 'Uppsala', 'Malmöhus'). |
| name * | string | Place name to search for (exact match, e.g. 'Kerstinbo', 'Abbekås'). |
| parish | string | Optional parish name to disambiguate (case-insensitive substring match). |
search_videoSearch Swedish video rental stores 1991-1994 — 7,000 stores across Sweden.| Parameter | Type | Description |
|---|---|---|
| keyword * | string | Search term for full-text search across video store records. |
| kommun | string | Optional filter: municipality name (case-insensitive substring match). |
| laen | string | Optional filter: county name (case-insensitive substring match, e.g. 'Stockholm'). |
| limit | integer | Maximum number of records to return per query (default 25). |
| offset | integer | Pagination start position. Use 0 for first page, then 25, 50, etc. |
| research_context | string | Brief summary of the user's research goal. Used for logging only. |
search_vigselSearch Swedish marriage records — 447,000 records from 1600s-1929. Returns bride and groom names, occupations, ages, civil status, home parishes, and banns dates.| Parameter | Type | Description |
|---|---|---|
| datum_from | string | Optional filter: earliest date (YYYY-MM-DD format, inclusive). |
| datum_till | string | Optional filter: latest date (YYYY-MM-DD format, inclusive). |
| forsamling | string | Optional filter: parish name (case-insensitive substring match). |
| keyword * | string | Search term for full-text search across marriage records. |
| lan | string | Optional filter: county name (case-insensitive substring match). |
| limit | integer | Maximum number of records to return per query (default 25). |
| offset | integer | Pagination start position. Use 0 for first page, then 25, 50, etc. |
| research_context | string | Brief summary of the user's research goal. Used for logging only. |
search_wincarsSearch Norrland vehicle register 1916-1972 — 1.5 million vehicles across 5 northern Swedish counties. Returns registration number, vehicle type, make/model, year, chassis/engine numbers, registration/deregistration dates, domicile, and status (active/written off/scrapped).| Parameter | Type | Description |
|---|---|---|
| fabrikat | string | Optional filter: make/manufacturer (case-insensitive substring match, e.g. 'Volvo', 'Ford', 'Saab'). |
| hemvist | string | Optional filter: domicile/location (case-insensitive substring match, e.g. 'Sundsvall', 'Umeå'). |
| keyword * | string | Search term for full-text search across vehicle registration records. |
| limit | integer | Maximum number of records to return per query (default 25). |
| offset | integer | Pagination start position. Use 0 for first page, then 25, 50, etc. |
| research_context | string | Brief summary of the user's research goal. Used for logging only. |
| typ | string | Optional filter: vehicle type code (case-insensitive, e.g. 'PB'=car, 'MC'=motorcycle, 'LB'=truck, 'SL'=trailer, 'TR'=tractor, 'BS'=bus). |
transcribedSearch AI-transcribed text in digitised historical documents from the Swedish National Archives. IMPORTANT: Transcriptions are AI-generated (HTR/OCR) and contain recognition errors — always use fuzzy search (~) to compensate for misread characters and increase hits.
Query syntax: space-separated terms are ALL required (pest smitta = documents containing both); wildcards (troll*, st?ckholm) and fuzzy (stockholm~1) work. Boolean operators do NOT exist — AND/OR/NOT are matched as literal words and flood the results; for OR-logic run one search per alternative. Quoted phrases return 0 results on transcribed text — never quote. Use fuzzy (~) for OCR/HTR errors and old Swedish variants (präst/prest, silver/silfver).
Paginate with offset (0, 50, 100...). Session dedup: re-calling returns stubs for already-seen documents.| Parameter | Type | Description |
|---|---|---|
| dedup | boolean | Session deduplication. True compacts already-seen documents; False forces full results. |
| keyword * | string | Search terms — all terms must match (implicit AND). Wildcards (*, ?) and fuzzy (~1) supported; AND/OR/NOT and quoted phrases are NOT (use separate searches for OR; quotes always yield 0 here). |
| limit | integer | Maximum documents to return per query. |
| max_response_tokens | integer | Maximum tokens in response. |
| max_snippets_per_record | integer | Maximum matching pages shown per document. |
| offset * | integer | Pagination start position. Use 0 for first page, then 50, 100, etc. |
| research_context | string | Brief summary of the user's research goal. Used for telemetry only. |
| sort | string | Sort order: 'relevance', 'timeAsc', 'timeDesc', 'alphaAsc', 'alphaDesc'. |
| year_max | integer | End year filter (e.g. 1750). |
| year_min | integer | Start year filter (e.g. 1700). |
view_bildDisplay document pages by bild_id (image identifier). A bild_id like 'C0056829_00001' directly identifies a single page image in Riksarkivet. Found in DDS church records (födelse, döda, vigsel — the bild_id field in search results). Pass one or more bild_ids to view the corresponding pages with transcription overlay.| Parameter | Type | Description |
|---|---|---|
| bild_ids * | array | One or more bild_ids (e.g. ['C0056829_00001'] or ['C0056829_00001', 'C0056829_00002']). |
| highlight_term | string | Optional search term to highlight. |
view_documentDisplay document pages with zoomable images and text layer overlays. Takes a reference code and page specification (same as browse_document). Use after search to visually inspect document pages with transcription overlay. Use highlight_term to pre-populate the search bar and highlight matching text lines.| Parameter | Type | Description |
|---|---|---|
| highlight_term | string | Optional search term to pre-populate the search bar and highlight matching text lines. |
| max_pages | integer | Maximum pages to retrieve. |
| pages * | string | Page specification: single ('5'), range ('1-10'), or comma-separated ('5,7,9'). |
| reference_code * | string | Document reference code from search results (e.g. 'SE/RA/420422/01'). |
view_document_urlsDisplay document pages with zoomable images and text layer overlays from raw URLs. Provide paired lists: image_urls[i] pairs with text_layer_urls[i]. Use empty string for pages without transcription. Use this when you already have IIIF image URLs and ALTO XML URLs. Prefer view_document (with reference_code) when you have an archive reference code.| Parameter | Type | Description |
|---|---|---|
| document_info | string | Optional markdown-formatted document metadata shown in the info panel. |
| highlight_term | string | Optional search term to pre-populate the search bar and highlight matching text lines. |
| image_urls * | array | List of image URLs (one per page, IIIF or direct JPEG/PNG). |
| text_layer_urls * | array | List of text layer XML URLs (ALTO/PAGE) paired 1:1 with image_urls. Use empty string for pages without transcription. |
view_manifestDisplay document pages from a IIIF manifest URL. Use this to view documents from SDHK or MPO search results, or any Riksarkivet IIIF manifest. Fetches the manifest, extracts page images, and opens the interactive viewer.| Parameter | Type | Description |
|---|---|---|
| document_info | string | Optional markdown-formatted document metadata for the info panel. Overrides the manifest label if provided. |
| highlight_term | string | Optional search term to highlight. |
| manifest_url * | string | Full IIIF manifest URL (e.g. 'https://lbiiif.riksarkivet.se/sdhk!85/manifest'). |
| max_pages | integer | Maximum pages to load. |
view_mpoView an MPO parchment fragment in the document viewer with full codicological metadata. Takes an MPO ID (from search_mpo results) and opens the interactive viewer with the fragment images and a metadata panel showing manuscript type, dating, script, material, content, decoration, and damage descriptions.| Parameter | Type | Description |
|---|---|---|
| highlight_term | string | Optional search term to highlight. |
| max_pages | integer | Maximum pages to load. |
| mpo_id * | integer | MPO fragment ID (e.g. 1, 42). |
view_sbl_articleDisplay an SBL biographical article in a rich viewer. Takes an article_id from search_sbl results and shows the full article with portrait, career details, printed works, sources, and a link to the full biography on the SBL website. Use this after search_sbl to view a specific person's article.| Parameter | Type | Description |
|---|---|---|
| article_id * | integer | The SBL article ID from search_sbl results. |
view_sdhkView a digitized SDHK charter in the document viewer with full metadata. Takes an SDHK ID (from search_sdhk results) and opens the interactive viewer with the charter images and a metadata panel showing author, date, summary, edition text, and seal descriptions. Only works for digitized charters.| Parameter | Type | Description |
|---|---|---|
| highlight_term | string | Optional search term to highlight. |
| max_pages | integer | Maximum pages to load. |
| sdhk_id * | integer | SDHK charter ID (e.g. 85, 28672). |
viewer_go_to_pageNavigate the already-open document viewer to a specific page number. Does NOT replace the loaded pages — just scrolls to the requested page. Use this when the user asks to 'go to page 3' or 'show page 5'.| Parameter | Type | Description |
|---|---|---|
| page * | integer | Page number to navigate to (1-based). |
| view_id | string | view_id from the view_document result. Pass it so the correct viewer is targeted (works across sessions). |
viewer_navigateNavigate an already-open document viewer to different pages of the same or a new document. Use this INSTEAD of calling view_document/view_document_urls again when the viewer is already open and the user asks to see different pages.| Parameter | Type | Description |
|---|---|---|
| highlight_term | string | Optional search term to highlight. |
| max_pages | integer | Maximum pages to retrieve. |
| pages * | string | Page specification: single ('5'), range ('1-10'), or comma-separated ('5,7,9'). |
| reference_code * | string | Document reference code (e.g. 'SE/RA/420422/01'). |
| view_id | string | view_id from the view_document result. Pass it so the correct viewer is targeted (works across sessions). |
viewer_navigate_urlsNavigate an already-open document viewer to new pages using raw URLs. Use this INSTEAD of calling view_document_urls again when the viewer is already open. Provide new paired lists of image and text layer URLs.| Parameter | Type | Description |
|---|---|---|
| highlight_term | string | Optional search term to highlight. |
| image_urls * | array | List of image URLs (one per page). |
| text_layer_urls * | array | List of text layer XML URLs paired 1:1 with image_urls. Use empty string for pages without transcription. |
| view_id | string | view_id from the view_document result. Pass it so the correct viewer is targeted (works across sessions). |
viewer_reopenBring back the document viewer to fullscreen. Use when the user has scrolled past the viewer and wants to see it again, or says 'show the viewer' / 'open the document again'.| Parameter | Type | Description |
|---|---|---|
| view_id | string | view_id from the view_document result. Pass it so the correct viewer is targeted (works across sessions). |
viewer_set_highlightUpdate the search highlight in an already-open document viewer. Use this INSTEAD of calling view_document/view_document_urls again when the viewer is already showing pages and the user asks to highlight or search for a different term.| Parameter | Type | Description |
|---|---|---|
| highlight_term * | string | Search term to highlight in the viewer. Use empty string to clear highlights. |
| view_id | string | view_id from the view_document result. Pass it so the correct viewer is targeted (works across sessions). |
Security checks
Static checks derived from the repository 11 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 353 words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock and 5 more.
- ✓No dynamic code executionScanned 288 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio and Streamable HTTPpackages/libs/common/src/ra_mcp_common/dev_server.py:48, packages/libs/common/src/ra_mcp_common/dev_server.py:50
- Starts other programs
- No calls that start other programs
- Outbound network calls
- 21 callspackages/libs/common/src/ra_mcp_common/http_client.py:56, packages/libs/common/src/ra_mcp_common/http_client.py:58, packages/libs/common/src/ra_mcp_common/http_client.py:59
- Writes or deletes files
- 2 callspackages/libs/common/src/ra_mcp_common/datasets.py:66, packages/libs/common/src/ra_mcp_common/datasets.py:105
- Lockfile
- uv.lock and 5 more
Pattern matches on the source text of 288 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 353 words, fetched a month ago. The original in the repository is authoritative.
Read full README