pypi retractguardstdioMITupdated 1mo ago
The free, open, OpenAlex-native watchdog for retracted and problematic citations.
What can you do with CiteGuard?
CiteGuard
The free, open, OpenAlex-native watchdog for retracted and problematic citations.
CiteGuard tells you β and keeps telling you β when your references, your authors, or your institution's papers cite research the community has flagged as retracted, corrected, or subject to an expression of concern.
It exists because the existing options each fall short: scite is proprietary and paywalled,
RetractoBot had to license Scopus (no open citation database existed at the time), and
OpenAlex collapses all editorial status into a single is_retracted boolean that can't tell
a retraction from a correction β and has produced false positives in the past.
Now that the Retraction Watch dataset is open (via Crossref) and the OpenAlex citation graph is CC0, CiteGuard can do this fully in the open, for free.
Status: early development. Building the MVP. See
GOAL.mdfor the mission andCLAUDE.mdfor the build guide.
What it does
- Check a reference list. Paste a DOI or upload a
.bibfile β get a per-reference status: retracted, corrected, expression of concern, hijacked-journal, or clean. - Nuanced status, not a boolean. Every flag carries its source (Retraction Watch / OpenAlex / Crossref), an evidence link, a date, and a confidence note. When sources disagree, CiteGuard surfaces the conflict instead of silently guessing.
- Watch an institution. Point it at a ROR ID β get a digest when any of that institution's works cites (or becomes) a newly-flagged paper.
- Use it from an AI agent. An MCP server exposes the same logic as tools
(
check_references,get_editorial_status,watch_institution) for Claude, Cursor, and any MCP-compatible client.
Why it's trustworthy
Integrity tooling can do real harm if it's wrong β a false "retracted" flag damages a real
author. CiteGuard is conservative by design: it corroborates before flagging, prefers
the documented editorial notice, and marks a work UNKNOWN rather than guess. Every core
capability ships with a published eval reporting precision and recall on a gold set.
Who it's for
- Research-integrity officers and journal editors screening submissions
- Academic librarians at OpenAlex-adopting institutions
- Systematic reviewers (one retracted included study can invalidate a review)
- Developers and meta-scientists building on the MCP server
- Authors checking their own bibliography before submission
Architecture
One core, two surfaces.
βββββββββββββββββββββββββββββββ
OpenAlex ββββββΆ β
(CC0 graph) β editorial-status model ββββΆ MCP server
β + resolution logic β (check_references,
Retraction βββΆβ (conservative) β get_editorial_status,
Watch (open) β β watch_institution)
β ββββΆ reference-list checker
Crossref ββββββΆ β (DOI / .bib β statuses,
(DOI norm.) βββββββββββββββββββββββββββββββ thin web UI)
Repository layout:
src/citeguard/
openalex.py # keyed, rate-aware, ID-lookup-first OpenAlex client
retractionwatch.py # ingest + normalize the Retraction Watch dump
status.py # the EditorialStatus model + resolution logic (core)
checker.py # reference-list checker (DOI / .bib -> statuses)
mcp_server.py # MCP server exposing the three tools
tests/ # pytest unit + functional tests
evals/ # gold sets + precision/recall harness
data/ # local RW dump + cached lookups (gitignored)
Design constraints (important)
- Free-tier-aware. OpenAlex API keys are required (since Feb 13, 2026); the free tier is small and search costs ~10Γ a record lookup. CiteGuard resolves to IDs first and looks up by ID; bulk work uses the free monthly snapshot, and the live API is reserved for incremental checks.
- Open and reproducible. CC0 ethos, with proper attribution to Retraction Watch and OpenAlex, thorough docs, and a Zenodo DOI.
Getting started (dev)
Requires Python 3.11+ and uv.
uv sync # install dependencies
export OPENALEX_API_KEY=... # your OpenAlex key
export CITEGUARD_MAILTO=you@example.org # polite-pool contact
uv run pytest # run tests
uv run python -m evals.run # run the eval harness (precision/recall)
uv run python -m citeguard.mcp_server # launch the MCP server locally
Connect it as an MCP server
CiteGuard exposes get_editorial_status, check_references, and watch_institution
to any MCP client. After pip install retractguard (or uv tool install retractguard),
the retractguard-mcp command launches the stdio server.
Claude Desktop β add to claude_desktop_config.json:
{
"mcpServers": {
"retractguard": {
"command": "retractguard-mcp",
"env": {
"OPENALEX_API_KEY": "your-key",
"CITEGUARD_MAILTO": "you@example.org"
}
}
}
}
Cursor / other clients β point them at the same retractguard-mcp command (stdio
transport). Running from a checkout instead of an install? Use
"command": "uv", "args": ["run", "retractguard-mcp"] with "cwd" set to the repo.
On first call the server downloads the Retraction Watch dump (~65 MB, free) into
CITEGUARD_DATA_DIR (default ./data). Editorial-notice lookups (Retraction Watch,
Crossref) need no key; OpenAlex corroboration and watch_institution do.
The web checker
A thin web UI for people who don't live in an editor β paste DOIs or drop a .bib file,
get a per-reference status table.
retractguard-web # then open http://127.0.0.1:8000
# or from a checkout: uv run python -m citeguard.web
Add Accept: application/json to POST /check to get the results as JSON instead of a
table. It reuses the same conservative resolution logic as the MCP server β no separate
code path, no separate trust model.
Roadmap (MVP)
status.pyβ the normalized editorial-status model (foundation)retractionwatch.pyβ ingest + normalize the Retraction Watch dumpopenalex.pyβ keyed, ID-first clientchecker.pyβ DOI /.bibβ statusesmcp_server.pyβ expose the three toolsevals/β gold set + precision/recall harness (running from step 2 onward)
Credits & data
- OpenAlex β CC0 scholarly metadata and citation graph.
- Retraction Watch β retraction database, made openly available via Crossref.
- Crossref β DOI infrastructure.
CiteGuard is independent and not affiliated with these projects; it builds on their open data with gratitude.
License
MIT (see LICENSE) β permissive and maximally reusable, in keeping with the
open-science ethos in GOAL.md.
The code is CiteGuard's. The data it builds on is not and carries its own terms:
Retraction Watch (via Crossref) and OpenAlex/Crossref metadata. CiteGuard redistributes
only a tiny evaluation extract (see evals/fixtures/ATTRIBUTION.md); anything at scale
should be fetched from the upstream sources under their licenses.
Install
Add CiteGuard to your client. Pick the one you use.
claude mcp add retractguard -- uvx retractguardcodex mcp add retractguard -- uvx retractguardamp mcp add retractguard -- uvx retractguard{
"mcpServers": {
"retractguard": {
"command": "uvx",
"args": [
"retractguard"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"retractguard": {
"command": "uvx",
"args": [
"retractguard"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"retractguard","command":"uvx","args":["retractguard"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"retractguard": {
"command": "uvx",
"args": [
"retractguard"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"retractguard": {
"command": "uvx",
"args": [
"retractguard"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"retractguard": {
"command": "uvx",
"args": [
"retractguard"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"retractguard": {
"type": "local",
"command": "uvx",
"args": [
"retractguard"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"retractguard": {
"command": {
"path": "uvx",
"args": [
"retractguard"
]
}
}
}
}Add to your Zed `settings.json`.
uvx retractguardRun `goose configure`, choose **Add Extension β Command-line Extension**, and paste this command.
Score
39 / 100
Incomplete
- Documentation25/25
- Maintenance16/25
- Trust13/20
- Capability0/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 46 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint β no local install
Version history
| Versions | Published |
|---|---|
| 0.1.2Latest | Jul 16, 2026 |
| 0.1.1 | Jul 13, 2026 |