citeguard is a tool for checking the status of academic citations. Its main function is to query Crossref and determine whether a cited reference has been retracted, corrected, or has an Expression of Concern. It was developed by wedo911, is hosted on GitHub, and uses the MIT license.
Purpose
Retracted papers may still be cited for many years after retraction. For example, Andrew Wakefield's 1998 fraudulent paper on the association between the MMR vaccine and autism was retracted in 2010, but has since been cited more than a thousand times, and many citers do not easily learn that it has been retracted. A 2026 JMIR study found that freely available AI tools "cannot reliably flag retracted literature." citeguard aims to fill this gap: before a citation enters a paper, abstract, or review, it checks its status for free through Crossref, with no API key required.
Main capabilities
citeguard provides three usage interfaces that share the same empirically validated detection algorithm:
- Python CLI/library: Installable via PyPI under the package name citeguard-cli (because the ordinary citeguard name on PyPI belongs to another unrelated project), but the command and import name remain citeguard.
- MCP server: Published on npm under the package name citeguard-mcp-server, with no need to clone or build. It can be added to a client's configuration (for example, .mcp.json). To run it from a local checkout, point command to node and args to mcp-server/dist/index.js.
- GitHub Action: Published on the GitHub Marketplace and can be added to any repository that stores manuscripts and their references.
The detection logic is not guessed from documentation, but built by querying Crossref's real API to obtain known cases and reading the actual response structure, and then writing tests against saved real responses (committed in tests/fixtures/, shared by the Python and TypeScript implementations). Two real papers serve as ground truth:
- Wakefield et al. 1998, The Lancet》(MMR-autism paper): the publisher's own Crossref metadata has no structured retraction data, and checking only update-to would silently miss it. What actually carries the signal is the separate updated-by field, where Crossref backfilled retraction information from the Retraction Watch database (along with a 2004 correction). Missing this field would mean missing the most famous retracted paper in medicine.
- Mehra et al. 2020, The Lancet (the Surgisphere-related COVID/hydroxychloroquine paper): the publisher attached structured data directly via update-to. A different field, a different source, but the same underlying fact.
- Watson & Crick 1953, Nature serves as the clean control in every test suite—a paper that is definitely real and definitely not retracted, and that should never be flagged.
Therefore, the checker looks at three independent signals in order: update-to (publisher assertion), updated-by (usually from Retraction Watch, which catches cases publishers miss), and a title-prefix fallback ("RETRACTED:", "WITHDRAWN:", etc.) for older or unlinked cases where neither field has structured metadata. Each signal maps to the correct severity—an "Expression of Concern:" title is not the same thing as a retraction, and the fact that earlier versions of the code merged this distinction was itself a bug, discovered through tests against real titles rather than only synthetic ones. The fully annotated implementation is in src/citeguard/analyze.py.
How to Use
- Python CLI/library: install citeguard-cli from PyPI; the command and import name are citeguard.
- MCP server: add citeguard-mcp-server to your client configuration (such as .mcp.json); or run it from a local checkout with command set to node and args set to mcp-server/dist/index.js.
- GitHub Action: add it from the GitHub Marketplace; it can be included in any repository that stores manuscripts and references.
When It Applies
It is suitable for researchers, academic writers, and review authors when writing citations intoBefore a paper, abstract, or review, quickly check whether cited references have been retracted, corrected, or have an expression of concern. Also applies to GitHub repositories that need automated checking of references.
Limitations
- Does not prove that the content of a paper is correct. It only checks retraction status, not whether the findings of a non-retracted paper hold up.
- Not exhaustive. The title-prefix heuristic only captures the publisher conventions it has been tested against; a clean result means "no known signal found," not "guaranteed never retracted."
- Not a bulk scraping tool. It is built for the scale of real references (dozens of citations), with a small fixed delay between Crossref requests and an optional persistent cache (src/citeguard/cache.py) — this is good API citizenship toward a free public service, not a tool for scanning millions of DOIs.
Tests
Both test suites are network-free and deterministic — they run against committed real API responses rather than live calls, so they are fast and do not depend on Crossref reachability. Live end-to-end behavior (the actual CLI, the actual MCP tool, hitting the real API) has been separately manually verified during development; the GitHub Action also has its own CI job (action-smoke-test) that runs the real composite action against a known-retracted and a known-clean reference on every push, so the Action itself — not just the underlying library — is continuously verified against the live API.
New signal types, additional publisher title conventions, and false-positive reports are welcome. If adding cases, prefer adding real, cited Crossref fixtures over synthetic ones whenever possible — this is exactly what led the project's own test suite to find two real bugs during development (a URL-encoding bug in the DOI request path, and a BibTeX parser that could swallow an adjacent entry when parsing a malformed @comment block).
Citation
citeguard is archived on Zenodo and assigned a DOI, so it can be cited in papers: Bajaman, W. (2026). citeguard: retraction, correction, and expression-of-concern checking for citations. Zenodo. https://doi.org/10.5281/zenodo.22115109 This DOI always resolves to the latest archived version. GitHub's Cite this repository button can generate BibTeX and APA from CITATION.cff.
License
MIT — see LICENSE.