pubverify-mcp
Provides tools to search PubMed, retrieve normalized article metadata including MeSH, DOI, PMCID, retraction and erratum flags, verify citations, and export official citations from PubMed/NCBI data.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@pubverify-mcp check these 12 DOIs for retractions and give me APA citations for the valid ones"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
pubverify-mcp
English | 中文文档
A zero-dependency, pure-Python Stdio Model Context Protocol (MCP) server built for real biomedical research workflows: true corresponding-author verification, hallucination-proof citation auditing, official PubMed NLM/AMA/APA/BibTeX export, and open-access PMC full-text reading.
Why pubverify-mcp?
Ordinary PubMed MCP servers wrap basic esearch + efetch and stop there. When researchers actually use AI assistants to compile a PI's publication list, audit manuscript references, write grant proposals, or read paper methods, basic wrappers break in predictable ways:
Capability | Typical PubMed MCP |
|
Corresponding-author detection | Guesses last author (misses non-last co-corresponding) or checks email (false positives on journals that attach emails to every author) | 3-way cross-verification: PMC JATS XML ( |
Errata / Corrigenda handling | Mixed into article counts | Automatically flagged and separated from primary articles |
Hallucination & retraction audit | Single-paper lookup or none | Batch-verifies up to 25 DOIs/PMIDs against CrossRef + PubMed with retraction & erratum alerts |
Publication-ready citations | Hand-rolled strings or missing | Calls NCBI's official Citation Exporter for verbatim NLM / AMA / APA / MLA (auto-cleans |
PMC open-access full text | Often breaks on nested | Unwraps |
Runtime footprint | Heavy SDKs or 30+ noisy tools burning context tokens | 0 third-party dependencies (Python 3.10+ stdlib only), 6 focused tools, no API key required |
Related MCP server: pubmed-stream
Key Features
Three-Way Corresponding-Author Verification (
search_author_papers)PubMed XML does not contain a
<CorrespondingAuthor>tag.pubverify-mcpverifies correspondence using PMC JATS XML (<contrib corresp="yes">and<xref ref-type="corresp">) first, falls back to OpenAlex (authorships[].is_corresponding) for paywalled journals not in PMC (ACS, Elsevier, Wiley, Nature, etc.), and guards against all-author email dumps.Supports name variants (
"Jane Doe","Doe, Jane","Doe J") while rejecting same-initial homonyms, and separatesPublished Erratum/Corrigendumrecords automatically.
Batch Citation & Retraction Auditing (
verify_citations)Verify up to 25 DOIs or PMIDs in one call against CrossRef and PubMed.
Immediately catches hallucinated/non-existent DOIs, retracted publications, and linked errata.
Official Citation Export (
format_citations)Fetches official NLM, AMA, APA, or MLA citations directly from NCBI's
ctxpCitation Exporter API.Also generates clean BibTeX and RIS records from PubMed XML.
Converts inline HTML markup (
<sub>,<sup>,<i>) into clean Unicode (e.g.,RuO<sub>2</sub>→RuO₂).
Section-Aware PMC Full-Text Reader (
fetch_pmc_fulltext)Accepts either a
PMCIDor a numericPMID(auto-resolves toPMCID).Supports filtering specific sections (
abstract,intro,methods,results,discussion,concl) and truncates safely withinmax_chars(default30,000, max120,000).
Preprint & Multi-Source Fallback (
search_scholarly_source)Queries CrossRef, Europe PMC, bioRxiv, medRxiv, or OpenAlex when you need preprints, citation counts, or non-MEDLINE records.
Installation
Requires Python 3.10+. No API key is needed out of the box.
# Install directly from GitHub
pip install "git+https://github.com/drstrangerujn/pubverify-mcp.git"
# Or run isolated with uvx
uvx --from "git+https://github.com/drstrangerujn/pubverify-mcp.git" pubverify-mcp --versionVerify the installation:
pubverify-mcp --version
pubverify-mcp --list-toolsClient Configuration
Codex CLI
codex mcp add pubverify -- pubverify-mcpOr add to ~/.codex/config.toml:
[mcp_servers.pubverify]
command = "pubverify-mcp"Claude Desktop / Cursor / Windsurf / Antigravity
Add to your MCP config file (e.g. claude_desktop_config.json, .cursor/mcp.json, or ~/.gemini/config/mcp_config.json):
{
"mcpServers": {
"pubverify": {
"command": "pubverify-mcp",
"args": []
}
}
}Optional Environment Variables
Everything works keyless by default. For heavy batch workloads, you can pass optional env vars:
Variable | Purpose |
| Increases NCBI E-utilities rate limit from 3 req/s to 10 req/s |
| Sent as |
Tool Reference
Tool | Required Args | Key Optional Args | Returns |
|
|
| Normalized PubMed records with MeSH, DOI, PMCID, retraction & erratum flags |
|
|
| Verified corresponding-author papers with |
|
| — |
|
|
|
| Per-PMID citations + ready-to-paste |
|
|
| Clean section map, |
|
|
| Normalized records with DOIs / citation counts / retraction flags |
Usage Examples (Natural-Language Prompts)
Once connected to your AI assistant, you can ask directly:
Compile a verified corresponding-author publication list:
"Find all osteoarthritis papers published since 2024 where Jane Doe (Harvard Medical School) is a corresponding or co-corresponding author, exclude errata, and export them in official NLM format grouped by year."
Audit references before manuscript submission:
"Verify these 18 DOIs and PMIDs from my draft—flag any non-existent DOIs, retracted papers, or published errata."
Extract Methods & Results without downloading PDFs manually:
"Fetch the Methods and Results sections of PMID 35165404 from PMC and summarize the cohort size and statistical model."
Check preprints alongside PubMed:
"Search bioRxiv and PubMed for spatial transcriptomics in synovial fibroblasts published in 2025–2026."
Development & Testing
git clone https://github.com/drstrangerujn/pubverify-mcp.git
cd pubverify-mcp
pip install -e . pytest ruff build
ruff check src tests
pytest
python -m buildAll unit tests run 100% offline via injectable mock transports (src/pubverify_mcp/http_client.py) and cover PMC BioCCollection unwrapping, non-last co-corresponding verification, all-author email false-positive guards, retraction detection, HTML subscript cleanup, and MCP JSON-RPC framing.
License
Available Tools
6 toolsfetch_pmc_fulltextA
Fetch open-access PubMed Central (PMC) full-text sections via NCBI BioC JSON API from a PMCID or PMID (auto-resolved to PMCID). Properly unwraps BioCCollection documents and strips boilerplate reference/funding sections.
Inputs: identifier (required), sections, max_chars.
format_citationsA
Export official PubMed NLM, AMA, APA, or MLA citations (via NCBI Citation Exporter) or BibTeX / RIS entries for a list of PMIDs. Automatically converts HTML / tags (e.g. RuO2) to clean Unicode text.
Inputs: pmids (required), style, clean_html.
search_author_papersA
Search PubMed for an author's papers (with optional affiliation, topic, and year filters) and verify TRUE corresponding authorship—including non-last co-corresponding authors—using three-way cross-checking (PMC JATS XML + OpenAlex + selective PubMed affiliation guard against Elsevier all-author emails). Automatically separates errata.
Inputs: author (required), limit, topic, year_to, +5 more.
search_pubmedA
Search PubMed (MEDLINE) via NCBI E-utilities with MeSH/Boolean queries and year range filters. Returns PMID, PMCID, DOI, authors, journal, dates, abstract, MeSH terms, retraction status, and erratum flags.
Inputs: query (required), sort, limit, year_to, +3 more.
search_scholarly_sourceB
Search CrossRef, Europe PMC, bioRxiv, medRxiv, or OpenAlex for preprints, citation counts, or non-PubMed scholarly records.
Inputs: query (required), source (required), limit.
verify_citationsA
Batch-verify up to 25 DOIs (via CrossRef) or PMIDs (via PubMed) to detect hallucinated/non-existent references, retractions, and errata, returning verified bibliographic metadata.
Inputs: items (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Most tools have clearly distinct purposes: verification, formatting, full-text retrieval, and cross-source search are separable. The main overlap is between search_pubmed, search_author_papers, and search_scholarly_source, though their descriptions clarify PubMed-wide search vs author-specific authorship verification vs non-PubMed/preprint sources.
All six tools follow a consistent snake_case verb_noun pattern: search_pubmed, search_author_papers, verify_citations, format_citations, fetch_pmc_fulltext, and search_scholarly_source. The naming is predictable and readable.
Six tools is well-scoped for a PubMed citation verification and formatting server. Each tool appears to earn its place by covering search, author verification, batch verification, citation formatting, full-text retrieval, and alternative scholarly sources.
The surface covers the core scholarly verification lifecycle: search, author-specific search, citation verification, formatting, full-text retrieval, and non-PubMed sources. Minor gaps include no dedicated single-record lookup by PMID/DOI outside the batch verification flow, but agents can work around this through existing search and verification tools.
Maintenance
Related MCP Connectors
Catch AI-fabricated citations (real DOI + fake title). Retraction, open-access, 10,000+ CSL styles.
Checks AI-written references against Crossref, PubMed and OpenAlex. Formats citations, PRISMA.
Check if references exist or were retracted, look up journal AI policies, and preview manuscripts.
Search arXiv/Semantic Scholar/OpenAlex + medical evidence (PubMed/Europe PMC) + LaTeX/PDF tools.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenancePapers by Ouroboros Apps (https://ouroborosapps.com). Research paper search with real citations from OpenAlex, Semantic Scholar, PubMed, Crossref, and arXiv: find papers, fetch abstracts, follow citations, and format references. Connect by pasting https://papers-mcp.vercel.app/mcp into Claude, Cursor, Grok, or ChatGPT developer mode (OAuth). Docs: https://ouroborosapps.com/docs/papersMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to run PubMed searches in plain English, download full-text articles from PubMed Central, and map the similar, citing and cited evidence around key papers. It also builds an Obsidian knowledge graph of a study's literature, with retractions flagged and citations traceable to papers the assistant read.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to search PubMed and PMC, retrieve abstracts and full-text sections, count hits, find similar articles, look up citation counts via NIH iCite, convert PMID/PMCID/DOI identifiers, and export references as RIS for reference managers. Runs self-hosted on Cloudflare Workers as a single-user server reachable only through a secret URL.MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to format APA/MLA references and in-text citations, look up DOIs, convert BibTeX/CSL-JSON, check references for duplicates, and preflight drafts for word counts, missing citations, punctuation, and grammar.7268 npmMIT