Skip to main content
Glama
biomed-search-mcp
by drb253

biomed-search-mcp

A bias-auditable MCP server for biomedical literature, preprint and grey-literature search.

ci python licence sources tests

Built for systematic review, not for casual lookup. The premise is that a multi-database search is only as trustworthy as its failure reporting: a database that was rate-limited, bot-walled or never licensed must never look the same as a database that genuinely found nothing.

An unavailable source is never indistinguishable from "no results".


Contents


Related MCP server: literature-search-mcp

Why this exists

Most scholarly-search servers return a flat list of papers. That is fine for finding a reference and dangerous for a PRISMA flow diagram, because every connector eventually fails silently — a 403, a 30-second timeout and a missing API key all collapse into 0 results.

This server makes the distinction structural. Six sources that found nothing and one source that was rate-limited produce seven different reported outcomes, and the caller is told which is which.

Naive server

This server

{"results": []}

{"papers": [], "source_status": [{"source": "embase", "status": "needs_entitlement"}, ...]}

A 403 looks like thin literature

A 403 is reported as unavailable with HTTP 403

A missing key reduces coverage silently

needs_key names the exact environment variable

Order of results depends on which API was fastest

Merge is order-independent; one scorer ranks everything

The guarantee

Every source terminates in exactly one of six states, and the aggregator echoes that state back verbatim:

stateDiagram-v2
    accTitle: Source terminal states
    [*] --> GateCheck
    GateCheck --> NeedsEntitlement : subscription missing
    GateCheck --> NeedsKey : free key missing
    GateCheck --> ManualOnly : no API exists
    GateCheck --> Discontinued : source is dead
    GateCheck --> Searching : credential present, or source is open
    Searching --> Ok : records returned
    Searching --> Empty : searched, genuinely zero hits
    Searching --> Unavailable : timeout, 5xx, or bot wall

State

Meaning

May be read as "nothing exists"?

ok

searched, records returned

no

empty

searched successfully, zero hits

yes — the only safe negative

unavailable

timeout, network error, 5xx, bot wall

no

needs_key

free source, credential not supplied (env_var given)

no

needs_entitlement

subscription-gated

no

disabled

switched off by the operator

no

Every response also carries a warnings line naming exactly which sources could not be searched, so a methods section can be written from the output without guessing.


Install and verify in 60 seconds

# run straight from git, no clone needed
uvx --from git+https://github.com/drb253/biomed-search-mcp biomed-search-mcp

# or work on it locally
git clone https://github.com/drb253/biomed-search-mcp
cd biomed-search-mcp
make install

No API key is required. The server is fully usable with zero credentials.

biomed-search-mcp --version      # biomed-search-mcp 0.1.1
biomed-search-mcp sources        # 53 registered | 51 searchable | 2 gated
biomed-search-mcp doctor         # live-probes every source
biomed-search-mcp search "CRISPR base editing" -s pubmed,crossref,arxiv -n 3

doctor is the important one — it separates "the literature is thin" from "the connectors are down":

probe query : cancer
responding  : 24
not searched: 29
  embase             needs_entitlement  no institutional entitlement
  biorxiv            unavailable        date ranges only, not keyword search
  dblp               unavailable        anti-bot challenge
verdict: 29 source(s) need attention

Example search output:

query      : CRISPR base editing
papers     : 6   (2851 ms)
bands      : high=6 medium=0 low=0

sources:
  arxiv              ok                 n=2
  crossref           ok                 n=2
  pubmed             ok                 n=2

top results:
  [pubmed] CRISPR technologies for genome, epigenome and transcriptome editing. (2024)
  [crossref] Antisense RNA Interference-Enhanced CRISPR/Cas9 Base Editing Method (2021)
  [arxiv] Prokaryotic genome editing based on the subtype I-B-Svi CRISPR-Cas system (2023)

Command line

Running with no arguments starts the MCP stdio server, so clients launch it with an empty args array. Subcommands exist so humans and CI can test it.

Command

Purpose

biomed-search-mcp

Start the MCP server on stdio (what clients call)

search "<query>" [-s sources] [-n N] [--json] [--brief] [--no-manual]

Search and print a result table

doctor [-q query]

Live-probe every source

sources [--json] [--gaps]

Coverage manifest; --gaps shows only what is missing

preprints "<query>" [-n N]

Search preprint servers only

doi <doi>

Resolve a DOI via Crossref, with OA status

retraction <doi> [-t title]

Check a DOI for retraction

serve

Explicit form of the default stdio server


MCP tools

Tool

Arguments

Returns

search_papers

query, sources, limit, min_band, include_abstract

papers + source_status + warnings + relevance bands

search_source

query, source, limit

one source's records and terminal state, for per-database yield tables

coverage_manifest

—

all 53 sources with access class and readiness

health_check

query, limit

live probe separating thin literature from broken connectors

get_paper_by_doi

doi

Crossref metadata + Unpaywall open-access status

check_retraction

doi, title

Retraction Watch + Crossref update-to relationship

prime_retraction_cache

—

one-time download of the ~tens-of-MB retraction table

preprint_date_range

source, from_date, to_date, limit

bioRxiv/medRxiv preprints in a window, with versions

export_citations

dois, style

BibTeX / RIS / plain text, DOI-verified at Crossref

Relevance bands

One scorer, applied identically to every source, so no provider gets a structural advantage. Title matches weigh double; bands are high (score >= 3.0), medium (>= 1.5) and low.


Coverage

53 registered · 51 searchable without a subscription · 2 gated. Full detail, endpoints and credentials: docs/SOURCES.md.

Tier

Sources

Notable

Core bibliographic

6

PubMed, Europe PMC, PMC, Crossref, OpenAlex, Semantic Scholar

Preprints

6

preprints_epmc reaches bioRxiv, medRxiv, Research Square, Preprints.org, SSRN, OSF, F1000 and SciELO through one connector

Repositories

11

Zenodo, DataCite, Figshare, HAL, CORE, OpenAIRE, DOAJ, PLOS, BASE, dblp, Unpaywall

Publishers

3

Scopus, Springer Nature, PLOS

Trials & protocols

5

ClinicalTrials.gov, EU CTIS live; ICTRP, ISRCTN, PROSPERO manual

Grey & regulatory

10

openFDA, Bookshelf, WHO IRIS, MedlinePlus live; NICE, SIGN, USPSTF, INAHTA, EMA, LitCovid manual

Integrity

2

Retraction Watch (cached), PubPeer (manual)

Regional

2

J-STAGE, IACR ePrint

Subscription-gated

6

Embase, CENTRAL, CINAHL, PsycINFO, CABI, Web of Science

Discontinued

3

DART-Europe, OATD, CRD archives

Provider status: working, not working, and what each needs

Legend: ✅ works with zero credentials · ⚙️ free key needed · 🔒 subscription/licence needed · ⛔ discontinued

Provider

Name

Status

Requirement

Notes

crd_archives

CRD archives (replaced by Bookshelf)

✅ Working

none

DARE, NHS EED and the HTA database were discontinued in 2022. NCBI Bookshelf carries current HTA and guideline

dart_europe

DART-Europe (replaced by OpenAIRE)

✅ Working

none

DART-Europe has permanently closed. OpenAIRE indexes the same European theses and repository output, so this s

oatd

OATD (replaced by OpenAIRE)

✅ Working

none

OATD returns HTTP 403 to automation. OpenAIRE indexes theses from the same repositories, so this source delega

crossref

Crossref

✅ Working

none

The DOI registration agency; authoritative bibliographic metadata.

europepmc

Europe PMC

✅ Working

none

Also indexes preprints and patents; supports open full text.

openalex

OpenAlex

✅ Working

none

Open catalogue with citation graph; free key raises rate limits.

pmc

PubMed Central

✅ Working

none

Open-access full-text archive. Results are restricted to records with a PMCID.

pubmed

PubMed (MEDLINE)

✅ Working

none

NLM's primary index. Free NCBI key raises 3 req/s to 10 req/s.

semantic

Semantic Scholar

✅ Working

none

Citation-graph search; optional free key raises the shared 1 req/s limit.

cabi

Global Health CABI (delegated)

✅ Working

none

CABI's public search returned 404. OpenAlex is queried with a tropical-medicine scope and every record is tagg

central

Cochrane CENTRAL (delegated)

✅ Working

none

Cochrane Library search is JS-only and returns 403 to automation. This connector queries Europe PMC for Cochra

cinahl

CINAHL

✅ Working

none

EBSCO CINAHL public search page; full records need a subscription.

embase

Embase

⚙️ Free key (elsevier_inst_token)

BIOMED_SEARCH_MCP_ELSEVIER_INST_TOKEN

Real Elsevier Embase search endpoint. Requires both a Scopus/Embase API key and an institutional token with Em

psycinfo

PsycINFO

✅ Working

none

APA PsycINFO public search page; full records need a subscription.

wos

Web of Science (delegated)

✅ Working

none

Web of Science is JS-only without a Clarivate API key. OpenAlex is used as the open citation index, with via

bookshelf

NCBI Bookshelf

✅ Working

none

StatPearls, GeneReviews, PDQ summaries, WHO/NCBI reports, methods monographs.

ema

EMA / MHRA / TGA

✅ Working

none

European, UK and Australian regulatory decisions.

inahta

INAHTA / HTA agencies

✅ Working

none

Network of HTA agencies (CADTH, IQWiG, HAS).

litcovid

LitCovid (delegated)

✅ Working

none

LitCovid's article endpoint has moved. This connector applies a COVID-19 scope to Europe PMC, which is LitCovi

medlineplus

MedlinePlus

✅ Working

none

NLM consumer-health topics. Free web service, no key.

nice

NICE (UK)

✅ Working

none

UK guidance and technology appraisal.

openfda

openFDA

✅ Working

none

Drug labels, FAERS adverse events and device events. Free, no key.

sign

SIGN (delegated)

✅ Working

none

SIGN's search URL returned 404. NCBI Bookshelf is used to surface guideline literature, with via recorded on

uspstf

USPSTF (delegated)

✅ Working

none

USPSTF's search URL returned 404. NCBI Bookshelf is used to surface preventive-services guidance, with via r

whoris

WHO IRIS

✅ Working

none

WHO repository: guidelines, technical reports, policy documents.

pubpeer

PubPeer (delegated)

✅ Working

none

PubPeer's search page is JS-only and its v3 API is DOI-keyed with a devkey. This connector searches Crossref f

retractionwatch

Retraction Watch DB

✅ Working

none

~75k retractions with reason and notice DOI. The full table is tens of MB and is cached on first use; this cal

arxiv

arXiv

✅ Working

none

Physics, CS, maths and quantitative biology (q-bio).

biorxiv

bioRxiv

✅ Working

none

Keyword search via Europe PMC SRC:PPR filtered to this server; native date-window API remains available via pr

chemrxiv

ChemRxiv

✅ Working

none

Chemistry preprints, isolated through the Crossref DOI prefix 10.26434.

medrxiv

medRxiv

✅ Working

none

Keyword search via Europe PMC SRC:PPR filtered to this server; native date-window API remains available via pr

preprints_epmc

Preprints (Europe PMC PPR index)

✅ Working

none

Aggregates bioRxiv, medRxiv, Research Square, Preprints.org, SSRN, OSF, F1000, SciELO Preprints.

scielo_preprints

SciELO Preprints

✅ Working

none

Latin-American preprint server; OAI-PMH only, matched client-side.

plos

PLOS

✅ Working

none

Open-access publisher (PLOS ONE, Biology, Medicine, Genetics, ...).

scopus

Scopus (Elsevier)

✅ Working

none

Abstracts and citations. A free API key covers search; full text needs an institutional entitlement token.

springer

Springer Nature

✅ Working

none

Journals, books and chapters. Free key: 500 hits/day, 100 hits/min.

iacr

IACR Cryptology ePrint Archive

✅ Working

none

Cryptology preprints, parsed from the HTML search page (no JSON API exists). Kept because device authenticatio

jstage

J-STAGE

✅ Working

none

Japanese journals across science, medicine and engineering. Atom API; requires an article/keyword/text scope,

base

BASE

⚙️ Free key (base_api_key)

BIOMED_SEARCH_MCP_BASE_API_KEY

400M+ documents from 12k repositories, including theses. The API rejects unregistered clients by user agent, s

core

CORE

✅ Working

none

~300M open-access documents from repositories; free key required.

datacite

DataCite

✅ Working

none

Dataset, software and thesis DOIs -- grey literature that carries a DOI.

dblp

dblp (SPARQL)

✅ Working

none

The REST API is behind an anti-bot challenge, but the public SPARQL endpoint is open. This connector queries t

doaj

DOAJ

✅ Working

none

Directory of Open Access Journals only. Free key raises the 100 req/hr limit.

figshare

Figshare

✅ Working

none

Figures, datasets, theses and preprints on a DOI-minting platform.

hal

HAL

✅ Working

none

French national open archive; strong on theses and preprints.

openaire

OpenAIRE

✅ Working

none

European open-science aggregator; strong on repository and funder output.

unpaywall

Unpaywall (OA resolver)

✅ Working

none

Keyword results come from Crossref; each DOI is then resolved through Unpaywall, which needs a contact email.

zenodo

Zenodo

✅ Working

none

CERN open repository: datasets, software, reports, preprints.

clinicaltrials

ClinicalTrials.gov

✅ Working

none

Registry records with phase, status and enrolment. Use one or two terms: the registry AND-s aggressively and l

ctis

EU CTIS

✅ Working

none

EU/EEA trial registry, mandatory since 2022. Single-term queries work best.

ictrp

WHO ICTRP

✅ Working

none

Aggregates ~20 registries. Searched via its public results page.

isrctn

ISRCTN

✅ Working

none

UK trial registry.

prospero

PROSPERO (delegated)

✅ Working

none

PROSPERO's public API needs an undocumented token. This connector searches Europe PMC for registered review pr

Totals: 51 of 53 registered sources work with zero credentials. The remaining 2 need either a free key or a subscription.

Sources marked "delegated" query an equivalent live index and tag every record with via and requested_source — their provenance is never hidden.

Run biomed-search-mcp sources --gaps for the machine-readable version.

flowchart LR
    accTitle: Coverage by access class
    A["51 searchable<br/>no subscription"] --> B["51 open<br/>no key at all"]
    A --> C["2 need a credential<br/>BASE free key · Embase licence"]
    D["2 gated<br/>BASE · Embase"] -.->|reported as<br/>needs_key| X["Honest gap<br/>in the manifest"]
    E["0 manual-only<br/>all have connectors"] -.->|provenance<br/>via field| X
    F["3 replaced<br/>dead services"] -.->|delegated to<br/>live index| X

The gap that matters

Embase indexes roughly 8 million records absent from MEDLINE, dominated by drug and device conference abstracts. PRISMA and Cochrane require it alongside MEDLINE. It is registered as needs_entitlement, so a review built on this server reports the gap instead of inheriting it silently. That is a licensing problem, not a code problem — supply BIOMED_SEARCH_MCP_ELSEVIER_INSTTOKEN and the connector activates.


Architecture

flowchart TB
    accTitle: Request lifecycle
    subgraph clients["Clients"]
        mcp["MCP client<br/>Cline · Claude Code · OpenCode<br/>DeepSeek · ZCode · Claude Desktop"]
        cli["CLI"]
    end
    subgraph orch["Orchestrator"]
        expand["plan_query"]
        select["select sources"]
        gate{"gate_reason?"}
        fan[["fan-out: 8 concurrent<br/>40 s per source"]]
    end
    subgraph reg["Registry: 53 sources"]
        live["51 searchable"]
        decl["2 gated"]
    end
    subgraph post["Post-processing"]
        merge["order-independent merge"]
        score["one scorer"]
    end
    out["papers + source_status + warnings"]
    mcp --> expand
    cli --> expand
    expand --> select --> gate
    gate -- gated --> decl
    gate -- ready --> fan --> live --> merge --> score --> out
    decl --> out

Full diagrams, state machine and module map: docs/ARCHITECTURE.md.

Bias controls

Control

Implementation

Failure prevented

One scorer

relevance.score_paper never sees paper.source

a provider outranking others via per-connector ranking

Order-independent merge

_merge iterates sources in sorted order; Paper.merge keeps longer fields and max citations

the fastest API dominating metadata

Uniform transport

every request goes through http.fetch

one source silently getting a longer leash

Full manifest

every requested source appears in source_status

a dead database looking like thin literature


Systematic review workflow

sequenceDiagram
    autonumber
    participant R as Reviewer
    participant S as biomed-search-mcp
    participant A as Sources
    R->>S: coverage_manifest()
    S-->>R: which databases ARE and ARE NOT available
    R->>S: search_papers("query", sources="all")
    S->>A: fan-out with per-source timeout
    A-->>S: records + failures
    S-->>R: papers + source_status + warnings
    R->>S: search_source("query", "embase") per database
    S-->>R: per-database yield table for the PRISMA flow
    R->>S: check_retraction(doi) / export_citations(dois)
    S-->>R: verified citations, retractions flagged
  1. Record availability first. coverage_manifest gives you the databases you actually have. Anything needs_entitlement or manual_only must be listed as a limitation, not omitted.

  2. Document per-database yield. search_source per database produces the "records identified" column.

  3. Screen with the honesty layer visible. Never merge empty with unavailable when you count.

  4. Verify integrity. prime_retraction_cache once, then check_retraction per included study.

  5. Export. export_citations renders DOI-verified BibTeX/RIS.

Expanded guidance: docs/PRISMA.md.


Client setup

All clients speak MCP over stdio. Ready-made configs in clients/:

Client

Config

Cline

clients/cline_mcp_settings.json

Claude Desktop

clients/claude_desktop_config.json

Claude Code

claude mcp add biomed-search -- uvx --from git+https://github.com/drb253/biomed-search-mcp biomed-search-mcp

OpenCode

clients/opencode.json

DeepSeek harness / ZCode

clients/README.md (generic stdio)

Any MCP-compliant client works — nothing in the server is client-specific:

{
  "mcpServers": {
    "biomed-search": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/drb253/biomed-search-mcp", "biomed-search-mcp"]
    }
  }
}

Configuration

Every value is optional. Read from the environment, or from ~/.config/biomed-search-mcp/.env (the legacy ~/.config/paper-search-mcp/.env is also read, so an existing setup keeps working).

Variable

Effect

Cost

BIOMED_SEARCH_MCP_UNPAYWALL_EMAIL

unlocks OA PDF resolution

free

BIOMED_SEARCH_MCP_NCBI_API_KEY

PubMed/PMC/Bookshelf 3 → 10 req/s

free

BIOMED_SEARCH_MCP_OPENALEX_EMAIL

polite pool

free

BIOMED_SEARCH_MCP_OPENALEX_API_KEY

higher OpenAlex limits

free

BIOMED_SEARCH_MCP_SEMANTIC_SCHOLAR_API_KEY

higher Semantic Scholar limits

free

BIOMED_SEARCH_MCP_CORE_API_KEY

enables core

free

BIOMED_SEARCH_MCP_DOAJ_API_KEY

raises DOAJ's 100/hr limit

free

BIOMED_SEARCH_MCP_ELSEVIER_API_KEY

enables scopus

free

BIOMED_SEARCH_MCP_SPRINGER_API_KEY

enables springer

free

BIOMED_SEARCH_MCP_BASE_API_KEY

enables base

free, by application

BIOMED_SEARCH_MCP_ELSEVIER_INSTTOKEN

Embase access

institutional

BIOMED_SEARCH_MCP_PER_SOURCE_TIMEOUT_SECONDS

per-source timeout (default 40)

—

BIOMED_SEARCH_MCP_MAX_CONCURRENCY

parallel sources (default 8)

—

BIOMED_SEARCH_MCP_MAX_RETRIES

retries per request (default 2)

—

BIOMED_SEARCH_MCP_DOWNLOAD_DIR

writable cache directory

—

BIOMED_SEARCH_MCP_DISABLED_SOURCES

comma-separated sources to skip

—


Known limits

Stated plainly, because a search tool that hides its limits is worse than no tool.

Limit

Detail

Workaround

Full sweeps are slow

53 sources with a 40 s per-source timeout take 40–60 s

narrow sources= for interactive use

Retraction checks need priming

the RW table is tens of MB

run prime_retraction_cache once

bioRxiv/medRxiv have no keyword API

date intervals only

keyword via preprints_epmc; windows via preprint_date_range

Trial registries AND aggressively

"CRISPR base editing PCSK9" → 0; "PCSK9" → results

use one or two terms

Some sources are bot-walled

dblp, OATD, J-STAGE-at-times

reported as unavailable with the reason

No Embase without a licence

~8M records absent

supply the entitlement token

Pinned to mcp<2

MCP 2.x renamed FastMCP to MCPServer

most harnesses still speak v1

Abstracts can be noisy

PDF extraction artefacts (eaectiveness for effectiveness)

treat abstracts as untrusted text


Development

make install     # uv venv + editable install with dev extras
make test        # 22 unit tests, no network
make sources     # coverage manifest
make doctor      # live probe (needs network)
make gaps        # only what is NOT searchable
src/biomed_search_mcp/
├── models.py       Paper, DOI normalisation, order-independent merge
├── status.py       SourceState, SourceUnavailable, NEVER_SILENT
├── config.py       env + legacy env, writable cache dir
├── http.py         one transport: retries, backoff, bot-wall mapping
├── relevance.py    plan_query + the single scorer
├── aggregator.py   fan-out, per-source timeout, merge, coverage_report
├── server.py       9 MCP tools
├── cli.py          7 CLI subcommands
└── sources/
    ├── base.py     Source contract
    ├── engine.py   declarative connector engine
    ├── bibliographic.py · aggregators.py · catalog_*.py
    └── regional/   jstage.py · iacr.py  ← one module per provider

Contributions welcome — the one rule is documented in CONTRIBUTING.md: never return [] when the real cause is a failure.


Documentation

Document

What it covers

docs/SOURCES.md

every source: coverage, endpoint, auth, verified status

docs/ARCHITECTURE.md

lifecycle diagrams, honesty layer, bias controls, module map

docs/PRISMA.md

using this for a systematic review

clients/README.md

per-client setup for 6 harnesses

CHANGELOG.md

release history

CONTRIBUTING.md

adding a source, PR checklist

SECURITY.md

threat model, credential handling, injection surface

CODE_OF_CONDUCT.md

community standards


Citation

@software{biomed_search_mcp,
  title  = {biomed-search-mcp: a bias-auditable MCP server for biomedical,
            preprint and grey-literature search},
  author = {drb253},
  year   = {2026},
  url    = {https://github.com/drb253/biomed-search-mcp}
}

If you use this in a review, cite the databases you actually searched (they are listed in source_status), not this tool alone.


Licence

MIT — see LICENSE.

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A provider-neutral Web Search MCP server and CLI that combines live search, scholarly discovery, verified PDF downloads, URL normalization, multi-provider ranking, secure page fetching, caching, and citation-ready research evidence.
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      A standalone MCP server that searches multiple scholarly metadata providers (PubMed, Europe PMC, bioRxiv, Crossref, OpenAlex, Semantic Scholar, arXiv), deduplicates results, and returns ranked literature with optional open-access full-text retrieval from Europe PMC.
      3
      1
      Apache 2.0
    • A
      license
      B
      quality
      B
      maintenance
      Enables provenance-first scholarly retrieval, paper ingestion, and reproducible research workflows by searching academic and developer sources, extracting source-located facts and claims, and preserving evidence and provider uncertainty for MCP clients.
      37
      1
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables searching biomedical literature, reading accessible full-text papers, inspecting variant evidence, and exploring genes, drugs, diseases, pathways, and clinical trials through one MCP interface.
      42 PyPI
      4
      Apache 2.0