med-research-mcp
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., "@med-research-mcp is tirzepatide effective for sleep apnea? label the study designs"
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.
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.
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 buildThen 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 |
| 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. |
| Raises the PubMed rate limit from 3 to 10 requests per second. Get one in your NCBI account settings. |
| Contact email for Unpaywall, which finds open-access full texts. |
| Contact email for ChinaRxiv, which serves the |
| Your institution's EZproxy host for doi.org, e.g. |
| Cap on the length of each part of a full text: a longer text is returned in parts, read on with |
|
|
|
|
| The SQLite file for the |
.env.example documents each one, plus the HTTP server's variables.
Tools
Tool | What it does |
| Searches one or more databases and labels each result with its study design, design tier and integrity flags. |
| Returns the full record and abstract of specific papers. |
| 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:
studyTypeis the design as NLM indexed it:meta-analysis,randomized-controlled-trial,case-reportand so on, orunknownwhen 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.designTierranks 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'snullwhen 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.flagswarn 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.
Data sources and copyright
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 toolsliterature_fetchFetch scientific articles (multi-database)ARead-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)ARead-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.
literature_searchSearch scientific literature (multi-database)ARead-only
Search PubMed, Europe PMC, ChinaXiv and RussiaRxiv; each result has its study design. studyType comes only from NLM PublicationType tags (PubMed, Europe PMC; assigned by NLM's automated indexing, with human review of some records). Records with none naming a design are 'unknown', designTier null. designTier (0-5) ranks the design for 'does this intervention help?' by the OCEBM 2011 levels; it is not an appraisal. A meta-analysis or systematic review ranks with the studies it pooled, which the tags don't say, so its designTier is null unless it is tagged Network Meta-Analysis (5). For a null tier, read the abstract for the design or for what a review pooled. flags marks retracted, notice, protocol and editorial records (designTier 0), and warns of an expression of concern, an erratum (corrected), a newer version (updated; for a preprint, its published article, id in corrections), animals-not-humans indexing, preprints, letters, machine-translated text and machine-generated abstracts (chinaxiv, russiarxiv: check originalUrl before relying on a number). id is the database's own id; pmid is set only for a PMID: cite any other (PPR…, CBA:…, chinaxiv-…, ru-…) by id with the database, or by doi/url. Results are merged, de-duplicated by DOI and sorted, a page at a time: when nextPage is set, more follow; a record held by two databases counts twice in total. Use literature_fetch for full metadata of given ids, literature_fulltext for the article body.
Inputs: query (required), page, sort, database, +6 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
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.
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.
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.
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
Related MCP Connectors
Search arXiv/Semantic Scholar/OpenAlex + medical evidence (PubMed/Europe PMC) + LaTeX/PDF tools.
Search 36M+ PubMed biomedical articles and ClinicalTrials.gov studies.
Search PubMed/Europe PMC, fetch articles and full text (PMC/EPMC/Unpaywall), citations, MeSH terms.
Research papers for AI agents: PubMed, arXiv, Crossref; citations, references, open access texts
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables 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-
- AlicenseBqualityDmaintenanceEnables AI assistants to search and retrieve biomedical research articles from PubMed's database of over 35 million citations, including metadata, abstracts, MeSH terms, and full-text PDFs when available.12MIT
- FlicenseNot gradedqualityDmaintenanceProvides a standardized interface for AI assistants to search biomedical literature and clinical trials, combining evidence from multiple sources and offering a prompt for structured research briefs.-
- AlicenseNot gradedqualityAmaintenanceEnables 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 npmMIT