Skip to content
mcp/skillhub

Pubmed MCP Server

by cyanheadsio.github.cyanheads/pubmed-mcp-serverv2.10.22

Search PubMed/Europe PMC, fetch articles and full text (PMC/EPMC/Unpaywall), citations, MeSH terms.

163Node.jsstdioremoteofficial registry

context tax

~7,389 tok/turn11 tools

security

100/100

cold start

pending

freshness

Active29d ago

Our reading of Pubmed, from the data

Pubmed is a science & research MCP server from cyanheads, listed in the official MCP Registry.

Its 11 tools add about 7,389 tokens to every model turn, heavier than the science & research median of 1,744 tokens across 312 measured servers (measured 2026-10-19).

Maintenance is active: the last public signal was 29 days ago (2026-10-12). For comparison, 72% of science & research servers are active or maintained.

With 163 GitHub stars it ranks #33 of 1,435 science & research servers we index.

It runs either locally over stdio or as a hosted endpoint.

Install Pubmed MCP server

Install in Claude Code

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

Try it in a sandbox first: this installs it with scripts off and starts it with no network, then lists its tools and token cost. How it works

npx mcpskillhub test @cyanheads/pubmed-mcp-server

Configuration

VariableRequiredSecretDescription
MCP_LOG_LEVEL——Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').
NCBI_API_KEY——NCBI API key for higher rate limits (10 req/s vs 3 req/s).
NCBI_ADMIN_EMAIL——Contact email sent with NCBI requests (recommended by NCBI).
UNPAYWALL_EMAIL——Contact email for Unpaywall. When set, pubmed_fetch_fulltext falls back to Unpaywall open-access copies for DOIs not in PMC.
MCP_TRANSPORT_TYPE——Selects the HTTP transport.
MCP_HTTP_HOST——The hostname for the HTTP server.
MCP_HTTP_PORT——The port to run the HTTP server on.
MCP_HTTP_ENDPOINT_PATH——The endpoint path for the MCP server.
MCP_PUBLIC_URL——Public origin override for deployments behind a TLS-terminating reverse proxy (e.g. https://mcp.example.com).
MCP_AUTH_MODE——Authentication mode to use: 'none', 'jwt', or 'oauth'.

Remote endpoints

  • streamable-httphttps://pubmed.caseyjhand.com/mcp

Context tax

Connecting this server adds ~7,389 tokens of tool definitions to every model turn (heavy, 11 tools). Measured 2026-10-19 via its hosted endpoint; o200k tokenizer, worst case for clients that load all tools up front. How we measure

ModelPer 1,000 turnsWith prompt caching
Claude Opus 5.5$29.56$1.48
Claude Sonnet 5.5$14.78$1.48
Claude Haiku 5.5$0.739—

Input prices as of 2026-10-06. Excludes your own prompt and output.

Tools (11)

  • pubmed_fetch_fulltexthttp2,174 tok

    Fetch full-text articles from PubMed Central as structured sections — the body, then back matter such as acknowledgments, declarations, and appendices — with tables and references. When PMC misses, transparently falls back to Europe PMC `fullTextXML` (structured JATS for records with a PMC counterpart), then to Unpaywall — publisher-hosted or institutional open-access copies as HTML-as-Markdown or PDF-as-text. Name articles by `pmcids` (PMC IDs directly), `pmids` (PubMed IDs, auto-resolved), `dois` (DOIs, auto-resolved to PMC via the ID Converter; preprints and EPMC-only OA fall through to the

  • pubmed_search_articles1,073 tok

    Search 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 result sets.

  • pubmed_europepmc_search951 tok

    Search Europe PMC, a broad open-access biomedical corpus. Surfaces preprints (`source: PPR`), patents (`source: PAT`), Agricola (`source: AGR`), plus everything in PubMed (`MED`) and PMC. Use when additional coverage is needed — preprints and EPMC-only OA records are the typical recovery. Paginate via `cursorMark`. Defaults to `MED`, `PMC`, and `PPR`; pass `sources` to include `PAT` / `AGR`. Abstracts arrive as a bounded `abstractSnippet` with `abstractTruncated` marking the cut ones — pass a hit to `pubmed_europepmc_fetch` as `records: [{ source, epmcId }]` for the complete abstract.

  • pubmed_europepmc_fetchhttp664 tok

    Fetch complete Europe PMC records — including the full, untruncated abstract — addressed as `records: [{ source, epmcId }]`, an array even for one record. Pairs with `pubmed_europepmc_search`, which returns bounded `abstractSnippet` values and flags cut ones with `abstractTruncated: true`; copy each hit's `source` and `epmcId` into `records` here to read the whole abstract. This is the retrieval path for preprint (`PPR`), patent (`PAT`), and Agricola (`AGR`) records, which frequently carry no PMID and no DOI, so `pubmed_fetch_articles` and `pubmed_fetch_fulltext` cannot address them. Up to 25

  • pubmed_lookup_citation526 tok

    Look up PubMed IDs from partial bibliographic citations. Useful when you have a reference (journal, year, volume, page, author) and need the PMID — deterministic citation matching, more reliable than free-text search for structured references. Each citation must include at least journal or a four-digit year (ECitMatch primary-keys on journal+volume+page; author-only or volume-only inputs guarantee no match); more fields = better match accuracy.

  • pubmed_fetch_articleshttp460 tok

    Fetch full article metadata by PubMed IDs. Returns detailed article information including abstract, authors, journal, MeSH terms, and linked retraction, erratum, and comment notices; grants and the members of a collective author are opt-in (`includeGrants`, `includeInvestigators`). Set `maxResponseCharacters` to bound the whole response: articles past the ceiling are deferred whole and listed in `deferred.ids` for a follow-up call.

  • pubmed_format_citations305 tok

    Get formatted citations for PubMed articles in one or more formats (apa, mla, bibtex, ris, vancouver). Pass a single format as a string or multiple as an array. Retractions, errata, and expressions of concern NCBI links to an article come back in `notices`; Vancouver and APA also cite a retraction in the reference itself.

  • pubmed_convert_ids295 tok

    Convert between article identifiers (DOI, PMID, PMCID). Accepts up to 50 IDs of a single type per request. Only resolves articles indexed in PubMed Central — for articles not in PMC, use pubmed_search_articles instead.

  • pubmed_lookup_mesh255 tok

    Search and explore the MeSH (Medical Subject Headings) controlled vocabulary. Returns descriptor records with tree numbers, scope notes, and entry terms, plus pagination via offset for paging past the maxResults cap.

  • pubmed_spell_check251 tok

    Spell-check a PubMed search query against NCBI ESpell and get the corrected query back. Use after a zero-hit or thin `pubmed_search_articles` result, or when a drug, gene, disease, or author name may be misspelled. Corrections are applied in place, so field tags, operators, spacing, and gene symbols stay as written (`alzhiemer diseese treatmnt outcomse` → `alzheimer disease treatment outcomes`). Words in all capitals, with digits or non-ASCII letters, or differing only in case are never changed, words after a number or symbol ESpell skips are left as written, and `hasSuggestion` is false when

  • pubmed_find_related240 tok

    Find articles related to a source article — similar content (similar), articles citing this one (cited_by), or articles this one cites (references). Uses NCBI ELink as the primary source; falls back to Europe PMC then OpenAlex when NCBI is unavailable.

Security signals

100/100 — no known issues found as of 2026-10-19, from the checks below. This is not a guarantee of safety; review what a server can do before connecting it.

Deductions

No findings from the checks that ran.

Checks

  • ✓Repository hygiene (archived, activity, license, security policy)
  • ✓Tool descriptions (prompt-injection and hidden-text heuristics)
  • ○Package metadata (install scripts, provenance) — pending
  • ○Source scan (secrets, CVEs, risky code) by vectra-guard — pending

Scan it yourself before installing with vectra-guard, the open-source agent security CLI (made by NavyaAI, which also runs MCPSkillHub). Scoring rules

Freshness

Active — last maintenance signal 29d ago. The newest of the signals below sets the band.

  1. Last commit (default branch)

    2026-10-12 · 29d ago · GitHub

  2. Latest release

    2026-10-12 · 29d ago · GitHub · v2.10.22

  3. Package published

    no data · npm/PyPI

  4. Registry entry updated

    2026-10-12 · 29d ago · official registry · v2.10.22

How it compares in Science & Research

Against the most-starred science & research servers we index. Token cost is per model turn, measured from each server's live tool list.

ServerStarsToolsTokens / turnFreshnessRuns
Pubmed (this)163117,389Activelocal + hosted
Wigolo5,486—not measuredActivelocal
Zotero5,460—not measuredActivelocal
Exa5,1382564Activelocal + hosted
Postgres3,403—not measuredMaintained—
Arxiv3,224193,728Activelocal
All science & research MCP servers

FAQ

›How do I install the Pubmed MCP server in Claude Code?

Run: claude mcp add pubmed-cyanheads -- npx -y @cyanheads/pubmed-mcp-server. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.

›Does Pubmed require an API key?

No required environment variables are declared in its published metadata.

›Can I use Pubmed as a remote (hosted) MCP server?

Yes — it offers both a hosted endpoint and a local stdio package.

›Is Pubmed in the official MCP registry?

Yes, as io.github.cyanheads/pubmed-mcp-server.

›How many tokens does Pubmed add to my context?

Its tool definitions total about 7,389 tokens, resent on every turn.

Sources and method

Official MCP Registry entry
updated 2026-10-12
GitHub repository
fetched 2026-10-19
Package registry (npm / PyPI)
listed
Last checked against all sources
2026-10-19

The description, packages and links come from the maintainer's own published metadata. Token cost, security signals, freshness and the reading above are MCPSkillHub's own measurements; see the methodology. Editorial standards are owned by Ramachandra Vikas Chamarthi, Founder & AI HPC Architect. Spot an error? Request a correction or claim the listing.

Alternatives to Pubmed

Other science & research MCP servers.

View all