Skip to main content
Glama

rxiv-mcp

A Model Context Protocol server that lets Claude (or any MCP client) search and read preprints on arXiv, bioRxiv, and medRxiv.

No API keys. No native dependencies. Runs over stdio with Node 20+.

Tools

Tool

What it does

arxiv_search

Search arXiv by plain text or raw arXiv query syntax (ti:, au:, abs:, cat:, booleans), with category and date filters.

arxiv_get_paper

Metadata and abstract for one or more arXiv IDs or URLs.

arxiv_get_full_text

Full text of a paper, from arXiv's HTML rendering (LaTeX math preserved) or the PDF. Paged.

biorxiv_search

Keyword search across bioRxiv and medRxiv, with server, date, and sort (relevance / date / citations) filters.

biorxiv_get_preprint

Official bioRxiv/medRxiv record for a DOI: all versions, license, category, and the published journal version if any.

biorxiv_list_recent

Browse what was posted in a date window, optionally by subject category.

biorxiv_get_full_text

Full text of a bioRxiv/medRxiv preprint (JATS XML or PDF). Paged.

Full-text tools return up to max_chars characters (default 40,000) and report truncated and next_offset so the client can page through long papers.

Related MCP server: preprint-fulltext

Install

Claude Code

# from a local clone
git clone https://github.com/sakzgupzzz/rxiv-mcp.git
cd rxiv-mcp && npm install          # builds dist/ via the prepare script
claude mcp add --scope user rxiv -- node /absolute/path/to/rxiv-mcp/dist/index.js

# or straight from GitHub, no clone
claude mcp add --scope user rxiv -- npx -y github:sakzgupzzz/rxiv-mcp

Claude Desktop / other MCP clients

Add to claude_desktop_config.json (or the equivalent for your client):

{
  "mcpServers": {
    "rxiv": {
      "command": "npx",
      "args": ["-y", "github:sakzgupzzz/rxiv-mcp"]
    }
  }
}

Examples of what to ask

  • "Find the five most-cited bioRxiv preprints on CRISPR base editing from 2025."

  • "What was posted to medRxiv in epidemiology in the last three days?"

  • "Read arXiv 2410.12345 and summarise the method section."

  • "Has bioRxiv 10.1101/2025.05.19.654892 been published in a journal?"

How it works

  • arXiv uses the official arXiv API (Atom feed). Requests are spaced at least 3 seconds apart per arXiv's rate-limit guidance. Full text comes from arxiv.org/html/<id> when the paper has an HTML rendering, otherwise the PDF is parsed with unpdf.

  • bioRxiv / medRxiv metadata, version history, and published-version lookups use the official bioRxiv API. That API has no keyword search and only lists by DOI or date range, so:

    • Search goes through Europe PMC, which indexes every bioRxiv and medRxiv preprint with abstracts and citation counts. You can use Europe PMC query syntax directly (TITLE:"...", AUTH:"...", ABSTRACT:"...").

    • Full text also comes from Europe PMC (JATS XML, then PDF), because biorxiv.org rate-limits scripted downloads. Full text typically appears there a few days after a preprint is posted.

  • Every outbound request carries a descriptive User-Agent, is throttled per host, and retries on 429/5xx.

Development

npm install
npm run build        # tsc -> dist/
npm test             # starts the server, checks the tool list (offline)
npm run smoke        # exercises every tool against the live APIs

Source layout:

src/index.ts     server entry (stdio)
src/tools.ts     tool definitions and input schemas
src/arxiv.ts     arXiv API client + full text
src/biorxiv.ts   bioRxiv API + Europe PMC clients
src/text.ts      HTML / JATS to text, paging
src/pdf.ts       PDF text extraction
src/http.ts      fetch wrapper: throttling, retries, User-Agent

License

MIT

Available Tools

7 tools
arxiv_get_full_textRead arXiv paper full textA
Read-onlyIdempotent

Return the full text of an arXiv paper as plain text (from arXiv's HTML rendering when available, otherwise extracted from the PDF). Long papers are paged: check truncated and pass next_offset as offset to continue.

Inputs: id (required), offset, max_chars.

arxiv_get_paperGet arXiv paper metadataA
Read-onlyIdempotent

Fetch metadata and abstract for one or more arXiv papers by ID. Accepts 2410.12345, 2410.12345v2, arXiv:2410.12345, old-style hep-th/9901001, or any arxiv.org abs/pdf/html URL.

Inputs: ids (required).

biorxiv_get_full_textRead bioRxiv/medRxiv preprint full textA
Read-onlyIdempotent

Return the full text of a bioRxiv or medRxiv preprint as plain text, using the copy held by Europe PMC (JATS XML, falling back to PDF). Accepts a DOI, a preprint URL, or a Europe PMC PPR id. Full text usually appears a few days after posting; if it is not available yet the error says so. Long papers are paged: check truncated and pass next_offset as offset to continue.

Inputs: id (required), offset, max_chars, include_references.

biorxiv_get_preprintGet bioRxiv/medRxiv preprint detailsA
Read-onlyIdempotent

Fetch a preprint by DOI from the official bioRxiv/medRxiv API: title, authors, category, license, abstract, every posted version with dates, and the published journal version if one exists. Accepts a bare DOI (10.1101/2024.01.01.573711), a doi.org link, or a biorxiv.org/medrxiv.org content URL (version suffix like v2 is honoured). Auto-detects the server unless server is given.

Inputs: doi (required), server.

biorxiv_list_recentList recent bioRxiv/medRxiv preprintsA
Read-onlyIdempotent

List preprints posted to bioRxiv or medRxiv in a date window, optionally filtered by subject category (e.g. neuroscience, bioinformatics, genomics, cell biology, immunology; medRxiv: epidemiology, oncology, infectious diseases). Defaults to today. Pages hold 30 records; pass next_cursor as cursor to continue. Use this for browsing what is new; use biorxiv_search for keyword queries.

Inputs: days, cursor, server, date_to, +2 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 7 tools

    Disambiguation4/5

    The arxiv_/biorxiv_ prefixes cleanly partition the tool set into two families, and within each family search / metadata / full-text are clearly different actions. The only mild overlaps are biorxiv_search vs biorxiv_list_recent (browsing vs keyword) and the two metadata fetchers, but the descriptions explicitly disambiguate them.

    Naming Consistency4/5

    Names consistently follow prefix_verb_noun (arxiv_get_paper, biorxiv_get_full_text, biorxiv_list_recent), so the pattern is predictable. The one asymmetry is the metadata-fetch verb: get_paper for arXiv vs get_preprint for bioRxiv, which is a minor, defensible deviation given the different resource types.

    Tool Count5/5

    Seven tools is well-scoped for a two-repository preprint server: three arXiv operations and four bioRxiv/medRxiv operations, each earning its place with no redundancy.

    Completeness4/5

    Search, metadata retrieval, full-text retrieval, and pagination are covered for both sources, plus a recent-listings feed for bioRxiv/medRxiv. The main gap is the absence of an equivalent 'list recent' or date-browse tool for arXiv (and no citation/reference traversal), though agents can approximate arXiv browsing with search date filters.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables querying bioRxiv and medRxiv preprints, including metadata, publication status, and submission counts, through natural language or direct tool calls.
      66 npm
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables coding agents to retrieve full text, metadata, and search preprints from bioRxiv, medRxiv, and arXiv via four stdio tools: search_preprints, get_fulltext, get_metadata, and resolve.
      4
      24 PyPI
      4
      BSD 3-Clause
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables Claude and other MCP-compatible clients to search for academic papers and fetch detailed metadata, abstracts, and available full text from Semantic Scholar and Crossref.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables Claude and other MCP-compatible clients to search and retrieve academic paper information from Semantic Scholar and Crossref, including metadata, abstracts, and full text when available. It exposes tools for paper search, topic/date-range search, and fetching details by DOI or Semantic Scholar ID.
      -