Skip to main content
Glama

Alexandria MCP

License: MIT Node: >=22 MCP Compatible

Alexandria는 Claude(또는 모든 MCP 호환 AI)가 61개의 공공 디지털 라이브러리(학술 논문, 고전 도서, 법률 기록, 역사 기록 보관소, 정부 데이터베이스 및 소프트웨어 문서)에 단일 통합 인터페이스를 통해 액세스할 수 있도록 하는 MCP 서버입니다.

다음과 같이 질문할 수 있습니다:

"트랜스포머 모델의 어텐션 메커니즘에 관한 최근 논문을 찾아줘" "덕의 본질에 관한 고대 그리스 텍스트를 검색해줘" "제2차 세계 대전 당시의 미국 군사 기록을 찾아봐" "fastify 웹 프레임워크에 대한 문서를 가져와"

그러면 자동으로 검색할 라이브러리를 파악하고, 쿼리를 병렬로 실행하며, 통합된 결과를 반환합니다.


시작하기 전에: 실제로 무엇이 필요한가요?

솔직하게 말씀드리겠습니다:

46개의 소스는 API 키 없이 작동합니다. arXiv, Project Gutenberg, 옥스퍼드 저장소, 케임브리지 저장소, Europe PMC, PLOS, OpenAlex, 미국 국립 기록 보관소, 영국 법률 등 수십 개의 소스를 검색하고 싶다면 지금 바로 아무것도 가입하지 않고도 사용할 수 있습니다.

경험을 실질적으로 향상시키는 유일한 키는 OpenAI API 키입니다. 이 키는 자연어 검색(library_ask) 기능을 구동합니다. 이 키가 없어도 특정 소스를 직접 검색할 수는 있지만, 직접 소스 이름을 지정해야 합니다.

나머지는 모두 선택 사항입니다. 각 추가 키는 특정 소스의 잠금을 해제합니다. 연구 중인 주제와 관련된 키만 선택하고 나머지는 건너뛰세요.


Related MCP server: Academic MCP

1단계: Node.js 22 이상이 설치되어 있는지 확인하세요

터미널을 열고 다음을 확인하세요:

node --version

v22.x.x 이상이 표시되면 준비가 된 것입니다. 그렇지 않다면 nodejs.org에서 최신 LTS 버전을 다운로드하세요.


2단계: Alexandria 복제 및 빌드

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

약 30초 정도 소요됩니다. 완료되면 dist/ 폴더가 나타납니다. 이것이 컴파일된 서버입니다.

이 폴더의 전체 경로를 기록해 두세요. 다음 단계에서 필요합니다. Mac/Linux에서는 pwd를 실행하여 경로를 출력할 수 있습니다. Windows에서는 cd만 입력하면 현재 경로가 출력됩니다.


3단계: Claude Desktop에 Alexandria 추가

Claude Desktop 설정 파일을 찾으세요:

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

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

텍스트 편집기로 엽니다. 이미 다른 MCP 서버가 구성되어 있다면 그 옆에 Alexandria를 추가하세요. 비어 있거나 새로 만드는 경우 다음을 시작점으로 사용하세요:

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

/full/path/to/alexandria-mcp를 2단계에서 확인한 실제 경로로 바꾸세요.

파일을 저장한 후 Claude Desktop을 다시 시작하세요.

작동하는지 확인하려면 Claude에게 *"Use library_list_sources to show all available sources."*라고 물어보세요. 61개의 모든 소스가 나열되어야 합니다.


4단계: OpenAI 키 추가 (권장)

이 키가 없으면 검색할 때마다 소스 이름을 지정해야 합니다(예: "search arxiv for transformer papers"). 키가 있으면 그냥 *"find me papers on transformer models"*라고 말하기만 하면 Alexandria가 확인할 소스를 파악합니다.

platform.openai.com/api-keys에서 키를 받으세요. 검색당 아주 적은 비용이 듭니다(라우팅 호출은 gpt-4o-mini를 사용하며, 쿼리당 약 $0.0002입니다).

설정의 env 블록에 추가하세요:

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

Claude Desktop을 다시 시작하세요.


5단계: 선택 사항 — 벡터 저장소 설정 (수집된 텍스트 저장용)

library_ingest를 사용하면 전체 텍스트 콘텐츠를 청크로 나누고, 임베딩하고, 나중에 검색할 수 있도록 벡터 데이터베이스에 저장할 수 있습니다. 이는 연구 RAG 파이프라인을 구축하는 경우에만 유용합니다. 단순히 검색하고 읽기만 하려면 이 단계를 완전히 건너뛰세요.

사용하려는 경우:

  1. supabase.com에서 무료 프로젝트를 만드세요.

  2. SQL 편집기로 이동하여 다음을 실행하세요:

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. 설정의 env 블록에 추가하세요:

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

두 값 모두 Supabase 프로젝트의 Settings → API에서 찾을 수 있습니다.


6단계: 필요한 API 키 선택

다음은 노력 대비 얻는 이점에 따라 분류된 모든 선택적 키입니다.

즉시 사용 가능 (2분 소요, 양식 작성 완료)

모두 무료입니다. 등록은 즉시 또는 거의 즉시 완료됩니다.

혜택

등록 위치

설정의 키 이름

CORE — 5,700만 개 이상의 전체 텍스트 OA 논문, 가장 큰 컬렉션

core.ac.uk/services/api

CORE_API_KEY

Semantic Scholar — AI 기반 추천 및 인용 그래프를 포함한 2억 개 이상의 논문

semanticscholar.org/product/api

SEMANTIC_SCHOLAR_API_KEY

NASA ADS — 천문학, 천체 물리학 및 물리학 문헌을 위한 최고의 포털

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

NASA_ADS_API_KEY

Smithsonian — 모든 스미소니언 박물관의 1,400만 개 기록 (GovInfo와 동일한 키 사용)

api.data.gov/signup

SMITHSONIAN_API_KEY

Springer Nature — Springer 및 BioMed Central의 1,600만 개 이상의 기사

dev.springernature.com

SPRINGER_OA_API_KEY 및 SPRINGER_META_API_KEY

Zenodo — CERN의 오픈 연구 저장소, 더 높은 속도 제한

zenodo.org/account/settings/applications

ZENODO_API_KEY

BHL — 생물 다양성 유산 도서관, 수 세기에 걸친 자연사 문헌

biodiversitylibrary.org/getapikey.aspx

BHL_API_KEY

DigitalNZ — 뉴질랜드의 국가 디지털 컬렉션

digitalnz.org/developers

DIGITALNZ_API_KEY

DPLA — 미국 디지털 공공 도서관

pro.dp.la/developers/api-codex

DPLA_API_KEY

Europeana — 유럽 박물관 및 기록 보관소의 5,000만 개 이상의 항목

apis.europeana.eu

EUROPEANA_API_KEY

GitHub Token — OpenITI(1만 개 이상의 이슬람 텍스트)에 필요. 특별한 범위는 필요 없음.

github.com/settings/tokens

GITHUB_TOKEN

며칠 소요 (이메일 승인 또는 수동 검토)

혜택

등록 위치

설정의 키 이름

CourtListener — 미국 연방 및 주 판례 전문

courtlistener.com/sign-in

COURTLISTENER_API_KEY

Trove — 호주 국립 도서관, 디지털화된 신문 및 도서

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

TROVE_API_KEY

특수 사례: BASE (IP 화이트리스트 필요)

BASE는 11,000개 이상의 학술 제공업체로부터 4억 개 이상의 기록을 제공하며, 우리가 지원하는 가장 큰 인덱스입니다. 무료이지만 IP 주소를 화이트리스트에 추가하려면 팀에 이메일을 보내야 합니다. 보통 영업일 기준 2~3일이 소요됩니다.

  1. base-search.net/about/en/contact.php로 이동하세요.

  2. 주제 드롭다운에서 **"Access BASE's HTTP API"**를 선택하세요.

  3. IP 주소(whatismyip.com에서 확인)와 사용 사례에 대한 간단한 설명(예: "비상업적 연구 집계")을 포함하세요.

  4. 회신을 기다리세요. IP를 화이트리스트에 추가해 줄 것입니다.

승인되면 설정에 추가하세요: "BASE_API_KEY": "" (IP 전용 인증을 사용하는 경우 값은 비워둘 수 있거나, 토큰을 제공받을 것입니다).

콘솔 설정 (약간 더 복잡함)

혜택

참고

설정의 키 이름

Google Books — 4,000만 권 이상의 도서, 퍼블릭 도메인 제목의 전체 텍스트

Google Cloud Console에서 프로젝트를 만들고, Books API를 활성화하고, API 키를 만드세요

GOOGLE_BOOKS_API_KEY

GovInfo — 미국 의회 기록, 연방 관보

api.govinfo.gov/docs에서 등록하세요. 동일한 키가 Smithsonian에도 작동합니다

GOVINFO_API_KEY


설정에 키 추가

모든 키는 env 블록에 들어갑니다. 최종 설정은 다음과 같을 수 있습니다(실제로 받은 키만 포함하세요):

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

설정을 변경할 때마다 Claude Desktop을 다시 시작하는 것을 잊지 마세요.


이제 무엇을 할 수 있나요?

설정이 완료되면 다음을 시도해 보세요:

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

소스 한눈에 보기

46개의 소스는 API 키가 필요하지 않습니다. 설치 즉시 작동합니다:

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개의 소스는 무료 API 키가 필요합니다:

CORE, Semantic Scholar, NASA ADS, Smithsonian, Springer Nature, Zenodo, BHL, DigitalNZ, DPLA, Europeana, GitHub (OpenITI), CourtListener, Trove, Google Books, BASE (IP 화이트리스트)


라이선스

MIT — 원하는 대로 사용하세요.

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