@cyanheads/biorxiv-mcp-server
Supports swappable storage backends on Cloudflare KV, R2, and D1.
Provides a prebuilt container image for running the server.
Fetches preprints and resolves journal publication records by DOI, accepting bare or pasted DOIs and article URLs.
Complements the Preprint server by covering post-publication records via EuropePMC-sourced search and metadata enrichment.
Supports Supabase as a swappable storage backend.
Public Hosted Server: https://biorxiv.caseyjhand.com/mcp
Overview
bioRxiv and medRxiv preprints, metadata and full text. Search by keyword and author, browse a date interval (optionally by subject), fetch any preprint by DOI, and see which preprints went on to journal publication.
Tools
Tool | Description |
| Fetch full metadata, abstract, revision history, and journal crosswalk for one or more preprints by DOI |
| List preprints posted or updated within a date interval, with optional server, category, and funder filters |
| Search preprints by keyword and/or author via EuropePMC for relevance ranking, enriched with bioRxiv/medRxiv metadata |
| Resolve a preprint DOI to its journal publication record (journal DOI, name, published date), or a journal article's DOI to the preprint it was posted as |
| List preprints that appeared as journal articles within a journal publication-date interval, whenever they were posted, optionally from one publisher |
| Retrieve a preprint's full text as best-effort Markdown extracted from its rendered HTML article page |
| List valid subject category strings for bioRxiv and medRxiv |
Related MCP server: mcp-biorxiv
Capability reference
biorxiv_get_preprint tool
Takes DOIs bare or pasted (
https://doi.org/…,doi:…, abiorxiv.org/medrxiv.orgarticle URL, an article-page suffix such as.full, avNor.vNrevision), scoped tobiorxiv,medrxiv, orboth(defaultboth)Accepts up to 200 entries and looks up the first 10 distinct DOIs; the rest come back in
unprocessed[]to pass in another call. A repeated DOI is looked up once, and every list keeps input orderEach preprint returns its full revision history in
revisions[]— title, authors, category, license,jatsxmlUrl,publishedJournalDoionce accepted, and theserverit was found on (biorxivormedrxiv, ready to pass back asserver). Funder names are omitted, andawardscome only from the upstream's funder listing:/detailssends no funder data, so they appear onbiorxiv_list_recentrows under afunderfilter, not hereThe abstract sits on the latest revision only: the upstream API keeps one abstract per preprint. An earlier revision's own abstract is on its article page, through
biorxiv_get_fulltextwithversionA DOI that fails lands in
failed[]with areason(not_found,invalid_doi_format,upstream_unavailable,rate_limited) and aretryableflag;not_foundonly when every attempted server answeredAfter a confirmed miss, try
server: "both"for a preprint DOI searched on only one server. If you have a journal article DOI outside the known preprint prefixes (10.1101/,10.64898/), trybiorxiv_get_published_version
biorxiv_list_recent tool
Takes a
start_date/end_dateinterval,server(defaultboth), and optionalcategory(a value frombiorxiv_list_categories) and bioRxiv-onlyfunder(a ROR ID) filters; a filter that cannot be applied raisesinvalid_categoryorinvalid_funder. The funder filter reads bioRxiv's/funderlisting, and its rows carryawards, which no other tool's records doReturns
limitrows per server (default 30, cap 30; a larger value is served as 30 with a notice, andBIORXIV_CLAMP_LIMITS=falserejects it) from an integercursorrow offset, continued at each server'snextCursor(the cursor plus the rows served); any offset works. State is tracked per server ({ biorxiv: { cursor, total, newPreprints }, medrxiv: { cursor, total, newPreprints } }); a cursor past the last page is markedexhausted: true, and a server that did not answer is named infailed[]with itsreasonandretryable, plusretryAfterwhen a 429 named a waitEvery page with rows left carries a continuation notice naming the cursor to pass
Rows are revisions:
totalcounts every version posted in the interval, whilenewPreprintscounts the preprints whose first version posted in it, as the API reports it (absent when the API sends no count)Abstracts are omitted by default;
include_abstract: trueadds them. Each is the preprint's latest-revision abstract, even on a row for an earlier revision
biorxiv_search_preprints tool
Takes
queryand/orauthor, optionaldate_from/date_toandserver(defaultboth). It requests 10 rows by default and serves alimitabove 400 as 400 with a notice (BIORXIV_CLAMP_LIMITS=falserejects it instead)The
authorfilter normalizes citation forms, dotted or not, such asBucher, GtoBucher G,Doudna, J. A.toDoudna JA,De Paepe, A LtoDe Paepe AL, andDoudna, JennifertoDoudna Jennifer. Double quotes are stripped; anauthorof quotes alone is ignored with a notice beside aqueryand refused asinvalid_argumentswithout one.queryEcho.authorshows the spelling used for the searchPass
nextCursorMarkback ascursor_markwith the same filters. A short upstream page has no continuation. A full upstream page may carry a cursor even if some rows had no DOI and were dropped; a notice counts the dropped rows, andtruncatedkeys on EuropePMC's raw rows, soshowncan sit belowcapEuropePMC ranks the matches (it indexes new preprints within 1–2 days of posting) and the bioRxiv/medRxiv API enriches the first 100 with the same fields as
biorxiv_get_preprint; records past 100 keep their EuropePMC metadata and abstract withenriched: falseandenrichment_error: "not_attempted"(to have every result enriched, repeat the search withlimit100 or less and follow each page'snextCursorMark; for a few, pass their DOIs tobiorxiv_get_preprint, up to 10 per call). A record left with EuropePMC metadata only carriesenriched: falseand anenrichment_error(service_error,rate_limited,not_found), withpartial_resultssetEach enriched record carries
**Revisions:** N — latest shownbeside its version in the text output when N is above 1, and**Revisions:** 1otherwiseAbstracts are included by default when available. Set
include_abstract: falseto omit themWhen EuropePMC confirms no matches, the notice can point out a clear syntax defect in
query, such as an unmatched parenthesis or a missing Boolean operand
biorxiv_get_published_version tool
Takes one DOI and
server(defaultboth): a preprint DOI (10.1101/,10.64898/), or a journal article's DOI, which resolves to the preprint it was posted as (10.1016/j.cell.2020.01.001→10.1101/614172);10.64898/DOIs resolve through the preprint's own journal DOIReturns the preprint DOI, journal DOI, journal name, published date, corresponding-author institution, and the
serverthat answered; if no server answers it raises a retryableupstream_unavailableorrate_limited, neverdoi_not_foundCold Spring Harbor Laboratory Press journal DOIs (
10.1101/gr.…,gad.…,lm.…) share the preprint prefix and cannot be resolved by DOI
biorxiv_list_published_versions tool
Takes a
start_date/end_dateinterval of journal publication dates andserver(defaultboth); each row matches the recordbiorxiv_get_published_versionreturns, and may be a preprint posted years earlierReturns
limitrows per server (default 25, cap 100, the API's page; a larger value is served as 100 with a notice, andBIORXIV_CLAMP_LIMITS=falserejects it) from an integercursor, continued at each server'snextCursor; a cursor past the last row is markedexhausted: true, and a server that did not answer is named infailed[]with itsreasonandretryable, plusretryAfterwhen a 429 named a waitOptional
publisher, a journal DOI prefix (10.7554for eLife), lists only the bioRxiv preprints published under it;server: "both"queries bioRxiv alone, andserver: "medrxiv"or a prefix the API does not recognize raisesinvalid_publisher. These rows carry no journal name, authors, or abstractAbstracts are omitted by default;
include_abstract: trueadds them
biorxiv_get_fulltext tool
Takes a DOI,
server(defaultboth), and an optionalversion(or avNor.vNsuffix; the two must agree, and a version the preprint lacks raisesversion_not_found); returns Markdown extracted from the rendered HTML article page, naming the answeringserverTable cells are not on the page: each table keeps its caption, and
omittedTablesnames it with the URL that serves its cellsPages via
offset/limitcharacters (default 20,000), reportingtotalChars,remainingChars,hasMore, andwordCount; PDF-only preprints and blocked pages raisefulltext_unavailable, routing tobiorxiv_get_preprintA confirmed DOI miss gives the same next steps as
biorxiv_get_preprint
biorxiv_list_categories tool
No API call — a static list of 25 bioRxiv and 51 medRxiv categories, limited to the ones the listing API filters on
Use it to pick a
categoryforbiorxiv_list_recentPreprint and crosswalk records trim and lowercase
categoryandpreprintCategoryvalues. Blank values are omitted
Features
Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.
bioRxiv-specific:
BiorxivApiServicewrapsapi.biorxiv.org(details, publications, and crosswalk endpoints) andEuropePmcServicewraps EuropePMC search, both with retry and exponential backoffBiorxivFullTextServiceextracts Markdown from the article pages onwww.biorxiv.org/www.medrxiv.orgEvery upstream retry ladder runs on what is left of the tool call's one 50 s budget, so a hung origin ends before a client's 60 s request timeout — in a classified, retryable error, or, when the step that hung is optional, in a result that says what is missing
Queries
biorxivandmedrxivin parallel whenserver="both", each result naming the server that answered; a lookup by DOI stops waiting once the server holding that DOI answersPolite
User-Agentheader including a mailto address (BIORXIV_MAILTOenv var) per Cold Spring Harbor Lab API guidelinesPairs with pubmed-mcp-server (post-publication), openalex-mcp-server (citation analytics), and crossref-mcp-server (DOI metadata)
Agent-friendly output:
Graceful partial failure — per-DOI and per-server failures land in
failed[]with a typedreasonandretryableflag instead of aborting the callNo silent empties — an
api.biorxiv.organswer without itscollectionarray is retried, then fails as a retryableupstream_unavailable, never reading as an empty pageRate-limit transparency — a 429 surfaces as
reason: "rate_limited"with the parsedretryAfterwait, distinct fromupstream_unavailableTyped enrichment status —
biorxiv_search_preprintsresults carryenrichedplus a typedenrichment_error(service_error/rate_limited/not_found)Clean titles and abstracts — export markup and symbol placeholders (
{beta},[≥]) are resolved to plain text
Getting started
Connect to the hosted instance, no install:
claude mcp add --transport http biorxiv-mcp-server https://biorxiv.caseyjhand.com/mcpOr run it locally:
claude mcp add biorxiv-mcp-server -- npx -y @cyanheads/biorxiv-mcp-serverFor other clients, add this to the MCP config file:
{
"mcpServers": {
"biorxiv-mcp-server": {
"command": "npx",
"args": ["-y", "@cyanheads/biorxiv-mcp-server"]
}
}
}A contact email in BIORXIV_MAILTO (-e BIORXIV_MAILTO=you@example.com, or an env entry) identifies your requests in the User-Agent header, as the Cold Spring Harbor Lab API guidelines ask. For Docker or a source build, see Running the server.
Configuration
All configuration is validated at startup via Zod schemas in src/config/server-config.ts.
Variable | Description | Default |
| Email address for the | — |
| Override the bioRxiv API base URL. |
|
| Override the EuropePMC base URL. |
|
| When |
|
| Override the bioRxiv website base URL (full-text HTML source for |
|
| Override the medRxiv website base URL (full-text HTML source for |
|
| Transport: |
|
| HTTP server port. |
|
| HTTP endpoint path. |
|
| Auth mode: |
|
| Log level ( |
|
| Directory for log files (Node.js only). A relative path resolves against the application root, which for an installed server is the server package's own directory. |
|
| Log each failed tool call's arguments and result, redacted by key name and capped at |
|
| Enable OpenTelemetry instrumentation. |
|
See .env.example for the full list of optional overrides.
Running the server
Local development
Requires Bun v1.4.4 or higher (or Node.js v24+).
Clone and install:
git clone https://github.com/cyanheads/biorxiv-mcp-server.git cd biorxiv-mcp-server && bun install cp .env.example .env # optionally set BIORXIV_MAILTOBuild and run:
# One-time build bun run rebuild # Run the built server bun run start:stdio # or bun run start:httpRun checks and tests:
bun run devcheck # Lint, format, typecheck, security bun run test # Vitest test suite bun run lint:mcp # Validate MCP definitions against spec
Docker
docker run --rm -e BIORXIV_MAILTO=your@email.com -p 3010:3010 ghcr.io/cyanheads/biorxiv-mcp-server:latestThe image defaults to HTTP transport, stateless session mode, and logs to /var/log/biorxiv-mcp-server; the server listens at http://localhost:3010/mcp. To run it over stdio from an MCP client, use "command": "docker" with "args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "ghcr.io/cyanheads/biorxiv-mcp-server:latest"]. To build locally, docker build -t biorxiv-mcp-server .; OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.
Project structure
Directory | Purpose |
|
|
| Server-specific environment variable parsing and validation with Zod. |
| Tool definitions ( |
|
|
|
|
|
|
| Unit and integration tests mirroring the |
Development guide
See CLAUDE.md for development guidelines and architectural rules. The short version:
Handlers throw, framework catches — no
try/catchin tool logicUse
ctx.logfor request-scoped logging,ctx.statefor tenant-scoped storageRegister new tools via the barrel in
src/mcp-server/tools/definitions/index.tsWrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields
Contributing
Issues are welcome. Run checks and tests before submitting:
bun run devcheck
bun run testLicense
Apache-2.0 — see LICENSE for details.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Search Crossref academic papers and DOI metadata through one unofficial MCP server.
Peer-reviewed scientific paper & arXiv preprint search MCP with citations, abstracts & PDF links.
Search and read arXiv research papers via a hosted, read-only MCP server.
Search OpenAlex scholarly works with citation counts and DOIs via a hosted read-only MCP server.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenance🔍 Enable AI assistants to search and access bioRxiv papers through a simple MCP interface. The bioRxiv MCP Server provides a bridge between AI assistants and bioRxiv's preprint repository through the Model Context Protocol (MCP). It allows AI models to search for biology preprints and access their27-
- AlicenseNot gradedqualityCmaintenanceEnables querying bioRxiv and medRxiv preprints, including metadata, publication status, and submission counts, through natural language or direct tool calls.56 npmMIT
- AlicenseAqualityDmaintenanceMCP server that turns a medRxiv DOI into clean markdown full text and provides free, relevance-ranked preprint search via Europe PMC.21Apache 2.0
- AlicenseAqualityDmaintenanceProvides access to bioRxiv and medRxiv preprints via a unified tool with seven methods, including keyword search, metadata retrieval, and statistics.11MIT