by cyanheads
Search PubMed/Europe PMC, fetch articles and full text (PMC/EPMC/Unpaywall), citations, MeSH terms via MCP. STDIO or Streamable HTTP.
# Add to your Claude Code skills
git clone https://github.com/cyanheads/pubmed-mcp-serverGuides for using ai agents skills like pubmed-mcp-server.
pubmed-mcp-server is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by cyanheads. Search PubMed/Europe PMC, fetch articles and full text (PMC/EPMC/Unpaywall), citations, MeSH terms via MCP. STDIO or Streamable HTTP. It has 173 GitHub stars.
pubmed-mcp-server's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/cyanheads/pubmed-mcp-server" and add it to your Claude Code skills directory (see the Installation section above).
pubmed-mcp-server is primarily written in TypeScript. It is open-source under cyanheads on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh pubmed-mcp-server against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Public Hosted Server: https://pubmed.caseyjhand.com/mcp
Biomedical literature from PubMed, PubMed Central, and Europe PMC. Search it, fetch metadata and full text, resolve identifiers and partial citations, format references, and ground queries in MeSH vocabulary. Runs as a stdio process, a local Streamable HTTP server, or the public hosted endpoint above. Ships the pubmed-guide agent skill (skill://pubmed-guide/SKILL.md), which MCP clients read for PubMed query syntax, DOI-to-PMID routes outside PMC, reference-list resolution, citation counts, and full-text misses.
| Tool | Description |
|---|---|
pubmed_search_articles |
Search PubMed with full query syntax, structured filters, date ranges, and optional summaries |
pubmed_fetch_articles |
Fetch article metadata by PMID: abstract, authors, journal, language and original-language title, MeSH terms and indexed substances, databank accessions such as trial registration IDs, grants, a collective author's investigators on request, linked retraction and correction notices |
pubmed_fetch_fulltext |
Fetch full text by PMID, PMCID, or DOI, falling back from PMC to Europe PMC to Unpaywall |
pubmed_europepmc_search |
Search Europe PMC for preprints, patents, Agricola, and open-access records PubMed doesn't carry |
pubmed_europepmc_fetch |
Fetch complete Europe PMC records, including the untruncated abstract, as records: [{ source, epmcId }] |
pubmed_fetch_citation_metrics |
Fetch NIH iCite citation metrics by PMID: Relative Citation Ratio, NIH percentile, citation counts and rates |
pubmed_format_citations |
Format citations in APA 7th, MLA 9th, BibTeX, RIS, or Vancouver (ICMJE/NLM), with linked retraction and correction notices |
pubmed_find_related |
Find similar articles, citing articles, or references for a PMID |
pubmed_spell_check |
Correct a misspelled PubMed query via NCBI ESpell |
pubmed_lookup_mesh |
Look up MeSH records (descriptors, supplementary concepts, qualifiers, pharmacological actions) with the PubMed clause that searches each, tree numbers, scope notes, and entry terms |
pubmed_lookup_citation |
Resolve partial references, up to 25 at a time, to PMIDs via ECitMatch |
pubmed_convert_ids |
Convert between DOI, PMID, and PMCID via the PMC ID Converter |
| Resource | Description |
|---|---|
pubmed://database/info |
PubMed database metadata via EInfo (field list, record count, last update) |
| Prompt | Description |
|---|---|
research_plan |
Generate a structured four-phase biomedical research plan |
pubmed_search_articles toolquery is optional: with an author, journal, MeSH, or publication-type filter, the filters alone make the search (a journal's output over a date range, for example)maxResults: 0 for the match count alone; summaryCount adds briefs for up to 50 hits. A larger page size is served at the cap with a notice naming where to continue; a page that reaches PubMed's 9,999-record window says how many matches no offset can reach and advises narrowing or splitting the query by dateRangetotalCount, the effectiveQuery PubMed ran, and the appliedFilterslanguages (NLM three-letter codes, e.g. ["ger"]), so a result set can be screened by language without fetching the records; a record in another language has NLM's English translation as its title once NLM has indexed it, and its original-language title until thenpubmed_fetch_articles toolunavailablePmids. A PMC ID or DOI in pmids is rejected with the route to pubmed_convert_ids or pubmed_fetch_fulltext; idType is accepted only as "pmid"languages, linked retraction/erratum/comment notices, and links; a record in another language carries its original-language title as vernacularTitle, with title NLM's English translation; MeSH terms and chemicals (the record's indexed substances, each with its MeSH UI and, where NLM assigns one, its registry number) on by default via includeMesh, grants via includeGrants, and the members of a collective author (its InvestigatorList, thousands on some consortium trials) via includeInvestigatorspubmed_format_citations, directly under its titledataBanks lists the record's trial registrations and data deposits (ClinicalTrials.gov NCT IDs, GenBank and PDB accessions, Dryad DOIs) verbatim; search pubmed_search_articles for <accession>[si] to find other records citing one; search "<name>"[nm] to find other records listing a substance (a C UI is a supplementary concept, which no [mh] clause matches)recordType separates journal articles from Bookshelf chapters and books; opt-in maxResponseCharacters defers overflow to deferred.idspubmed_fetch_fulltext toolpmcids, pmids, and dois in any mix, up to 50 distinct identifiers per call: the first 10 are fetched and the rest returned in overLimit for a follow-up call. A DOI may be sent bare, as a resolver link (https://doi.org/…), or with the doi: scheme; each is read as the bare DOI, which is what the response echoes. Each is tried against PMC, then Europe PMC, then Unpaywall (needs UNPAYWALL_EMAIL); an article several of them name is fetched and returned once, and viaSource names the tier that answeredsource: "pmc" returns sections (the body, then back matter such as acknowledgments, declarations, and appendices), tables, and figures; source: "unpaywall" returns a best-effort HTML or PDF text body; each read is held to 50 MiB, and an open-access copy over that is a fetch-failed miss (a PDF over it falls through to the publisher landing page)licenses their PMC JATS states*_deadline_exceeded reason in its detail, and one it left no time for is not-attempted. The PMC ID Converter lookup that routes pmids and dois takes the same half share while a later tier can run; when it fails, its ids carry a pmc service-error naming the ID Converter and go on to Europe PMC and Unpaywallreason and triedTiers; sections, maxSections, maxCharacters, overflowMode, and maxResponseCharacters bound the response, truncation reports what was cut, and sectionCap names the sections maxSections cutsections filter that matches an article only in part adds a notice naming, per article, the terms that matched no section or subsection title there and pointing at overflowMode: "outline" to list its headingspubmed_europepmc_search toolPPR), patents (PAT), and Agricola (AGR) to MED and PMC; defaults to MED, PMC, PPRcursorMark / nextCursorMark, up to 100 per page; a larger page size is served at the cap with a notice naming where to continue. Abstracts