Skip to main content
Glama

Alexandria MCP

License: MIT Node: >=22 MCP Compatible

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 --version

Wenn 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 build

Dies 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.json

  • Windows: %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:

  1. Erstellen Sie ein kostenloses Projekt unter supabase.com

  2. 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);
  1. 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

core.ac.uk/services/api

CORE_API_KEY

Semantic Scholar — 200M+ Artikel mit KI-gestützten Empfehlungen und Zitationsgraphen

semanticscholar.org/product/api

SEMANTIC_SCHOLAR_API_KEY

NASA ADS — das führende Portal für Astronomie, Astrophysik und Physik-Literatur

ui.adsabs.harvard.edu/user/settings/token

NASA_ADS_API_KEY

Smithsonian — 14M Datensätze aus allen Smithsonian-Museen (derselbe Schlüssel funktioniert für GovInfo)

api.data.gov/signup

SMITHSONIAN_API_KEY

Springer Nature — 16M+ Artikel von Springer und BioMed Central

dev.springernature.com

SPRINGER_OA_API_KEY und SPRINGER_META_API_KEY

Zenodo — CERNs offenes Forschungs-Repository, höhere Ratenlimits

zenodo.org/account/settings/applications

ZENODO_API_KEY

BHL — Biodiversity Heritage Library, jahrhundertelange naturhistorische Literatur

biodiversitylibrary.org/getapikey.aspx

BHL_API_KEY

DigitalNZ — Neuseelands nationale digitale Sammlungen

digitalnz.org/developers

DIGITALNZ_API_KEY

DPLA — Digital Public Library of America

pro.dp.la/developers/api-codex

DPLA_API_KEY

Europeana — 50M+ Objekte aus europäischen Museen und Archiven

apis.europeana.eu

EUROPEANA_API_KEY

GitHub Token — benötigt für OpenITI (10k+ islamische Texte). Keine speziellen Scopes erforderlich.

github.com/settings/tokens

GITHUB_TOKEN

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

courtlistener.com/sign-in

COURTLISTENER_API_KEY

Trove — National Library of Australia, digitalisierte Zeitungen und Bücher

trove.nla.gov.au/about/create-something/using-api

TROVE_API_KEY

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.

  1. Gehen Sie zu base-search.net/about/en/contact.php

  2. Wählen Sie "Access BASE's HTTP API" aus dem Betreff-Dropdown

  3. Geben Sie Ihre IP-Adresse an (finden Sie unter whatismyip.com) und eine kurze Beschreibung Ihres Anwendungsfalls (z. B. "non-commercial research aggregation")

  4. 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

GOOGLE_BOOKS_API_KEY

GovInfo — US Congressional Record, Federal Register

Registrieren Sie sich unter api.govinfo.gov/docs — derselbe Schlüssel funktioniert auch für Smithsonian

GOVINFO_API_KEY


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 editing
Use library_search to search gutenberg for "Marcus Aurelius"
Use library_read to get the full text of arxiv paper 2401.12345
Use library_ask to find ancient Greek philosophical texts about justice
Use library_ask to find the Code Wiki documentation for the fastify/fastify GitHub repo

Quellen 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 tools
library_answerAnswer With Cited SourcesA
Read-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 SearchA
Read-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)A
Read-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 HealthA
Read-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)A
Read-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 DatabaseA
Idempotent

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 SourcesA
Read-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 MetadataA
Read-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)A
Read-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 ResearchA
Read-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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 11 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness5/5

    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

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      Enables 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.
      21
      247 npm
      192
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Search across a billion+ documents including academic papers, books, code, legal cases, forums, and Wikipedia. Provides search and detail tools for various content types.
      2
      55 npm
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Searches 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.
      2
      MIT