Skip to main content
Glama

Riksarkivet MCP Server

models.py1.22 kB
""" Data models for Riksarkivet MCP server. """ from __future__ import annotations from typing import Dict, List, Optional from pydantic import BaseModel class SearchHit(BaseModel): pid: str title: str reference_code: str page_number: str snippet_text: str full_page_text: Optional[str] = None alto_url: Optional[str] = None image_url: Optional[str] = None bildvisning_url: Optional[str] = None score: float = 0.0 hierarchy: Optional[List[Dict[str, str]]] = None note: Optional[str] = None collection_url: Optional[str] = None manifest_url: Optional[str] = None archival_institution: Optional[List[Dict[str, str]]] = None date: Optional[str] = None class PageContext(BaseModel): page_number: int page_id: str reference_code: str full_text: str alto_url: str image_url: str bildvisning_url: str = "" class SearchOperation(BaseModel): hits: List[SearchHit] total_hits: int keyword: str offset: int enriched: bool = False class BrowseOperation(BaseModel): contexts: List[PageContext] reference_code: str pages_requested: str pid: Optional[str] = None manifest_id: Optional[str] = None

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