Skip to main content
Glama

Alexandria MCP

License: MIT Node: >=22 MCP Compatible

Alexandria es un servidor MCP que le da a Claude (o a cualquier IA compatible con MCP) acceso a 61 bibliotecas digitales públicas —artículos académicos, libros clásicos, registros legales, archivos históricos, bases de datos gubernamentales y documentación de software— a través de una interfaz unificada.

Puedes pedirle cosas como:

"Búscame artículos recientes sobre mecanismos de atención en modelos transformer" "Busca textos griegos antiguos sobre la naturaleza de la virtud" "Busca registros militares de EE. UU. de la Segunda Guerra Mundial" "Obtén la documentación del framework web fastify"

Y automáticamente determina qué bibliotecas buscar, ejecuta las consultas en paralelo y devuelve resultados unificados.


Antes de empezar: ¿qué necesitas realmente?

Aquí está la versión honesta:

46 fuentes funcionan sin claves de API. Si solo quieres buscar en arXiv, Project Gutenberg, el repositorio de Oxford, el repositorio de Cambridge, Europe PMC, PLOS, OpenAlex, los Archivos Nacionales de EE. UU., la legislación del Reino Unido y docenas de otros, puedes hacerlo ahora mismo sin registrarte en nada.

La única clave que mejora significativamente la experiencia es tu clave de API de OpenAI, que potencia la búsqueda en lenguaje natural (library_ask). Sin ella, aún puedes buscar en fuentes específicas directamente, solo tienes que nombrar la fuente tú mismo.

Todo lo demás es opcional. Cada clave adicional desbloquea una fuente específica. Elige las que sean relevantes para lo que estás investigando. Ignora el resto.


Related MCP server: Academic MCP

Paso 1: Asegúrate de tener Node.js 22 o posterior

Abre tu terminal y comprueba:

node --version

Si muestra v22.x.x o superior, estás listo. Si no, descarga la última versión LTS desde nodejs.org.


Paso 2: Clona y construye Alexandria

git clone https://github.com/suavecito585/alexandria-mcp.git
cd alexandria-mcp
npm install
npm run build

Esto toma unos 30 segundos. Cuando termine, verás aparecer una carpeta dist/. Ese es el servidor compilado.

Anota la ruta completa a esta carpeta; la necesitarás en el siguiente paso. En Mac/Linux puedes ejecutar pwd para imprimirla. En Windows, cd por sí solo imprime la ruta actual.


Paso 3: Añade Alexandria a Claude Desktop

Busca tu archivo de configuración de Claude Desktop:

  • Mac: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Ábrelo en cualquier editor de texto. Si ya tiene otros servidores MCP configurados, añade Alexandria junto a ellos. Si está vacío o es nuevo, usa esto como punto de partida:

{
  "mcpServers": {
    "alexandria": {
      "command": "node",
      "args": ["/full/path/to/alexandria-mcp/dist/index.js"],
      "env": {
        "TRANSPORT": "stdio"
      }
    }
  }
}

Reemplaza /full/path/to/alexandria-mcp con la ruta real del Paso 2.

Reinicia Claude Desktop después de guardar el archivo.

Para verificar que funcionó, pídele a Claude: "Use library_list_sources to show all available sources." Deberías ver las 61 fuentes listadas.


Paso 4: Añade tu clave de OpenAI (recomendado)

Sin esto, tienes que nombrar la fuente cada vez que busques, por ejemplo: "search arxiv for transformer papers". Con ella, puedes simplemente decir "find me papers on transformer models" y Alexandria averigua qué fuentes consultar.

Obtén tu clave en platform.openai.com/api-keys. Cuesta una fracción de centavo por búsqueda (la llamada de enrutamiento usa gpt-4o-mini, ~$0.0002 por consulta).

Añádela al bloque env en tu configuración:

"env": {
  "TRANSPORT": "stdio",
  "OPENAI_API_KEY": "sk-..."
}

Reinicia Claude Desktop de nuevo.


Paso 5: Opcional — configura el almacenamiento vectorial (para guardar texto ingerido)

library_ingest te permite fragmentar, incrustar y almacenar contenido de texto completo en una base de datos vectorial para su recuperación posterior. Esto solo es útil si estás construyendo una canalización RAG de investigación. Si solo quieres buscar y leer, omite esto por completo.

Si lo deseas:

  1. Crea un proyecto gratuito en supabase.com

  2. Ve al editor SQL y ejecuta esto:

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. Añade al bloque env de tu configuración:

"SUPABASE_URL": "https://your-project.supabase.co",
"SUPABASE_SERVICE_ROLE_KEY": "eyJ..."

Encontrarás ambos valores en tu proyecto de Supabase en Settings → API.


Paso 6: Obtén las claves de API que realmente quieres

Aquí tienes cada clave opcional, agrupada por cuánto esfuerzo requieren y qué obtienes.

Instantáneo (toma 2 minutos, rellenas el formulario y listo)

Todas estas son gratuitas. El registro es inmediato o casi inmediato.

Qué obtienes

Dónde registrarse

Nombre de la clave en la configuración

CORE — Más de 57M de artículos de texto completo en acceso abierto, la mayor colección disponible

core.ac.uk/services/api

CORE_API_KEY

Semantic Scholar — Más de 200M de artículos con recomendaciones impulsadas por IA y grafos de citas

semanticscholar.org/product/api

SEMANTIC_SCHOLAR_API_KEY

NASA ADS — El portal principal para literatura de astronomía, astrofísica y física

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

NASA_ADS_API_KEY

Smithsonian — 14M de registros en todos los museos Smithsonian (la misma clave funciona para GovInfo)

api.data.gov/signup

SMITHSONIAN_API_KEY

Springer Nature — Más de 16M de artículos en Springer y BioMed Central

dev.springernature.com

SPRINGER_OA_API_KEY y SPRINGER_META_API_KEY

Zenodo — Repositorio de investigación abierta del CERN, límites de tasa más altos

zenodo.org/account/settings/applications

ZENODO_API_KEY

BHL — Biodiversity Heritage Library, siglos de literatura de historia natural

biodiversitylibrary.org/getapikey.aspx

BHL_API_KEY

DigitalNZ — Colecciones digitales nacionales de Nueva Zelanda

digitalnz.org/developers

DIGITALNZ_API_KEY

DPLA — Digital Public Library of America

pro.dp.la/developers/api-codex

DPLA_API_KEY

Europeana — Más de 50M de artículos de museos y archivos europeos

apis.europeana.eu

EUROPEANA_API_KEY

Token de GitHub — necesario para OpenITI (más de 10k textos islámicos). No se requieren alcances especiales.

github.com/settings/tokens

GITHUB_TOKEN

Toma unos días (aprobación por correo electrónico o revisión manual)

Qué obtienes

Dónde registrarse

Nombre de la clave en la configuración

CourtListener — Jurisprudencia federal y estatal de EE. UU. en texto completo

courtlistener.com/sign-in

COURTLISTENER_API_KEY

Trove — Biblioteca Nacional de Australia, periódicos y libros digitalizados

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

TROVE_API_KEY

Caso especial: BASE (se requiere lista blanca de IP)

BASE te ofrece más de 400M de registros de más de 11,000 proveedores académicos: el índice más grande que admitimos. Es gratuito, pero requiere enviar un correo electrónico a su equipo para incluir tu dirección IP en la lista blanca. Suele tardar entre 2 y 3 días hábiles.

  1. Ve a base-search.net/about/en/contact.php

  2. Selecciona "Access BASE's HTTP API" en el menú desplegable de asunto

  3. Incluye tu dirección IP (encuéntrala en whatismyip.com) y una breve descripción de tu caso de uso (por ejemplo, "agregación de investigación no comercial")

  4. Espera su respuesta: incluirán tu IP en la lista blanca

Una vez aprobado, añade a tu configuración: "BASE_API_KEY": "" (el valor puede estar vacío si usan autenticación solo por IP, o te darán un token).

Configuración de consola (un poco más compleja)

Qué obtienes

Notas

Nombre de la clave en la configuración

Google Books — Más de 40M de libros, texto completo para títulos de dominio público

Crea un proyecto en Google Cloud Console, habilita la API de Books, crea una clave de API

GOOGLE_BOOKS_API_KEY

GovInfo — Registro del Congreso de EE. UU., Registro Federal

Regístrate en api.govinfo.gov/docs — la misma clave también funciona para Smithsonian

GOVINFO_API_KEY


Añadir claves a tu configuración

Cada clave va en el bloque env. Tu configuración final podría verse así (incluye solo las claves que realmente hayas obtenido):

{
  "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..."
      }
    }
  }
}

Recuerda reiniciar Claude Desktop cada vez que cambies la configuración.


¿Qué puedo hacer ahora?

Aquí hay algunas cosas para probar una vez que estés configurado:

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

Fuentes de un vistazo

46 fuentes no necesitan clave de API. Funcionan en el momento en que instalas:

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 (Japón)

15 fuentes necesitan una clave de API gratuita:

CORE, Semantic Scholar, NASA ADS, Smithsonian, Springer Nature, Zenodo, BHL, DigitalNZ, DPLA, Europeana, GitHub (OpenITI), CourtListener, Trove, Google Books, BASE (lista blanca de IP)


Licencia

MIT — úsala como quieras.

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

    ActivityActive
    ResponsivenessLimited 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
      250 npm
      191
      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
      36 npm
      24 PyPI
      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