Alexandria MCP
Alexandria MCP
Alexandria ist ein MCP-Server, der Claude (oder jedem anderen MCP-kompatiblen KI-System) Zugriff auf 61 öffentliche digitale Bibliotheken bietet – wissenschaftliche Arbeiten, klassische Bücher, juristische Unterlagen, historische Archive, Regierungsdatenbanken und Softwaredokumentationen – alles über eine einzige, einheitliche Schnittstelle.
Sie können Dinge fragen wie:
„Finde aktuelle Arbeiten zu Aufmerksamkeitsmechanismen in Transformer-Modellen“ „Suche in altgriechischen Texten nach dem Wesen der Tugend“ „Suche nach US-Militärakten aus dem Zweiten Weltkrieg“ „Rufe die Dokumentation für das Fastify-Web-Framework ab“
Das System findet automatisch heraus, welche Bibliotheken durchsucht werden müssen, führt die Abfragen parallel aus und liefert einheitliche Ergebnisse.
Vor dem Start: Was benötigen Sie wirklich?
Hier die ehrliche Einschätzung:
46 Quellen funktionieren ohne API-Schlüssel. Wenn Sie einfach nur arXiv, Project Gutenberg, das Repository von Oxford, das Repository von Cambridge, Europe PMC, PLOS, OpenAlex, die US National Archives, die britische Gesetzgebung und Dutzende andere durchsuchen möchten, können Sie das sofort tun, ohne sich irgendwo registrieren zu müssen.
Der einzige Schlüssel, der die Erfahrung maßgeblich verbessert, ist Ihr OpenAI-API-Schlüssel, der die Suche in natürlicher Sprache (library_ask) ermöglicht. Ohne diesen können Sie zwar weiterhin gezielt bestimmte Quellen durchsuchen, müssen die Quelle jedoch selbst benennen.
Alles andere ist optional. Jeder zusätzliche Schlüssel schaltet eine spezifische Quelle frei. Wählen Sie die aus, die für Ihre Recherche relevant sind. Den Rest können Sie ignorieren.
Related MCP server: Academic MCP
Schritt 1: Stellen Sie sicher, dass Sie Node.js 22 oder neuer haben
Öffnen Sie Ihr Terminal und prüfen Sie:
node --versionWenn v22.x.x oder höher angezeigt wird, ist alles in Ordnung. Falls nicht, laden Sie die neueste LTS-Version von nodejs.org herunter.
Schritt 2: Alexandria klonen und erstellen
git clone https://github.com/suavecito585/alexandria-mcp.git
cd alexandria-mcp
npm install
npm run buildDies dauert etwa 30 Sekunden. Wenn der Vorgang abgeschlossen ist, erscheint ein dist/-Ordner. Das ist der kompilierte Server.
Notieren Sie sich den vollständigen Pfad zu diesem Ordner – Sie werden ihn im nächsten Schritt benötigen. Unter Mac/Linux können Sie pwd ausführen, um ihn anzuzeigen. Unter Windows gibt cd allein den aktuellen Pfad aus.
Schritt 3: Alexandria zu Claude Desktop hinzufügen
Suchen Sie Ihre Konfigurationsdatei für Claude Desktop:
Mac:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Öffnen Sie diese in einem Texteditor. Falls bereits andere MCP-Server konfiguriert sind, fügen Sie Alexandria hinzu. Falls die Datei leer oder neu ist, verwenden Sie dies als Ausgangspunkt:
{
"mcpServers": {
"alexandria": {
"command": "node",
"args": ["/full/path/to/alexandria-mcp/dist/index.js"],
"env": {
"TRANSPORT": "stdio"
}
}
}
}Ersetzen Sie /full/path/to/alexandria-mcp durch den tatsächlichen Pfad aus Schritt 2.
Starten Sie Claude Desktop neu, nachdem Sie die Datei gespeichert haben.
Um zu überprüfen, ob es funktioniert hat, fragen Sie Claude: "Use library_list_sources to show all available sources." Sie sollten alle 61 Quellen aufgelistet sehen.
Schritt 4: Fügen Sie Ihren OpenAI-Schlüssel hinzu (empfohlen)
Ohne diesen müssen Sie bei jeder Suche die Quelle angeben – z. B. "search arxiv for transformer papers". Mit dem Schlüssel können Sie einfach sagen "find me papers on transformer models" und Alexandria findet heraus, welche Quellen durchsucht werden müssen.
Holen Sie sich Ihren Schlüssel unter platform.openai.com/api-keys. Es kostet einen Bruchteil eines Cents pro Suche (der Routing-Aufruf verwendet gpt-4o-mini, ca. $0,0002 pro Abfrage).
Fügen Sie ihn im env-Block Ihrer Konfiguration hinzu:
"env": {
"TRANSPORT": "stdio",
"OPENAI_API_KEY": "sk-..."
}Starten Sie Claude Desktop erneut neu.
Schritt 5: Optional – Vektorspeicher einrichten (zum Speichern von eingelesenen Texten)
library_ingest ermöglicht es Ihnen, Volltextinhalte zu zerlegen, einzubetten und in einer Vektordatenbank für den späteren Abruf zu speichern. Dies ist nur nützlich, wenn Sie eine RAG-Pipeline für die Forschung aufbauen. Wenn Sie nur suchen und lesen möchten, überspringen Sie diesen Schritt komplett.
Falls Sie es doch möchten:
Erstellen Sie ein kostenloses Projekt unter supabase.com
Gehen Sie zum SQL-Editor und führen Sie dies aus:
create extension if not exists vector;
create table if not exists source_docs (
id text primary key,
mcp_name text not null,
ingested_at timestamptz default now()
);
create table if not exists knowledge_chunks (
id uuid primary key default gen_random_uuid(),
mcp_name text not null,
source_id text not null,
title text,
authors text[],
year int,
language text,
section text,
chunk_index int,
total_chunks int,
quality_score float,
content text not null,
embedding vector(1536),
created_at timestamptz default now()
);
create index if not exists knowledge_chunks_embedding_idx
on knowledge_chunks
using ivfflat (embedding vector_cosine_ops)
with (lists = 100);Fügen Sie dies Ihrem Konfigurations-
env-Block hinzu:
"SUPABASE_URL": "https://your-project.supabase.co",
"SUPABASE_SERVICE_ROLE_KEY": "eyJ..."Sie finden beide Werte in Ihrem Supabase-Projekt unter Settings → API.
Schritt 6: API-Schlüssel auswählen, die Sie tatsächlich benötigen
Hier sind alle optionalen Schlüssel, gruppiert nach Aufwand und Nutzen.
Sofort (dauert 2 Minuten, Formular ausfüllen und fertig)
Diese sind alle kostenlos. Die Registrierung erfolgt sofort oder nahezu sofort.
Was Sie erhalten | Wo registrieren | Schlüsselname in der Konfiguration |
CORE — 57M+ Volltext-OA-Artikel, die größte verfügbare Sammlung |
| |
Semantic Scholar — 200M+ Artikel mit KI-gestützten Empfehlungen und Zitationsgraphen |
| |
NASA ADS — das führende Portal für Astronomie, Astrophysik und Physik-Literatur |
| |
Smithsonian — 14M Datensätze aus allen Smithsonian-Museen (derselbe Schlüssel funktioniert für GovInfo) |
| |
Springer Nature — 16M+ Artikel von Springer und BioMed Central |
| |
Zenodo — CERNs offenes Forschungs-Repository, höhere Ratenlimits |
| |
BHL — Biodiversity Heritage Library, jahrhundertelange naturhistorische Literatur |
| |
DigitalNZ — Neuseelands nationale digitale Sammlungen |
| |
DPLA — Digital Public Library of America |
| |
Europeana — 50M+ Objekte aus europäischen Museen und Archiven |
| |
GitHub Token — benötigt für OpenITI (10k+ islamische Texte). Keine speziellen Scopes erforderlich. |
|
Dauert einige Tage (E-Mail-Genehmigung oder manuelle Prüfung)
Was Sie erhalten | Wo registrieren | Schlüsselname in der Konfiguration |
CourtListener — Volltext-US-Bundes- und Landesrechtsprechung |
| |
Trove — National Library of Australia, digitalisierte Zeitungen und Bücher |
|
Sonderfall: BASE (IP-Whitelist erforderlich)
BASE bietet Ihnen 400M+ Datensätze von 11.000+ akademischen Anbietern – der größte Index, den wir unterstützen. Er ist kostenlos, erfordert jedoch eine E-Mail an deren Team, um Ihre IP-Adresse auf die Whitelist zu setzen. Dauert normalerweise 2–3 Werktage.
Gehen Sie zu base-search.net/about/en/contact.php
Wählen Sie "Access BASE's HTTP API" aus dem Betreff-Dropdown
Geben Sie Ihre IP-Adresse an (finden Sie unter whatismyip.com) und eine kurze Beschreibung Ihres Anwendungsfalls (z. B. "non-commercial research aggregation")
Warten Sie auf die Antwort – sie werden Ihre IP freischalten
Sobald genehmigt, fügen Sie dies Ihrer Konfiguration hinzu: "BASE_API_KEY": "" (der Wert kann leer bleiben, wenn sie nur IP-Authentifizierung verwenden, oder sie geben Ihnen ein Token).
Konsolen-Einrichtung (etwas aufwendiger)
Was Sie erhalten | Hinweise | Schlüsselname in der Konfiguration |
Google Books — 40M+ Bücher, Volltext für gemeinfreie Titel | Erstellen Sie ein Projekt in der Google Cloud Console, aktivieren Sie die Books API, erstellen Sie einen API-Schlüssel |
|
GovInfo — US Congressional Record, Federal Register | Registrieren Sie sich unter api.govinfo.gov/docs — derselbe Schlüssel funktioniert auch für Smithsonian |
|
Hinzufügen von Schlüsseln zu Ihrer Konfiguration
Jeder Schlüssel kommt in den env-Block. Ihre endgültige Konfiguration könnte etwa so aussehen (fügen Sie nur die Schlüssel hinzu, die Sie tatsächlich erhalten haben):
{
"mcpServers": {
"alexandria": {
"command": "node",
"args": ["/full/path/to/alexandria-mcp/dist/index.js"],
"env": {
"TRANSPORT": "stdio",
"OPENAI_API_KEY": "sk-...",
"CONTACT_EMAIL": "you@example.com",
"CORE_API_KEY": "your-core-key",
"SEMANTIC_SCHOLAR_API_KEY": "your-s2-key",
"NASA_ADS_API_KEY": "your-ads-key",
"SMITHSONIAN_API_KEY": "your-data-gov-key",
"GOVINFO_API_KEY": "your-data-gov-key",
"SPRINGER_OA_API_KEY": "your-springer-oa-key",
"SPRINGER_META_API_KEY": "your-springer-meta-key",
"ZENODO_API_KEY": "your-zenodo-key",
"BHL_API_KEY": "your-bhl-key",
"DPLA_API_KEY": "your-dpla-key",
"EUROPEANA_API_KEY": "your-europeana-key",
"DIGITALNZ_API_KEY": "your-digitalnz-key",
"GITHUB_TOKEN": "ghp_...",
"COURTLISTENER_API_KEY": "your-cl-key",
"TROVE_API_KEY": "your-trove-key",
"GOOGLE_BOOKS_API_KEY": "your-books-key",
"SUPABASE_URL": "https://your-project.supabase.co",
"SUPABASE_SERVICE_ROLE_KEY": "eyJ..."
}
}
}
}Denken Sie daran, Claude Desktop jedes Mal neu zu starten, wenn Sie die Konfiguration ändern.
Was kann ich jetzt tun?
Hier sind einige Dinge, die Sie ausprobieren können, sobald alles eingerichtet ist:
Use library_ask to find recent papers on CRISPR gene editingUse library_search to search gutenberg for "Marcus Aurelius"Use library_read to get the full text of arxiv paper 2401.12345Use library_ask to find ancient Greek philosophical texts about justiceUse library_ask to find the Code Wiki documentation for the fastify/fastify GitHub repoQuellen auf einen Blick
46 Quellen benötigen keinen API-Schlüssel. Diese funktionieren sofort nach der Installation:
arXiv, Europe PMC, NASA NTRS, OSTI, ERIC, NSF, NIH, bioRxiv, PLOS, OpenAlex, Crossref, DOAJ, NARA, GovInfo, UK Legislation, Scottish Legislation, Norwegian National Library, OSF (PsyArXiv/SocArXiv), EarlyPrint, Harvard LibraryCloud, Cambridge Apollo, Oxford ORA, Google Code Wiki, Gutenberg, Open Library, Standard Ebooks, Wikisource, Internet Classics Archive, Sacred Texts, Marxists Internet Archive, CCEL, Project Runeberg, Cervantes Virtual, Classical Chinese Texts, Gallica, HathiTrust, Library of Congress, DOAB, OAPEN, Feedbooks, World Digital Library, Data.gov, Chronicling America, NDL (Japan)
15 Quellen benötigen einen kostenlosen API-Schlüssel:
CORE, Semantic Scholar, NASA ADS, Smithsonian, Springer Nature, Zenodo, BHL, DigitalNZ, DPLA, Europeana, GitHub (OpenITI), CourtListener, Trove, Google Books, BASE (IP-Whitelist)
Lizenz
MIT — verwenden Sie es, wie Sie möchten.
Available Tools
11 toolslibrary_answerAnswer With Cited SourcesARead-only
Ask a question in plain English and get a synthesized answer with inline [n] citations, fused across sources with reciprocal rank fusion. Use this instead of library_ask when you want a cited answer rather than raw results. Every factual sentence is cited or dropped; an uncited or all-dropped answer is flagged in warnings[]. Requires OPENAI_API_KEY (or ALEXANDRIA_SYNTH_API_KEY). Set response_format: "detailed" for the full result set, routing, citation grades, and resolvability.
Inputs: query (required), read_top, max_sources, response_format, +1 more. Returns: answer, results, routing, warnings, +1 more
library_askNatural Language Library SearchARead-only
Ask for content in plain English; automatically selects the best sources from all 152 libraries, generates optimized per-source queries, and searches in parallel. Use this as the default entry point for any natural-language request. Use library_search instead when you already know which source to query. Requires OPENAI_API_KEY (already set for embeddings). Set response_format: "detailed" for routing reasons and per-stage diagnostics.
Inputs: query (required), max_sources, response_format, results_per_source. Returns: query, errors, intent, stage1, +5 more
library_citationsGet References or Citations (with Bibliography Export)ARead-onlyIdempotent
List the works a scholarly item cites (direction: "references") or the works that cite it (direction: "citations"), resolved through OpenAlex's citation graph with OpenCitations as a fallback when OpenAlex has no record. Accepts an id/source from library_search or library_ask, or a bare DOI/arXiv id. Set format: "bibtex" | "ris" | "apa" to also return a formatted bibliography string; BibTeX prefers Crossref's own citation when a DOI is resolvable, for the first 20 results only (a paced, one-at-a-time doi.org lookup per item), with later results using a locally generated entry instead. Set response_format: "detailed" for full result fields.
Inputs: id (required), source (required), direction (required), limit, +2 more. Returns: seed, results, direction, formatted
library_health_checkCheck Source HealthARead-onlyIdempotent
Report per-source health: 'ok', 'degraded', 'down', 'key_missing', or 'unknown', merging this process's live error rate and latency with the last off-process probe run. The probe layer reads eval/probe-latest.json, which published installs do not ship, so on a published install a source's status stays 'unknown' until this process itself calls it. Use before relying on a source that has been erroring, or to check whether a key is configured. Optionally filter by source or cluster. Set response_format: "detailed" for error rate, latency, and quota usage.
Inputs: source, cluster, response_format. Returns: probeAt, sources, generatedAt
library_indexPreview Chunking (Dry Run)ARead-onlyIdempotent
Dry run: fetch text, chunk semantically, score OCR quality. No writes. Full-text sources only.
Inputs: id (required), source (required). Returns: title, source, sourceId, totalChunks, +5 more
library_ingestIngest Into Vector DatabaseAIdempotent
Chunk, embed, and store a text. Idempotent. Full-text sources only. Requires OPENAI_API_KEY + SUPABASE_URL + SUPABASE_SERVICE_ROLE_KEY.
Inputs: id (required), source (required). Returns: title, source, sourceId, chunksDropped, +2 more
library_list_sourcesList Available Library SourcesARead-onlyIdempotent
List all 152 library sources (count computed from the live registry at startup) with descriptions and capabilities.
Inputs: no named parameters. Returns: sources
library_readRead Full Text or MetadataARead-onlyIdempotent
Fetch text from a library source. Full-text sources return cleaned text (truncated at 200k chars). Metadata sources return item details and an external URL.
Inputs: id (required), source (required). Returns: doi, note, text, year, +10 more
library_recommendGet Similar Papers (Semantic Scholar)ARead-onlyIdempotent
Get papers similar to a given paper using Semantic Scholar's recommendation engine. Pass a paperId from a semanticscholar search result. Returns up to 500 similar papers.
Inputs: id (required), limit. Returns: results
library_researchRecursive Cited ResearchARead-only
Deep research on a topic: outlines 3 to 7 coverage objectives, generates search queries, answers each with library_answer, extracts learnings and follow-up questions, then recurses with half the breadth. Stops once every objective is covered by a learning, at the given depth, at the time budget, or once a round finds no new sources. Requires OPENAI_API_KEY (or ALEXANDRIA_RESEARCH_API_KEY / ALEXANDRIA_SYNTH_API_KEY). Set response_format: "detailed" for the per-round breakdown, elapsed time, citation grades, resolvability, and the objectives/coverage outline.
Inputs: query (required), depth, breadth, max_minutes, +1 more. Returns: report, rounds, coverage, warnings, +3 more
library_searchSearch Library SourceARead-onlyIdempotent
Search a specific library source by name. Use library_ask instead for natural language queries across multiple sources.
Sources marked [full text] support library_read and library_ingest. Sources marked [metadata] return discovery info and external URLs only.
Inputs: query (required), source (required), limit, response_format. Returns: results
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool targets a distinct operation—listing, health, natural-language search, specific search, read, dry-run indexing, ingest, recommend, answer, deep research, citations. Overlaps like ask vs. answer are clearly differentiated by descriptions.
All tools follow the library_<verb> pattern with consistent snake_case naming. Verbs are clear and predictable (list, search, read, ingest, etc.), with minor noun-based exceptions like 'health_check' and 'citations' that still fit the pattern.
11 tools is well within the ideal 3-15 range and each serves a distinct purpose, covering the full lifecycle from discovery to ingestion to synthesis without redundancy.
The tool set covers discovery (list_sources), health (health_check), search (ask, search), retrieval (read), ingestion (index, ingest), recommendation, synthesis (answer, research), and citations. No obvious gaps exist for a library server's expected operations.
Maintenance
Related MCP Connectors
Search a billion+ documents — papers, books, code, legal cases, forums, Wikipedia, and more.
Federated search of books and papers, BibTeX/RIS citations, open-access retrieval and reading.
Academic literature search, retrieval, and private library management on top of OpenAlex.
Research papers from OpenAlex, Crossref, arXiv and PubMed in one search, merged by DOI.
Related MCP Servers
- AlicenseBqualityBmaintenanceEnables searching and downloading academic papers from 14 platforms including arXiv, PubMed, Google Scholar, Web of Science, Springer, and Sci-Hub with unified data format and intelligent rate limiting.21247 npm192MIT
- AlicenseAqualityDmaintenanceEnables users to search, download, and read academic papers from multiple platforms including arXiv, PubMed, bioRxiv, Google Scholar, Semantic Scholar, and CrossRef through a unified interface.347MIT
- AlicenseAqualityDmaintenanceSearch across a billion+ documents including academic papers, books, code, legal cases, forums, and Wikipedia. Provides search and detail tools for various content types.255 npmMIT
- AlicenseAqualityDmaintenanceSearches and retrieves academic papers from open access sources like arXiv, Semantic Scholar, and PubMed, with full text access via arXiv PDFs, PubMed Central, and Unpaywall.2MIT