Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

pubmed-mcp-server

MCP server by cyanheads Community

Searches PubMed, PubMed Central and Europe PMC and returns articles, full text, citations and MeSH terms to AI assistants. Built for researchers and developers working with biomedical literature.

  • Score 85
  • 173 stars
  • 3.1k a week
  • Apache-2.0
  • Updated

Install pubmed-mcp-server

Built from the published package, never by AI.

claude mcp add pubmed-mcp-server -- npx -y @cyanheads/pubmed-mcp-server

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install pubmed-mcp-server in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the pubmed-mcp-server block.

About

pubmed-mcp-server is an MCP server that gives AI assistants access to biomedical literature from PubMed, PubMed Central and Europe PMC. It can search PubMed with full query syntax, fetch article metadata and full text, resolve partial citations to PMIDs, and convert between DOI, PMID and PMCID. It also formats references in APA, MLA, BibTeX, RIS and Vancouver, looks up MeSH headings, and fetches NIH iCite citation metrics.

The server runs as a stdio process, a local Streamable HTTP server, or through a public hosted endpoint. Full text is tried against PMC, then Europe PMC, then Unpaywall. The package also ships a pubmed-guide agent skill covering PubMed query syntax and full-text misses. It suits researchers and developers building literature review workflows.

Written from the project's README and checked against it.

Tools it gives your assistant

  • pubmed_search_articlesSearches PubMed with full query syntax, filters, date ranges and optional summaries.
  • pubmed_fetch_articlesFetches article metadata by PMID, including abstracts, authors, MeSH terms and grants.
  • pubmed_fetch_fulltextFetches full text by PMID, PMCID or DOI, falling back from PMC to Europe PMC to Unpaywall.
  • pubmed_europepmc_searchSearches Europe PMC for preprints, patents, Agricola and open-access records.
  • pubmed_fetch_citation_metricsFetches NIH iCite citation metrics by PMID, including Relative Citation Ratio and percentile.
  • pubmed_format_citationsFormats citations in APA 7th, MLA 9th, BibTeX, RIS or Vancouver style.
  • pubmed_find_relatedFinds similar articles, citing articles or references for a given PMID.
  • pubmed_spell_checkCorrects a misspelled PubMed query via NCBI ESpell.
  • pubmed_lookup_meshLooks up MeSH headings with tree numbers, scope notes and entry terms.
  • pubmed_lookup_citationResolves partial references, up to 25 at a time, to PMIDs via ECitMatch.

What you need

  • npm (npx) to run the published package
  • UNPAYWALL_EMAIL environment variable for the Unpaywall full-text fallback
SettingNeededWhat it is
MCP_LOG_LEVELEnvironment variableOptionalSets the minimum log level for output (e.g., 'debug', 'info', 'warn'). Default: info
NCBI_API_KEYEnvironment variableOptionalNCBI API key for higher rate limits (10 req/s vs 3 req/s).
NCBI_ADMIN_EMAILEnvironment variableOptionalContact email sent with NCBI requests (recommended by NCBI).
UNPAYWALL_EMAILEnvironment variableOptionalContact email for Unpaywall. When set, pubmed_fetch_fulltext falls back to Unpaywall open-access copies for DOIs not in PMC.

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • Search PubMed for recent randomized trials on semaglutide and summarize the top hits
  • Look up the MeSH heading for type 2 diabetes and list its tree numbers
  • Format PMIDs 12345678 and 23456789 as APA and BibTeX citations

Good to know

  • Fetches up to 200 PMIDs per call and up to 50 full-text identifiers per call.
  • Unpaywall full-text lookups need the UNPAYWALL_EMAIL variable set.
  • iCite does not flag retractions, so check fetched articles for notices.
  • Only PMC-indexed articles resolve in the DOI, PMID and PMCID converter.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to pubmed-mcp-server

All alternatives →
Mirobody thetahealth
96

Standardizes lab test names to LOINC codes and units to UCUM, and symptoms and diagnoses to ICPC-3, offline and with no API key. Built for people who want their health records on their own machine and queryable by an AI agent over MCP.

AAA Local 1.9k
Ruview ruvnet
94

RuView is a WiFi sensing platform and MCP server that uses low-cost ESP32 sensors to detect people, breathing and heart rate. It is for developers and operators who want room sensing without cameras or wearables.

AAA Local 106k
tooluniversemims-harvard
90

ToolUniverse is an MCP server that gives AI assistants access to more than 2,700 scientific tools for life science, research and literature. It is aimed at AI scientists, researchers and developers building research systems.

AAA Local 1.8k
Mirobody thetahealth
90

Mirobody is a self-hosted engine that turns lab reports, wearable data and genetic files into a single health record. Its built-in MCP server lets an AI assistant query that record and trace each number back to its source file. It is for people who want their health data on their own machine.

AAA Local 1.9k
Scansci PDF Rimagination
88

ScanSci PDF gets academic papers for AI agents. Give it a DOI, arXiv ID, article link, reference list or research question, and it searches candidate sources and tries to fetch accessible full texts. It is for students, researchers and labs.

AAA Local 1.3k
Dsh Wensu hui-xu-ai
87

Searches CNKI and Web of Science through an MCP server, returning records with impact factors. It can also open a paper in the user's signed-in browser and read its full text. Built for researchers who want AI answers on science topics backed by the source article.

AAC Local 5k/wk

Compare with Mirobody, Ruview or tooluniverse

pubmed-mcp-server: common questions

Which literature sources does it search?

It searches PubMed, PubMed Central and Europe PMC, and uses Unpaywall as a fallback for full text. Europe PMC also adds preprints, patents and Agricola records.

Can I use it without installing anything?

The source lists a public hosted server at pubmed.caseyjhand.com/mcp. It can also run locally over stdio or Streamable HTTP.

Does it flag retracted articles?

Yes. Fetched articles and formatted citations show linked retraction, erratum and comment notices. The iCite metrics tool does not flag retractions.

How do I install pubmed-mcp-server?

In Claude Code run claude mcp add pubmed-mcp-server -- npx -y @cyanheads/pubmed-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is pubmed-mcp-server the official server?

pubmed-mcp-server is a community project by cyanheads, not verified by a company domain.

Is pubmed-mcp-server free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is pubmed-mcp-server safe to use?

It scores 85 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to pubmed-mcp-server?

Similar MCP servers: Mirobody, Ruview, tooluniverse, Mirobody.

Does pubmed-mcp-server work with ChatGPT?

Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.

pubmed-mcp-server Install

Add to stack

Loading.