@cyanheads/biorxiv-mcp-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@cyanheads/biorxiv-mcp-serversearch for preprints about CRISPR"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Public Hosted Server: https://biorxiv.caseyjhand.com/mcp
Overview
bioRxiv and medRxiv preprint metadata and full text, searchable via EuropePMC. Fetch preprints by DOI, browse by date interval or subject category, search by keyword and author, resolve journal-publication crosswalks, and extract full text from the rendered article page, from any MCP client. Runs as a stdio process, a local Streamable HTTP server, or the public hosted endpoint above.
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) |
| 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: medRxiv-MCP-Server
Capability reference
biorxiv_get_preprint tool
Batch fetch up to 10 DOIs in a single request
Accepts a bare DOI or a pasted form of one —
https://doi.org/…,doi:…, abiorxiv.org/medrxiv.orgarticle URL, avNor article-page suffix (.full,.full.pdf,.article-metrics, …) — and reports the bare DOIEach DOI returns its full revision history in
revisions[]— one API call per DOI, no enumeration loopIncludes title, authors, abstract, category, license, grant award numbers (
awards), JATS XML full-text link (jatsxmlUrl), and published journal DOI (publishedJournalDoi) once acceptedawardsholds each award value as upstream records it (one value can run several grants together), deduplicated; funder names are left out becauseapi.biorxiv.orgattributes them to unrelated organizationsScope to
biorxiv,medrxiv, orboth(defaultboth); whenboth, each DOI fans out in parallel and partial failures report per-DOI infailed[]Each
failed[]entry carries areason(not_found,invalid_doi_format,upstream_unavailable,rate_limited) and aretryableflag — a DOI is only reportednot_foundwhen every attempted server answeredA rate-limited lookup (HTTP 429) reports
reason: "rate_limited"rather than folding intoupstream_unavailable, carryingretryAfter— the wait in secondsapi.biorxiv.orgasked for
biorxiv_list_recent tool
Optional server-side category filter — pass a value from
biorxiv_list_categories, in any case, with_,-, or a space (Cell Biology,cell_biology,cell-biology)A server that answers the filter with its unfiltered listing is left out with a notice, never returned as filtered;
invalid_categorywhen no server applied itOptional
funderfilter by ROR ID, bare (021nxhr62) or ashttps://ror.org/021nxhr62, checked against the ROR pattern and checksum before any request; combines withcategoryThe funder filter is bioRxiv-only — medRxiv records carry no funder data — so
server="both"queries bioRxiv alone with a notice, andserver="medrxiv"raisesinvalid_funderA ROR ID
api.biorxiv.orghas no funder record for raisesinvalid_funder, never an empty pageFixed page size of 30 (API constraint); advance with integer
cursor(0, 30, 60, …)Abstracts are omitted by default — they are about three quarters of a page — and every other record field is returned;
include_abstract: trueadds them for the whole page, andbiorxiv_get_preprintreturns them for up to 10 DOIs per callResponse includes a
totalcount per server; a cursor past the last page is markedexhausted: truerather than reading as zero results in the intervalWhen
server="both"(default), per-server pagination state is independent ({ biorxiv: { cursor, total }, medrxiv: { cursor, total } }); one server not answering is named infailed[]while the other's page still returnsEvery attempted server failing raises a retryable
upstream_unavailable(orrate_limited) error instead of an empty page
biorxiv_search_preprints tool
Query and/or author required (author maps to an EuropePMC
AUTH:"…"field query, ANDed with the keyword query); optionaldate_from/date_torange andserverscope (defaultboth)Up to 100 results per page (default 25);
cursor_markpages through the same ranked list; a page past the last match comes back empty with a notice saying so, and a token EuropePMC does not recognize raisesinvalid_cursor_markAn EuropePMC response missing its result list is retried, never reported as zero matches; one that persists on a first page raises
search_unavailableEuropePMC powers relevance ranking (indexes new preprints within 1–2 days of posting); the bioRxiv/medRxiv API enriches matches with canonical metadata
Enriched results carry the same latest-revision fields as
biorxiv_get_preprint, includingtype,license,awards, andauthorCorrespondingInstitutionEnrichment failures degrade to EuropePMC-only metadata, surfaced via
partial_resultsand a per-recordenrichment_error(service_error,rate_limited, ornot_found); those records' abstracts come from one EuropePMC lookup keyed by their DOIs, and a failed lookup leaves them without one, with a noticeAbstracts are included by default;
include_abstract: falsedrops them from every result, enriched and fallback alike, for a response about a third the size, keeping every other fieldA EuropePMC rate limit (HTTP 429) raises a retryable
rate_limitederror carrying the origin'sRetry-Afterwait — the search itself has no metadata to fall back on, unlike enrichment
biorxiv_get_published_version tool
Uses the
/pubs/{server}/{doi}endpoint for richer metadata than thepublishedJournalDoifield onbiorxiv_get_preprintReturns journal DOI, journal name, published date, and corresponding-author institution; the output
serverfield names which server answered (never"both")Scope to
biorxiv,medrxiv, orboth(defaultboth) — the two servers share their DOI prefixes, so a DOI alone doesn't identify one10.64898/DOIs, which/pubscannot look up by preprint DOI, resolve through the preprint's own journal DOI; when the crosswalk has no record either way, that journal DOI returns alone, without journal name or date, with a notice saying soNo server answering raises a retryable
upstream_unavailable, orrate_limitedwith the origin's wait on an HTTP 429 — neverdoi_not_found, which would assert an absence nothing established
biorxiv_get_fulltext tool
Fetches the rendered HTML article page (
www.{server}.org/content/{doi}v{N}.full) and extracts Markdown — there is no keyless JATS sourceReads the latest version, or the one requested by
versionor avNsuffix on the DOI (the two must agree; a version the preprint lacks raisesversion_not_found), confirmed via the details API first; only DOI resolution fans out acrossbiorxiv/medrxiv/both(defaultboth) — the full-text fetch itself targets whichever server answered, named in the outputserverfieldLong articles page via
offset/limitcharacter chunking (defaultlimit20,000, max 50,000); response reportstotalChars,remainingChars,hasMore, and a full-articlewordCountcounted from the same Markdown, and the extracted article is cached per version so paging costs one origin fetchPDF-only preprints and blocked/challenge pages return a typed
fulltext_unavailableerror routing tobiorxiv_get_preprintAn origin rate limit (HTTP 429) — on either the article-page host or
api.biorxiv.orgduring resolution — returns a retryablerate_limitederror carrying the origin'sRetry-Afterwait, with the recovery hint naming which origin is limiting
biorxiv_list_categories tool
No API call — hardcoded static list (25 bioRxiv + 51 medRxiv categories), limited to the ones the listing API actually filters on
Use to validate category strings before passing to
biorxiv_list_recent
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 with retry and exponential backoff; a 429 is classified as a retryablerate_limitederror carrying the parsedRetry-Afterwait, with the upstream response body kept out of the payloadEuropePmcServicewraps the EuropePMC search endpoint for relevance-ranked keyword and/or author results, classified the same way on a 429BiorxivFullTextServicefetches and extracts Markdown from the rendered HTML article pages onwww.biorxiv.org/www.medrxiv.org— a distinct origin from the JSON APITwo-server fan-out via
Promise.allSettled— bothbiorxivandmedrxivqueried in parallel whenserver="both", results merged and deduplicated by DOIPolite
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 whole batch or listing callRate-limit transparency — a 429 from any upstream surfaces as
reason: "rate_limited"carrying the origin's parsedretryAfterwait, distinguished from a genericupstream_unavailableDiscriminated enrichment outputs —
biorxiv_search_preprintsresults carryenrichedplus a typedenrichment_error(service_error/rate_limited/not_found) so callers branch on data, not string parsingPaging and pagination state —
exhaustedcursors are flagged as an out-of-range artifact rather than an empty interval, andbiorxiv_get_fulltextreportstotalChars/remainingChars/hasMorefor chunked readsClean titles and abstracts — Highwire export markup is resolved to plain text on both surfaces: symbol placeholders (
{beta},{+/-},[≥]) become their characters, structured-abstract headings readResults: …, list items read• …, and figure and table blocks are dropped. The Markdown incontent[]escapes upstream text so it renders as written
Getting started
Public Hosted Instance
A public instance is available at https://biorxiv.caseyjhand.com/mcp — no installation required. Point any MCP client at it via Streamable HTTP:
{
"mcpServers": {
"biorxiv-mcp-server": {
"type": "streamable-http",
"url": "https://biorxiv.caseyjhand.com/mcp"
}
}
}Self-Hosted / Local
Add the following to your MCP client configuration file.
{
"mcpServers": {
"biorxiv-mcp-server": {
"type": "stdio",
"command": "bunx",
"args": ["@cyanheads/biorxiv-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info",
"BIORXIV_MAILTO": "your@email.com"
}
}
}
}Or with npx (no Bun required):
{
"mcpServers": {
"biorxiv-mcp-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cyanheads/biorxiv-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info",
"BIORXIV_MAILTO": "your@email.com"
}
}
}
}Or with Docker:
{
"mcpServers": {
"biorxiv-mcp-server": {
"type": "stdio",
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "-e", "BIORXIV_MAILTO=your@email.com", "ghcr.io/cyanheads/biorxiv-mcp-server:latest"]
}
}
}For Streamable HTTP, set the transport and start the server:
MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 BIORXIV_MAILTO=your@email.com bun run start:http
# Server listens at http://localhost:3010/mcpPrerequisites
Bun v1.4.0 or higher (or Node.js v24+).
Installation
Clone the repository:
git clone https://github.com/cyanheads/biorxiv-mcp-server.gitNavigate into the directory:
cd biorxiv-mcp-serverInstall dependencies:
bun installConfigure environment:
cp .env.example .env
# optionally set BIORXIV_MAILTO for polite API accessConfiguration
All configuration is validated at startup via Zod schemas in src/config/server-config.ts.
Variable | Description | Default |
| Email address included in the | — |
| Override the bioRxiv API base URL. |
|
| Override the EuropePMC base URL. |
|
| 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). |
|
| Enable OpenTelemetry instrumentation. |
|
See .env.example for the full list of optional overrides.
Running the server
Local development
Build 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 build -t biorxiv-mcp-server .
docker run --rm -e BIORXIV_MAILTO=your@email.com -p 3010:3010 biorxiv-mcp-serverThe Dockerfile defaults to HTTP transport, stateless session mode, and logs to /var/log/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.
This server cannot be deployed
Maintenance
Related MCP Connectors
Crossref MCP — wraps the Crossref REST API (academic papers, free, no auth)
PubMed MCP — wraps the NCBI E-utilities API (biomedical literature, free, no auth)
Search PubMed/Europe PMC, fetch articles and full text (PMC/EPMC/Unpaywall), citations, MeSH terms.
Search 150M+ academic works, journals, and funders via Crossref API.
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 their25-
- FlicenseNot gradedqualityCmaintenance🔍 Enable AI assistants to search and access medRxiv papers through a simple MCP interface. The medRxiv MCP Server provides a bridge between AI assistants and medRxiv's preprint repository through the Model Context Protocol (MCP). It allows AI models to search for health sciences preprints and acce9-
- AlicenseAqualityDmaintenanceUnified academic search MCP server that searches open literature (arXiv, bioRxiv, medRxiv, PMC), CNKI, and Web of Science, with browser-backed authentication, local paper library, and export to multiple formats.212MIT
- AlicenseNot gradedqualityBmaintenanceEnables querying bioRxiv and medRxiv preprints, including metadata, publication status, and submission counts, through natural language or direct tool calls.148 npmMIT