Skip to content
Skillpedia
● Free and open sourceπŸ’»β˜οΈ Local / RemoteπŸ”“ No API keyOther

PubMed MCP Server

Lets your AI agent search PubMed and Europe PMC, fetch articles and full text, format citations and look up MeSH terms.

167 stars on GitHubby cyanheadsLicense Apache-2.0Updated 20 days ago

How to install

This MCP has two ways to run: local or remote.

Pick one below. Local runs on your computer; remote runs in the cloud and needs nothing installed.

Paste in the terminal:

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

What to fill in

NameWhat it isRequired
MCP_LOG_LEVELSets the minimum log level for output (e.g., 'debug', 'info', 'warn').No
NCBI_API_KEYNCBI API key for higher rate limits (10 req/s vs 3 req/s).No
NCBI_ADMIN_EMAILContact email sent with NCBI requests (recommended by NCBI).No
UNPAYWALL_EMAILContact email for Unpaywall. When set, pubmed_fetch_fulltext falls back to Unpaywall open-access copies for DOIs not in PMC.No

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Search PubMed for recent randomized trials on semaglutide and summarize the top five.
Get the full text of PMID 12345678 and list its main findings.

What it is

This server connects your AI agent to biomedical literature from PubMed, PubMed Central and Europe PMC. The agent can search papers, read abstracts and full text, find related and citing articles, check citation metrics and format references. A public hosted version is available, or you can run it yourself.

What it can do

  • pubmed_search_articles: search PubMed with filters and date ranges
  • pubmed_fetch_articles: abstracts, authors, journal and MeSH terms by PMID
  • pubmed_fetch_fulltext: full text by PMID, PMCID or DOI
  • pubmed_europepmc_search: search preprints, patents and open-access records
  • pubmed_fetch_citation_metrics: NIH iCite citation metrics
  • pubmed_format_citations: APA, MLA, BibTeX, RIS or Vancouver
  • pubmed_find_related: similar, citing or referenced articles
  • pubmed_lookup_mesh: MeSH headings and entry terms

When to use

  • β€ΊWhen you do a literature review and want your agent to search PubMed and read the papers
  • β€ΊWhen you need references formatted in APA, BibTeX or another style from PMIDs
  • β€ΊWhen you want to turn a DOI into a PMID or check whether an article was retracted

What you need

Nothing for the public hosted server. To run it yourself you need Node.js (npx) or Bun. Full-text fallback to Unpaywall needs an email in UNPAYWALL_EMAIL.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it free and open source?

Yes. The readme shows an open license, and a public hosted server is offered at https://pubmed.caseyjhand.com/mcp.

Do I need an API key?

No key is mentioned for the hosted server. Unpaywall full-text lookups need an email set in UNPAYWALL_EMAIL.

Where does the data come from?

NCBI E-utilities for PubMed, with Europe PMC, OpenAlex, Unpaywall and NIH iCite filling gaps.

How many tools does it have?

The readme lists 12 tools, 1 resource and 1 prompt.

How are retractions handled?

Fetching an article shows linked retraction and correction notices at the top, and citation formatting includes them.

Can I run it locally?

Yes, over stdio or local Streamable HTTP, for example with npx -y @cyanheads/pubmed-mcp-server.

If it does not work

  • β€ΊIf a full-text request returns nothing, the article may not be open access. The result lists the reason and the sources tried.
  • β€ΊIf searches slow down or fail with a rate-limit message, wait a moment, because NCBI requests are paced.
  • β€ΊFor local use, check that Node.js is installed and restart your AI app after adding the config.

5 new skills a week. 1 minute to read.