Repository avatar
Search & Data Extraction
v0.12.0
active

pubmed-search-mcp

io.github.u9401066/pubmed-search-mcp

Multi-source biomedical literature search: PubMed, Europe PMC, OpenAlex, full text, citations

Documentation

PubMed Search MCP

繁體中文 · Documentation site · Release history

An agent plugin for biomedical literature research. The host agent chooses a search strategy, follows citations and records what it read. The MCP server queries providers and keeps identifiers, search runs and evidence artifacts. A colleague using the same research workspace can pick up the outstanding reading.

The PubMed search code can be traced to November 25, 2025 in med-paper-assistant. GitHub records December 2, 2025 as the creation date of this repository. The first PyPI distribution followed on December 8. Project history and primary records

How an agent explores, expands, examines and explains a literature question

Quick install

Choose a versionStart here
Published v0.14.0Configure the client's stdio command as uvx, with pubmed-search-mcp@0.14.0 as its argument. Set NCBI_EMAIL to your research contact. The package exposes 46 MCP Tools, including a persistent research workspace and register_fulltext. On first start it downloads NLM's MeSH (about 65 MB) in the background for local MeSH lookups.
Development checkoutBuild the plugin from this checkout with the command below to test local changes.
uv run --frozen python scripts/build_agent_plugin.py --dev-output build/pubmed-research-plugin

Select the generated directory in your agent's plugin installer. Keep the checkout available. The generated launcher uses this source tree. The version-pinned launcher in plugins/pubmed-search/ uses the published package. Client configurations and plugin installation

Four blinded review cases tested whether MeSH previews improve search decisions. Methods, screening costs and results

What's new in v0.14.0

  • Research Chronicle reads the whole literature of a topic: each build computes the topic's citation structure on its complete PubMed set (up to 10,000 papers), not only the ranked candidates, which in the measured spike held 3 of the 26 papers on the citation main path. output="structure" gives the main path of all literature and of primary studies, roots outside the query that much of the set cites (for ketamine in depression, the two founding trials the query missed), recent papers attached to the path, and retracted papers that lie on a path with the share of citation paths through them. Spike
  • Time on two axes: as_of_year rebuilds the field as it stood at the end of a year, as a separate chronicle whose entries are selected by PubMed relevance rather than later citations, and recorded_on reads what had been recorded at a past moment. compare sets a live main path beside its historical cut. Time and space design (繁中)

v0.13.0 added a local MeSH vocabulary (about 1 ms per lookup), phrase-level concept mapping, searches about four times faster, retraction and correction notices on every record, evidence_check, evidence_ledger, and an opt-in core tool profile. Local MeSH · performance round v0.12.0 added fulltext beyond PMC XML, fulltext_plan, register_fulltext and compact JSON search records (import articles wholesale with options="full_records").

Details: CHANGELOG.

Start with a research question

For example, ask the agent to trace the early development of cochlear implants and leave the next paper to read for a colleague. Choose a workflow before memorizing 46 tool names.

Research taskWhat the agent can do
Define the scopeExpand MeSH and synonyms, validate agent-supplied PICO, or compare which papers a Boolean condition excludes. PubMed combination example
Search and extendSearch several providers, inspect per-source failures, then follow related papers, references or citing articles. User guide
Read and verifyInspect an abstract, an available full-text passage, figures or bibliography matches. Use diagnose_institutional_access for a configured resolver. Record the source and what was actually read. Tool guide
Reuse a review strategySave a PICO or citation-expansion pipeline, retrieve the complete PubMed set, export PRISMA-S records and RIS/CSV, analyse each concept block's contribution and log screening decisions for PRISMA 2020 counts. Eligibility judgements and statistical pooling remain researcher tasks. Pipeline tutorial
Explore research historyReview dated Chronicle branches, landmarks, earlier alternatives and revision differences. Historical case and workspace handoff
Share resultsExport citations or notes, record source identifiers and leave an open action. The host can cross-check an authorized local Zotero library. Capability inventory and evidence

For each of the 16 registry categories, see the implementation evidence and remaining limits in the inventory. The tool-by-tool audit and generated index give individual contracts.

Search limits and recovery

Generic literature discovery uses exactly one MCP entry point, unified_search. Deep search is precision-first: your query gets each source's full result budget, and lower-precision strategies only fill missing slots, disclosed in broadening. Inspect search_status and the run artifact before interpreting a small or empty result. OA identifiers, authorized institutional access and local copies determine which full-text passages can be read.

The search-run/v1 journal also covers inline, saved:<name>, or dry_run=true pipeline execution. Use read_session(request={"action":"replay_search","run_id":"..."}) to recover the original credential-free arguments. There is no public cursor-resume parameter yet. Submitting the recovered request starts a new search. A reply with search_run.status="history_unavailable" has no guaranteed durable replay. Recovery and artifact formats

Configuration

RuntimeState and access
stdio or loopback HTTPTrusted single-user deployment with a durable default tenant. The HTTP entry point is pubmed-search-mcp-http --mode local --host 127.0.0.1.
Authenticated service--mode service fails closed without a bearer principal. Authenticated callers cannot load file: pipelines or choose a server-host note path. The service Compose scheduler is disabled. Deployment
Copilot StudioSet PUBMED_AUTH_TOKENS and an assigned NGROK_DOMAIN before using scripts/start-copilot-studio.sh --with-ngrok. The local smoke launcher exercises the same canonical 46-tool strict registry. Copilot integration

Modern 2026-07-28 clients use MCP SDK v2 requests. Python applications can call pubmed_search.api directly. The optional pubmed-browser-fetch-broker runs on a machine with an authorized browser session. Integration guide · Python facade

Skills and development

Usage Skills (13) are shipped with the release plugin. Development Skills (15) stay in the repository for contributors. Plugin skills · Architecture · Testing · Contributing

Citation and license

We welcome patches, reproducible search cases, historically sourced Chronicle corrections and documentation updates. Include the version or commit you used and the observation you want someone else to reproduce. Contribution guide · Issues

The software is distributed under Apache License 2.0. When redistributing it, include the license, retain applicable notices and mark files you change. Articles, figures and datasets retrieved through the tools remain subject to their source terms. License text

Cite the software version used, and the commit for a branch experiment. Cite original papers for research claims. The manuscript is a working draft. Software citation · Manuscript and evaluation · Apache License 2.0

PYPI
pubmed-search-mcp
Install Command
pip install pubmed-search-mcp
Runtime: uvx