Skip to main content
Glama
med-research-mcp
by emilkrebs

med-research-mcp is an MCP server that lets an AI assistant search PubMed, Europe PMC and ChinaRxiv's ChinaXiv and RussiaRxiv sources, and tells it what kind of study each result is. The assistant can then tell a meta-analysis from a case report, and a retracted paper from a sound one, before it answers. It's built for medical, clinical and supplementation research, where "what does the evidence actually say" matters more than a list of abstracts.

  • Four databases in one search, merged and de-duplicated.

  • Study-design labels from NLM metadata: each result says what kind of study it is, where that design ranks in the evidence hierarchy, and whether it was retracted or corrected. No guessing: a record without metadata says unknown.

  • Full text when the abstract isn't enough, through open access, your institution's proxy or the DOI, and ChinaRxiv's machine translation for ChinaXiv and RussiaRxiv.

  • Agent skills that teach the assistant to write precise queries, read the labels and appraise evidence.

  • No LLM calls, no accounts, no telemetry. It runs on your machine.

IMPORTANT

This is a research aid, not medical advice and not a diagnostic tool. Don't put anything that identifies a patient into a query: queries are sent to the databases listed underPrivacy. See the medical disclaimer.

Install

You need Node.js 22.22.2 or later on 22, 24.15.0 or later on 24, or 26+. The server runs straight from npm, so there's nothing to clone or build. In the examples, replace you@example.com with your email (see Configuration).

Claude Code

claude mcp add med-research-mcp -s user \
  -e NCBI_EMAIL=you@example.com \
  -- npx -y med-research-mcp

-s user makes it available in all your projects. claude mcp get med-research-mcp checks the connection; the tools appear in new sessions.

Claude Desktop

Download med-research-mcp.mcpb from the latest release and drag it onto Claude Desktop. The installer offers a few optional settings, such as your email; there's no JSON to edit.

Cursor, Windsurf, Cline and other clients

Add this to the client's MCP configuration:

{
  "mcpServers": {
    "med-research-mcp": {
      "command": "npx",
      "args": ["-y", "med-research-mcp"],
      "env": { "NCBI_EMAIL": "you@example.com" }
    }
  }
}

Clients configured in YAML, such as Hermes, take the same command, args and env.

ModelScope

The server is also listed on ModelScope (魔搭社区), which can host it for you, so there's nothing to install.

From source

git clone https://github.com/emilkrebs/med-research-mcp.git
cd med-research-mcp
npm install
npm run build

Then use node /path/to/med-research-mcp/dist/mcp/index.js as the command, and npm run build:mcpb builds the Claude Desktop bundle. To run the server as a shared HTTP service for a team, see docs/hosting.md.

Related MCP server: PubMed MCP Server

Configuration

Set these in the env block of your MCP client's configuration. All are optional, but do set NCBI_EMAIL.

Variable

What it does

NCBI_EMAIL

Your contact email, sent with every NCBI (PubMed) request as its usage policy asks, so NCBI can reach you before blocking an IP that exceeds its limits. Also used for Unpaywall and ChinaRxiv when their own emails aren't set. Without one, NCBI and Unpaywall requests carry the project's contact address instead.

NCBI_API_KEY

Raises the PubMed rate limit from 3 to 10 requests per second. Get one in your NCBI account settings.

MED_RESEARCH_UNPAYWALL_EMAIL

Contact email for Unpaywall, which finds open-access full texts.

MED_RESEARCH_CHINAXIV_EMAIL

Contact email for ChinaRxiv, which serves the chinaxiv and russiarxiv sources; raises its rate limit from 30 to 300 requests per minute.

MED_RESEARCH_PROXY_PREFIX

Your institution's EZproxy host for doi.org, e.g. https://doi-org.ezproxy.your-university.edu, to read paywalled papers you have access to. It works only if the proxy lets this machine in without a login, e.g. on the campus network or VPN. Use it only if your institution's licences allow it: many publishers forbid using subscription content with AI tools.

MED_RESEARCH_FULLTEXT_MAX_CHARS

Cap on the length of each part of a full text: a longer text is returned in parts, read on with offset. Default 50000.

MED_RESEARCH_FULLTEXT_ALLOW_PRIVATE

1 lets full-text fetches reach private or reserved network addresses, which the server otherwise refuses. Needed only on a personal machine behind a fake-IP DNS proxy (Clash, Surge or sing-box in TUN mode) or split-horizon DNS; never set it on a shared server.

MED_RESEARCH_CACHE_BACKEND

memory (default) or sqlite, which keeps the cache across restarts.

MED_RESEARCH_CACHE_PATH

The SQLite file for the sqlite backend. Use an absolute path: the default, ./pubmed-cache.db, is relative to the directory your client starts the server in.

.env.example documents each one, plus the HTTP server's variables.

Tools

Tool

What it does

literature_search

Searches one or more databases and labels each result with its study design, design tier and integrity flags.

literature_fetch

Returns the full record and abstract of specific papers.

literature_fulltext

Returns the full text of a paper as markdown, given a PMID, PMCID, preprint id or ChinaXiv or RussiaRxiv id: an open-access or licensed copy when one can be found, and for ChinaXiv and RussiaRxiv ids ChinaRxiv's machine translation.

The assistant usually searches first, reads the promising abstracts, and fetches the full text when it needs the methods, dosage or sample size. docs/tools.md has every parameter.

What the labels on each result mean:

  • studyType is the design as NLM indexed it: meta-analysis, randomized-controlled-trial, case-report and so on, or unknown when the record has no such metadata. Unknown means unlabeled, not weak. It's common for recent papers, journals outside MEDLINE, and the ChinaXiv and RussiaRxiv sources; the assistant reads those abstracts itself.

  • designTier ranks the design for "does this treatment work?", from 5 (a systematic review of randomized trials) down to 0 (animal and lab studies, retracted papers), following the Oxford CEBM levels of evidence. It ranks the design, not the quality of the study. It's null when the metadata can't place the design: unlabeled records, and most meta-analyses, which rank with the studies they pooled. Null means unrated, not weak.

  • flags warn about retractions, corrections, expressions of concern, preprints, and machine-translated text.

ChinaXiv and RussiaRxiv records come from ChinaRxiv, an independent project not affiliated with the Chinese Academy of Sciences' ChinaXiv. Its English text is machine-translated, and it wrote most RussiaRxiv abstracts itself; check the original record before relying on a dose, population or outcome.

Agent skills

Three Agent Skills teach the assistant to use the tools well:

  • med-research: the workflow. Writing precise PubMed queries, reading the labels, classifying unlabeled papers, and reporting findings with how certain they are.

  • med-research-ebm: critical appraisal, loaded only when a conclusion will rest on one paper: risk of bias, effect sizes, heterogeneity, causation, applicability.

  • med-research-setup: helps an assistant install and troubleshoot the server.

To install them for Claude Code:

git clone --depth 1 https://github.com/emilkrebs/med-research-mcp.git
mkdir -p ~/.claude/skills && cp -r med-research-mcp/skills/* ~/.claude/skills/

Use .claude/skills/ inside a project to install them for that project only. Skills take effect in new sessions. Claude Desktop doesn't read skills from the .mcpb or from ~/.claude/skills/: zip each skill folder and upload it under Customize → Skills → "+" → "Upload a skill", with "Code execution and file creation" turned on under Settings → Capabilities.

Privacy

The server runs on your machine and sends no telemetry. Your queries go to the databases you search (NCBI for PubMed, EMBL-EBI for Europe PMC, ChinaRxiv), and a full-text request can send an article's id or DOI to services you did not search: NCBI, Europe PMC or ChinaRxiv for the id's record or text, Unpaywall, doi.org, the publisher's or a repository's site and, if you set one, your institution's proxy, each under its own terms and privacy policy. Results are cached on your machine, in memory unless you choose SQLite. If you use someone else's HTTP instance, its operator receives your queries too. Don't put names, record numbers or other details that identify a patient into a query. docs/compliance.md has the details.

Documentation

  • Tool reference: parameters, results, databases, labels and errors.

  • How it works: the search pipeline, how the design labels are assigned and why, full-text resolution, caching, and how the benchmark grades answers.

  • Hosting: running the server over HTTP for a team.

  • Using the core library: the same functions without MCP.

  • Compliance: intended use, data flows, and the terms of the services it calls.

  • Development: building, testing and releasing.

  • Benchmark: how well models answer biomedical questions with the server.

  • Releases: what changed in each version.

Medical disclaimer

med-research-mcp is a literature search tool for research and education. It does not provide medical advice, diagnosis, or treatment recommendations, is not meant for decisions about an individual patient's care, and is not a medical device. Its design labels rank how studies were designed, not the quality of individual studies or whether their results apply to anyone. They are not a substitute for clinical judgement or a qualified professional. Always verify findings against the primary source and consult a healthcare provider before making medical or supplementation decisions.

PubMed data comes from the U.S. National Library of Medicine through NCBI's E-utilities; NCBI's disclaimer and copyright notice applies. NLM doesn't claim copyright on PubMed abstracts, but their publishers or authors may, and NLM doesn't endorse this tool. Europe PMC data comes from the Europe PMC REST API (EMBL-EBI), under the EMBL-EBI terms of use. Open-access locations come from Unpaywall. ChinaXiv and RussiaRxiv records come from the ChinaRxiv API, whose specification declares CC BY 4.0. Full texts belong to their rights holders; use them within their licences.

License

MIT.

Available Tools

3 tools
literature_fetchFetch scientific articles (multi-database)A
Read-only

Fetch full metadata and the whole abstract for one or more ids from a specific database. Each article is graded as in literature_search (studyType, designTier, flags) and, for pubmed and europepmc, carries MeSH headings and retraction/correction links. Ids that could not be fetched are listed in missing. Use after literature_search to drill into specific papers.

Inputs: ids (required), database (required).

literature_fulltextFetch full text for a scientific article (multi-database)A
Read-only

Fetches an article's full text as markdown (plain text when format is pdf) via Europe PMC (a PMCID or PPR preprint), Unpaywall (open access), institutional proxy (if configured) and direct DOI access; chinaxiv and russiarxiv records come from ChinaRxiv as a machine translation (check originalUrl before relying on a number). The warning opens with RETRACTED, NOTICE or EXPRESSION OF CONCERN when the record has that flag (see literature_search); a retracted paper is no evidence. Without the text it says what each location answered, and the abstract is returned. A long text comes in parts: see truncated, totalChars, offset. Use when the abstract isn't enough (dosage, sample sizes, methods).

Inputs: id (required), doi, offset, maxChars.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 3 tools

    Disambiguation5/5

    The three tools map cleanly onto distinct stages of a literature workflow: discovery (literature_search), metadata/abstract drill-down for known ids (literature_fetch), and full-text retrieval (literature_fulltext). Each description explicitly names the other tools as the next step, leaving no realistic path for misselection.

    Naming Consistency4/5

    All three share the literature_ prefix and read as a predictable family (search / fetch / fulltext), in snake_case throughout. The only minor deviation is that 'fulltext' is a resource noun rather than a verb like search and fetch, but the intent is still obvious.

    Tool Count4/5

    Three tools form a tight, non-redundant triad covering search, metadata, and body text for a focused research-retrieval server. It is on the sparse side—no citation export, related-article, or saved-search operations—but nothing feels padded or missing from the core loop.

    Completeness4/5

    The surface covers the full read path: find papers, expand metadata/abstract, then pull full text with clear fallbacks and truncation handling. Gaps are peripheral to retrieval rather than blocking—e.g. no citation/BibTeX export, no citation-graph or 'similar articles' traversal, and no way to filter results beyond search parameters.

    Maintenance

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to search across multiple academic databases (PubMed, arXiv, bioRxiv, medRxiv, Semantic Scholar) through a unified interface. Supports advanced filtering, metadata retrieval, PDF downloads, and comprehensive research workflows with citation analysis.
      5
      -
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables agents to search PubMed, PubMed Central, and Europe PMC, fetch article metadata and full text with multi-tier fallbacks, resolve partial citations and identifiers, format references, find related or citing work, and ground queries in MeSH vocabulary.
      9 npm
      MIT