pubmed_mcp_server2
v2.1.1Local 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.
search
Search PubMed with MeSH support, structured filters, pagination, and selectable output verbosity. output_mode=minimal returns id/title/url/full_text_available only (legacy-compatible); compact (default) adds authors/journal/year/doi/pmcid; full additionally includes abstract/mesh_terms/publication_types. full_text_available=true means a PMCID exists (usable with get_full_text). warnings lists PubMed query errors (e.g. unknown phrase or field tag) — check it when total is 0.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query string with MeSH/PubMed syntax support |
filters | object | Structured filters AND-ed onto the query: date_range, publication_types, languages (ISO-3), humans_only, has_abstract, free_full_text. free_full_text uses PubMed's "free full text" subset, which also… |
output_mode | string | Output verbosity: minimal | compact (default) | full |
retmax | integer | Maximum results per page (1-500, default 50) |
retstart | integer | Result offset for pagination (default 0) |
sort | string | Sort order |
fetch
Retrieve abstract for a single PMID (OpenAI MCP compliant). Accepts exactly one PMID. For multiple PMIDs, use fetch_batch.
| Parameter | Type | Description |
|---|---|---|
id * | string | Single 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).
| Parameter | Type | Description |
|---|---|---|
pmids * | array | List of PubMed IDs (PMIDs) |
include_abstract | boolean | Whether 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.
| Parameter | Type | Description |
|---|---|---|
pmcIds * | array | PMC IDs (with or without 'PMC' prefix). Max 20 per request. |
sections | array | Sections 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).
| Parameter | Type | Description |
|---|---|---|
query * | string | Search 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.
| Parameter | Type | Description |
|---|---|---|
pmid * | string | PubMed ID of the reference article |
retmax | integer | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
pmids * | array | List 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).
| Parameter | Type | Description |
|---|---|---|
pmids * | array | List of PubMed IDs (PMIDs), max 1000 |
citing_source | string | 'icite' (default, counts and metrics) or 'pubmed' (elink, includes citing PMIDs) |
include_citing_pmids | boolean | If true and citing_source='pubmed', include the list of citing PMIDs |
include_references | boolean | If 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.
| Parameter | Type | Description |
|---|---|---|
from_type * | string | Type of input identifiers |
ids * | array | List of identifiers to convert |
to_type * | string | Desired 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).
| Parameter | Type | Description |
|---|---|---|
operations * | array | Which operations to run |
pmids * | array | PMIDs to operate on |
max_concurrency | integer |