Use the following settings to connect the archive to your AI assistant:
Cursor
In settings (
Settings → Features → MCP Servers) add a new server:
- Type: SSE
- URL:
https://www.hejdanek.eu/mcp
Claude Desktop
Add the following configuration to your mcp.json file:
{
"mcpServers": {
"hejdanek": {
"type": "sse",
"url": "https://www.hejdanek.eu/mcp"
}
}
}
Once connected, the AI agent has access to the following functions:
SearchTexts |
Semantic search across the corpus based on meaning similarity (powered by PostgreSQL pgvector). Supports optional filters: document type, year of origin (from/to), author, language, published texts only. |
GetDocumentText |
Retrieve the full OCR text of a document by its ID. The ID can be obtained from SearchTexts results. |
GetFilterOptions |
Returns the list of valid values for the filter parameters of SearchTexts (document types, languages). Recommended to call before using filters. |