
Wraps the NCBI E-utilities API to search and retrieve biomedical literature from PubMed directly in your MCP client. No authentication required, which keeps setup simple. Part of the Pipeworx gateway, so you can either use it standalone or connect to the full gateway for access to 250+ data sources. The ask_pipeworx tool lets you query in plain English instead of constructing API calls manually. Reach for this when you need to pull research papers, clinical studies, or medical literature into your AI workflows without leaving Claude or your editor.
Public tool metadata for what this MCP can expose to an agent.
pubmed_search_articlesSearch PubMed with full query syntax, filters, and date ranges. Returns PMIDs and optional brief summaries. Supports field-specific filters (author, journal, MeSH terms), common filters (language, species, free full text), and pagination via offset for paging through large res...14 paramsSearch PubMed with full query syntax, filters, and date ranges. Returns PMIDs and optional brief summaries. Supports field-specific filters (author, journal, MeSH terms), common filters (language, species, free full text), and pagination via offset for paging through large res...
authorstringdateRangeobjectfreeFullTextbooleanhasAbstractbooleanjournalstringlanguagestringmaxResultsintegermeshTermsarrayoffsetintegerpublicationTypesarrayquerystringsortstringrelevance · pub_date · author · journaldefault: relevancespeciesstringhumans · animalssummaryCountintegerpubmed_fetch_articlesFetch full article metadata by PubMed IDs. Returns detailed article information including abstract, authors, journal, MeSH terms.3 paramsFetch full article metadata by PubMed IDs. Returns detailed article information including abstract, authors, journal, MeSH terms.
includeGrantsbooleanincludeMeshbooleanpmidsarraypubmed_fetch_fulltextFetch full-text articles from PubMed Central (PMC). Returns complete article body text, sections, and references for open-access articles. Accepts PMC IDs directly or PubMed IDs (auto-resolved via ELink).5 paramsFetch full-text articles from PubMed Central (PMC). Returns complete article body text, sections, and references for open-access articles. Accepts PMC IDs directly or PubMed IDs (auto-resolved via ELink).
includeReferencesbooleanmaxSectionsintegerpmcidsarraypmidsarraysectionsarraypubmed_format_citationsGet formatted citations for PubMed articles in APA, MLA, BibTeX, or RIS format.2 paramsGet formatted citations for PubMed articles in APA, MLA, BibTeX, or RIS format.
pmidsarraystylesarraypubmed_find_relatedFind articles related to a source article — similar content, citing articles, or references.3 paramsFind articles related to a source article — similar content, citing articles, or references.
maxResultsintegerpmidstringrelationshipstringsimilar · cited_by · referencesdefault: similarpubmed_spell_checkSpell-check a query and get NCBI's suggested correction. Useful for refining search queries.1 paramsSpell-check a query and get NCBI's suggested correction. Useful for refining search queries.
querystringpubmed_lookup_meshSearch and explore MeSH (Medical Subject Headings) vocabulary. Essential for building precise PubMed queries.3 paramsSearch and explore MeSH (Medical Subject Headings) vocabulary. Essential for building precise PubMed queries.
includeDetailsbooleanmaxResultsintegertermstringpubmed_lookup_citationLook up PubMed IDs from partial bibliographic citations. Useful when you have a reference (journal, year, volume, page, author) and need the PMID. Uses NCBI ECitMatch for deterministic matching — more reliable than searching by citation fields.1 paramsLook up PubMed IDs from partial bibliographic citations. Useful when you have a reference (journal, year, volume, page, author) and need the PMID. Uses NCBI ECitMatch for deterministic matching — more reliable than searching by citation fields.
citationsarraypubmed_convert_idsConvert between article identifiers (DOI, PMID, PMCID). Accepts up to 50 IDs of a single type per request. Uses the NCBI PMC ID Converter API — only resolves articles indexed in PubMed Central. For articles not in PMC, use pubmed_search_articles instead.2 paramsConvert between article identifiers (DOI, PMID, PMCID). Accepts up to 50 IDs of a single type per request. Uses the NCBI PMC ID Converter API — only resolves articles indexed in PubMed Central. For articles not in PMC, use pubmed_search_articles instead.
idsarrayidtypestringpmcid · pmid · doiThe U.S. National Library of Medicine's PubMed. ~37 million biomedical and life-science citations going back to 1781. The canonical biomedical literature database — used by every clinician, researcher, and grant officer. MeSH (Medical Subject Headings) tagging makes structured search powerful. Free, no auth.
Part of Pipeworx — an MCP gateway connecting AI agents to 1745+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.
For biomedical research, drug efficacy questions, clinical guidelines, or systematic literature review, PubMed is the canonical first stop. Where Semantic Scholar is broader but less curated, PubMed is biomedical-focused with MeSH structure that supports precise queries.
Common flows:
get_summary's authors[] stays plain name strings (unchanged); a separate author_details[] array, index-aligned with authors[], adds {name, affiliations[], emails[]} — affiliations is the <AffiliationInfo><Affiliation> text verbatim from the efetch XML record, and emails is whatever email address(es) a plain regex finds inside that text (empty array when the record carries none — no guessing or enrichment beyond what NCBI indexed). search_pubmed still returns bare author name strings only, with no author_details; call get_summary on its PMIDs for affiliation/contact detail.from_year/to_year, and a precise term needs quotes (fleet #2418). search_pubmed had no date control at all — a "papers from the last two years on X" question could only be answered by relevance ranking, not filtered. Pass from_year/to_year (four-digit years; same [pdat] mechanism pubmed_evidence_landscape/pubmed_publication_trend already use) to bound it. Separately, an unquoted multi-word technical term (a gene, assay, or biomarker name) is subject to PubMed's automatic term mapping, which can silently broaden it into unrelated MeSH/supplementary-concept synonyms — cell-free RNA unquoted pulled in ctDNA papers via "cell free nucleic acids". Wrap a precise term in double quotes (optionally with a [tiab] tag, e.g. "cell-free RNA"[tiab]) to search for the exact phrase instead. Verified live: ("cell-free RNA"[tiab]) AND 2024:2026[pdat] returns 182 on-topic results with query_translation showing no synonym expansion, versus the unquoted term pulling in ctDNA/"cell free nucleic acids" matches.pubmed_evidence_landscape.pubmed_publication_trend for exact annual PubMed counts across a bounded window.pubmed_integrity_check before relying on one PMID to surface NLM-indexed retractions, expressions of concern, errata, updates, and related notices.None. NCBI E-utilities (PubMed's API) is free. Without an API key, calls are throttled to 3/sec; with a free NCBI API key (https://www.ncbi.nlm.nih.gov/account/), 10/sec. Pass via _apiKey.
PubMed's secret weapon is MeSH (Medical Subject Headings) — a controlled vocabulary applied to every paper by NLM librarians. Allows precise queries:
[mh] exact MeSH heading[majr] major heading (the paper is about this)[ti] title[au] authorExample: glucagon-like peptide-1[mh] AND cardiovascular diseases[majr] AND 2023:2024[dp] finds papers majoring on cardiovascular outcomes for GLP-1 agonists in 2023-2024.
pubmed_integrity_check reports relationships indexed by NLM. A citation without a flag has not thereby been independently validated.Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
{
"mcpServers": {
"pubmed": {
"url": "https://gateway.pipeworx.io/pubmed/mcp"
}
}
}
tools/list at https://gateway.pipeworx.io/pubmed/mcp returns the tools in the table
above plus the shared Pipeworx meta-tools — ask_pipeworx,
discover_tools, search_within, remember/recall and the rest of the
gateway-wide set. So the tool count you see is larger than this table: a
single-pack endpoint currently lists roughly 30 shared tools alongside the
pack's own. The connection's initialize response states its exact scope, and
is the authoritative answer for a given day.
This is deliberate, not multiplexing by accident. The meta-tools are what let a
scoped connection answer a question this pack does not cover — via
ask_pipeworx, which routes across the whole catalog — without you adding a
second MCP server. There is currently no way to mount a pack endpoint without
them; if the extra schemas cost you more context than the routing is worth,
connect to the full gateway once rather than to several pack endpoints.
Or connect to the full Pipeworx gateway to get every pack's tools listed directly, instead of just this one's:
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
Both URLs reach the same gateway and the same 1745+ data sources. The
only difference is which pack's tools are listed directly; ask_pipeworx
reaches all of them from either one.
curl -X POST https://gateway.pipeworx.io/v1/tools/search_pubmed \
-H 'Content-Type: application/json' \
-d '{"query":"\"cell-free RNA\"[tiab]","from_year":2024,"to_year":2026}'
No account needed for the first calls. Inspect any tool: GET https://gateway.pipeworx.io/v1/tools/search_pubmed. Find one: POST https://gateway.pipeworx.io/v1/tools/search_packs with {"query":"..."}.
This package also runs as a local stdio MCP server — no Pipeworx account, no gateway round-trip:
{
"mcpServers": {
"pubmed": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-pubmed"]
}
}
}
Or run it directly to confirm it starts:
npx -y @pipeworx/mcp-pubmed
It speaks MCP over stdin/stdout and answers initialize/tools/list/tools/call
for only this pack's tools — none of the shared meta-tools the gateway
connection above adds. Same source, same tools, no ask_pipeworx routing.
Instead of calling tools directly, you can ask questions in plain English — this works on the pack endpoint above as well as on the full gateway:
ask_pipeworx({ question: "your question about Pubmed data" })
The gateway picks the right tool and fills the arguments automatically.
MIT