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/mcp
Claude Code:
claude mcp add --transport http ra-mcp https://riksarkivet-ra-mcp.hf.space/mcp
IDE (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