Riksarkivet MCP Server
The Riksarkivet MCP Server enables searching and browsing millions of transcribed historical documents from the Swedish National Archives through AI assistants and command-line tools.
Core Capabilities:
Full-text search with advanced query syntax including wildcards (*, ?), fuzzy matching (~), proximity searches, boolean operators (AND/OR/NOT), and term boosting. Results support pagination, configurable hits per document (default: 3), and toggleable context display for balancing coverage with detail.
Document browsing by reference code with support for single pages, ranges (e.g., "1-10"), or comma-separated lists. View full transcriptions with optional search term highlighting and configurable page limits (default: 20).
Document structure and metadata retrieval including reference codes, PIDs, institution information, dates, and IIIF manifest data without fetching full content.
Archive guide navigation with access to a complete guide index and specific sections covering topics like courts (Domstolar) and prisons (Fängelse).
Integration features including ALTO XML transcriptions for structured data, IIIF high-resolution images with zoom/crop capabilities, interactive web viewers (Bildvisning), and integration with Riksarkivet APIs (Search API, IIIF Collections, OAI-PMH, semantic search).
Deployment options as an MCP server for AI assistants like Claude and ChatGPT via HTTP transport, command-line interface for local usage, and containerized deployment with development tools including MCP Inspector testing and Dagger-based CI/CD.
Typical workflow: Search using keywords → Paginate through results → Browse specific pages with highlighted terms → Access original images and metadata for citations.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Riksarkivet MCP Serversearch for documents about witchcraft trials in Stockholm"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ra-mcp
A Model Context Protocol server and CLI for searching and browsing transcribed historical documents from the Swedish National Archives (Riksarkivet). Provides full-text search across millions of AI-transcribed pages, complete page transcriptions, handwritten text recognition, interactive document viewing, and archival research guides — all as MCP tools that any LLM client can use.
Quick Start (MCP)
Streamable HTTP — works with ChatGPT, Claude, and any MCP-compatible client:
https://riksarkivet-ra-mcp.hf.space/mcpClaude Code:
claude mcp add --transport http ra-mcp https://riksarkivet-ra-mcp.hf.space/mcpIDE (mcp.json):
{
"mcpServers": {
"ra-mcp": {
"type": "streamable-http",
"url": "https://riksarkivet-ra-mcp.hf.space/mcp"
}
}
}Quick Start (CLI)
uv pip install ra-mcp# Search transcribed documents
ra search "trolldom"
ra search "((Stockholm OR Göteborg) AND troll*)"
# Browse specific pages
ra browse "SE/RA/310187/1" --pages "7,8,52" --search-term "trolldom"
# Interactive terminal browser
ra tui "trolldom"Documentation
For architecture, development setup, deployment, tool reference, CLI reference, and more:
ai-riksarkivet.github.io/ra-mcp
License
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AI-Riksarkivet/ra-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server