While using LLMs to draft and review scientific literature and technical docs, I noticed a pattern that simple URL/regex checks completely miss:
- Fabricated IDs (404): Plausible-looking DOIs (10.1038/s41591-025-99999-z), PMIDs, or arXiv IDs that don't exist.
- "Chimera" citations (the nasty one): The LLM grabs a real DOI from a real paper (so a naive HTTP 200 check passes), but attaches a fabricated title, wrong first author, or wrong year.
- Silent retractions: Citing papers that have been formally retracted in Crossref or OpenAlex.
To fix this, I built citeguard-mcp — an open-source MCP server and CLI tool written in 100% Python standard library (zero third-party Python dependencies and zero API keys required).
It queries Crossref, DataCite (CERN Zenodo), PubMed (NCBI E-utilities), OpenAlex, and arXiv concurrently in real time.
Quickstart (Claude Code / Cursor / Claude Desktop):
claude mcp add citeguard -- uvx citeguard-mcp serve
Or in mcp.json / claude_desktop_config.json:
{
"mcpServers": {
"citeguard": {
"command": "uvx",
"args": ["citeguard-mcp", "serve"]
}
}
}
Standalone CLI & CI/CD usage (on .md, .tex, or .bib files):
pip install citeguard-mcp
citeguard audit manuscript.tex --strict
citeguard audit references.bib
citeguard verify "10.1038/s41586-021-03819-2" --title "Highly accurate protein structure prediction with AlphaFold" --author "Jumper" --year 2021
Tools exposed to the agent:
- verify_citation: verifies a DOI / PMID / arXiv ID and cross-checks claimed title, author, and year (VERIFIED, CHIMERA_MISMATCH, RETRACTED, FABRICATED_OR_UNRESOLVED).
- audit_document_citations: scans an entire draft or .bib file concurrently and returns a Citation Integrity Score (0-100%).
- search_verified_literature: lets the agent fetch real, registry-verified papers before writing a citation.
- generate_bibtex: produces clean deterministic @article{...} BibTeX blocks from a list of IDs.
- check_retraction: checks Crossref update-to notices and OpenAlex retraction flags.
Links:
- GitHub: https://github.com/Lukecele/citeguard-mcp
- PyPI: https://pypi.org/project/citeguard-mcp/
- Official MCP Registry: io.github.Lukecele/citeguard-mcp
Feedback, bug reports, or edge-case DOIs/BibTeX files are very welcome!