pubmed_mcp_server2

v2.1.1
pubmed_mcp_server2 Checked 3 days ago Published 21 days ago

Local stdio MCP server for PubMed with 10 tools: search, fetch, fetch_batch, get_full_text, count, find_similar_articles, export_to_ris, get_citation_counts…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

fetch

Retrieve abstract for a single PMID (OpenAI MCP compliant). Accepts exactly one PMID. For multiple PMIDs, use fetch_batch.

ParameterTypeDescription
id *stringSingle PubMed ID (PMID) — NO arrays or comma-separated values

fetch_batch

Retrieve abstracts for multiple PMIDs in a single batch request. Returns structured data per PMID. Set include_abstract=false to omit the abstract field (e.g., when you only need full author lists).

ParameterTypeDescription
pmids *arrayList of PubMed IDs (PMIDs)
include_abstractbooleanWhether to include the abstract field (default true)

get_full_text

Retrieve full text of articles from PubMed Central (PMC) by PMC ID. Supports section filtering to reduce token usage.

ParameterTypeDescription
pmcIds *arrayPMC IDs (with or without 'PMC' prefix). Max 20 per request.
sectionsarraySections to extract. Use specific sections to reduce token usage.

count

Get only the count of search results for query adjustment and optimization. Fast — retrieves no actual data. Useful for refining search strategies. warnings lists PubMed query errors (e.g. unknown phrase or field tag).

ParameterTypeDescription
query *stringSearch query string with MeSH/PubMed syntax support

find_similar_articles

Find similar articles for a given PMID using MeSH terms and title-based similarity. Useful for literature review and related research discovery.

ParameterTypeDescription
pmid *stringPubMed ID of the reference article
retmaxintegerMaximum number of similar articles (1-100, default: 20)

export_to_ris

Export PubMed articles to RIS format for citation managers (EndNote/Zotero/Mendeley). Returns compact RIS with minimal metadata — citation managers auto-fetch the rest via PMID.

ParameterTypeDescription
pmids *arrayList of PubMed IDs (PMIDs)

get_citation_counts

Get citation counts for PMIDs. Default source is iCite (counts plus relative citation ratio and other metrics, includes citations from outside PubMed; set include_references for referenced PMIDs). Set citing_source='pubmed' for elink-based PubMed-internal citations and to retrieve citing PMIDs (useful for forward snowballing).

ParameterTypeDescription
pmids *arrayList of PubMed IDs (PMIDs), max 1000
citing_sourcestring'icite' (default, counts and metrics) or 'pubmed' (elink, includes citing PMIDs)
include_citing_pmidsbooleanIf true and citing_source='pubmed', include the list of citing PMIDs
include_referencesbooleanIf true and citing_source='icite', include the PMIDs each paper references

convert_ids

Convert between PMID, PMCID, and DOI identifiers using NCBI ID Converter API. PMIDs/DOIs of articles not in PMC are resolved via PubMed as a fallback; such articles have no PMCID.

ParameterTypeDescription
from_type *stringType of input identifiers
ids *arrayList of identifiers to convert
to_type *stringDesired output identifier type

batch_process

Run multiple operations against the same set of PMIDs in one call. Helpful for systematic-review style workflows. operations is an array drawn from: 'abstract', 'citations', 'similar', 'ris_export', 'full_text'. Respects NCBI rate limits via max_concurrency (default 3).

ParameterTypeDescription
operations *arrayWhich operations to run
pmids *arrayPMIDs to operate on
max_concurrencyinteger