Skip to main content

🛡️ CiteGuard MCP (citeguard-mcp)

Stop LLMs from Hallucinating Fake Papers, Chimera DOIs, and Retracted Citations.
Zero-config Model Context Protocol (MCP) Server & CLI for Claude Code, Cursor, Windsurf, VS Code Copilot, and CI/CD pipelines.

CI PyPI DOI bio.tools Glama MCP Server Python 3.10+ MCP Compatible Zero Dependencies License: MIT

CiteGuard MCP Terminal & Anti-Hallucination Audit Demo

🚨 Why CiteGuard?

Even frontier LLMs frequently fail at scientific and technical citations in three insidious ways:

  1. ❌ Fabricated Identifiers (FABRICATED_OR_UNRESOLVED): Inventing plausible-looking DOIs (10.1038/s41591-025-99999-z), PubMed PMIDs, or arXiv IDs that return 404.
  2. ⚠️ Chimera Citations (CHIMERA_MISMATCH): Grabbing a real DOI from a famous paper (so naive regex/HTTP checks pass!) but attaching a completely fabricated title, wrong author, or wrong year.
  3. 🚨 Silent Retractions (RETRACTED): Citing papers that have been formally retracted in Crossref, PubMed, or OpenAlex.

citeguard-mcp solves all three with zero API keys and zero third-party Python dependencies (100% Python standard library), querying Crossref, DataCite (CERN Zenodo), PubMed (NCBI E-utilities), OpenAlex, and arXiv in real time.


⚡ 10-Second Quickstart

1. Plug into Claude Code / Claude Desktop / Cursor / Windsurf (MCP Server)

Claude Code (CLI)

claude mcp add citeguard -- uvx citeguard-mcp serve

Cursor / Claude Desktop / Windsurf (mcp.json or claude_desktop_config.json)

{
  "mcpServers": {
    "citeguard": {
      "command": "uvx",
      "args": ["citeguard-mcp", "serve"]
    }
  }
}

Docker / GHCR (ghcr.io/lukecele/citeguard-mcp · Official MCP Registry io.github.Lukecele/citeguard-mcp)

{
  "mcpServers": {
    "citeguard": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "ghcr.io/lukecele/citeguard-mcp:0.1.4"]
    }
  }
}

2. Run Directly from the Terminal (CLI)

# Install via pip / pipx / uv (or run zero-install with: uvx citeguard-mcp --help)
pip install citeguard-mcp

# 1. Audit an entire Markdown manuscript, LaTeX file, or BibTeX bibliography
citeguard audit manuscript.md --strict
citeguard audit references.bib

# 2. Verify a single DOI + detect Chimera title/author/year hallucinations
citeguard verify "10.1038/s41586-021-03819-2" \
  --title "Highly accurate protein structure prediction with AlphaFold" \
  --author "Jumper" --year 2021

# 3. Search 100% verified literature across OpenAlex, PubMed, Crossref & arXiv
citeguard search "spatial transcriptomics drug resistance" --limit 5

# 4. Generate clean, deterministic BibTeX from a mix of DOIs, PMIDs, and arXiv IDs
citeguard bibtex 10.1038/s41586-021-03819-2 PMID:34265844 arXiv:1706.03762

# 5. Check if a DOI has been retracted
citeguard retraction "10.1016/S0140-6736(97)11096-0"

🧰 MCP Tools Exposed to Your AI Agent

Tool Name Description Registries Queried
verify_citation Verifies a DOI, PMID:xxxx, arXiv:xxxx.xxxxx, or paper title. Checks claimed title, author, and year to catch Chimera hallucinations and retractions. Returns canonical BibTeX & APA. Crossref · DataCite/Zenodo · PubMed · OpenAlex · arXiv
audit_document_citations Scans an entire Markdown, LaTeX, BibTeX, or draft LLM response concurrently and returns a Citation Integrity Score (0–100%) with per-citation diagnostics. All 5 registries (concurrent thread pool)
search_verified_literature Searches for real, peer-reviewed / preprint papers before the LLM writes a citation, returning verified DOIs, citation counts, open-access PDFs, and BibTeX. OpenAlex · PubMed (NCBI) · arXiv
generate_bibtex Resolves an array of DOIs, PMIDs, and arXiv IDs into normalized @article{...} BibTeX blocks. Crossref · DataCite · PubMed · arXiv
check_retraction Checks Crossref update-to notices and OpenAlex is_retracted metadata for retractions or expressions of concern. Crossref · OpenAlex

🤖 CI/CD Guardrail for GitHub Pull Requests

Prevent hallucinated or broken DOIs/BibTeX entries from ever being merged into your documentation or papers:

- name: Audit citations with CiteGuard
  run: |
    pip install citeguard-mcp
    citeguard audit paper.md --strict

🧪 Running Tests

git clone https://github.com/Lukecele/citeguard-mcp.git
cd citeguard-mcp
pip install -e ".[dev]"
pytest -v

👤 Author, Citation & License

Created by Luca Celebrano (@Lukecele · Independent Researcher · ORCID 0009-0007-0931-3555).
Archived at CERN Zenodo under DOI 10.5281/zenodo.24553130 (concept DOI: 10.5281/zenodo.24553129) and indexed on ELIXIR bio.tools (biotools:citeguard-mcp).
Released under the MIT License.

Metadata

Release files for citeguard-mcp 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for citeguard-mcp 0.1.4
File Size Uploaded Provenance Actions
citeguard_mcp-0.1.4.tar.gz 24.5 kB With provenance Details for citeguard_mcp-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for citeguard-mcp 0.1.4
File Interpreter ABI Platform Actions
citeguard_mcp-0.1.4-py3-none-any.whl Python 3 none any Details for citeguard_mcp-0.1.4-py3-none-any.whl

Total release size: 46.6 kB

Release files / citeguard_mcp-0.1.4.tar.gz

Download URL citeguard_mcp-0.1.4.tar.gz
Size 24.5 kB
Tags Source
SHA-256 checksum
How to use checksums
db045e67b0fb15816ef044f414160d56512aac7cc19413de7f73a23040ca2f5d
BLAKE2b-256 checksum
How to use checksums
74b0d86930de3d5db5de5b741f09de2dcd79c0f965d9e5626c96380eaadb7bab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / citeguard_mcp-0.1.4-py3-none-any.whl

Download URL citeguard_mcp-0.1.4-py3-none-any.whl
Size 22.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
58f752abf937258a67519d90f1e6e45554aa70330fdf54de68328aced14dbc9c
BLAKE2b-256 checksum
How to use checksums
db10ac69250cbc661f8a90a8fb01f89f5946984b581049188b0b7aa3e18f0f7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for citeguard-mcp 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for citeguard_mcp-0.1.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page