refcheck
Uses the doi.org handle API to check whether a DOI is registered with any registration agency, helping validate cited DOIs.
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., "@refcheck check my reference list for hallucinated citations and fix any errors"
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.
refcheck: Reference Checker MCP Server
An MCP server that helps authors catch fabricated (hallucinated) or mis-cited references before submission, especially when writing with AI assistance. It looks each reference up in Crossref and OpenAlex, compares the cited details field by field with the real record, and returns a corrected BibTeX entry.
Tools
Tool | What it does |
| Checks a whole reference list (BibTeX, or plain text in APA, IEEE, ...) |
| Checks a single reference |
| Finds real papers for a topic or claim, with ready BibTeX |
| Builds a correct BibTeX entry for a DOI |
Result statuses
Status | Meaning |
| A real record matches and the cited details agree (minor notes possible) |
| The work exists but the citation has errors (year, authors, DOI, retracted...). A corrected BibTeX is included |
| A similar work exists but the match is uncertain. The author should check |
| No source has it: likely fabricated. Close candidates, if any, are listed under |
| A source type often missing from indexes (book, thesis, report, web page). Check manually |
| The sources could not be reached |
Detected problems: fully fabricated works, real titles with fabricated authors, non-existent DOIs, DOIs belonging to another paper, wrong year/volume/pages, retracted papers, and fabricated subtitles added to real titles.
Related MCP server: io.github.Hylouis233/bibverify
How references are verified
Data sources
All sources are free, public scholarly APIs; no account is needed.
Source | Used for |
DOI lookup and bibliographic search. Publisher-deposited metadata (title, authors, venue, volume, pages) is treated as authoritative when sources disagree. | |
Second, broader index: also covers preprints (arXiv), conference papers and works without a Crossref DOI. Provides the retraction flag and citation counts, and powers | |
doi.org handle API | Checks whether a DOI is registered at all, with any registration agency (e.g. DataCite for Zenodo), when Crossref and OpenAlex do not know it. |
Process
DOI check. If the reference has a DOI, it is looked up in Crossref, then OpenAlex. If neither knows it, doi.org says whether the DOI exists at all.
Search. Unless the DOI already gave a clear match, Crossref is searched with the full citation and OpenAlex with the title.
Merge. Records from both sources are deduplicated by DOI.
Match. Titles are compared strictly, so a fabricated title that reuses real keywords does not match. A similarity of 90+ counts as the same work, 75–90 as a possible match. When several records share a title (preprint and published versions, re-deposits, unrelated namesakes), the one most consistent with the citation wins: matching venue first, then fewest conflicting fields, then most citations. A similar title with none of the cited authors counts as a different paper.
Compare fields. Authors, year, DOI, venue, volume and pages are checked against the matched record, and each difference is reported with the correct value.
What is sent where
Only the reference itself (the citation text or its title) and DOIs are sent to
these APIs. No manuscript text leaves your machine. Responses are cached locally
for 30 days (see REFCHECK_CACHE).
Coverage
A work missing from both Crossref and OpenAlex is reported as not_found, so
sources those indexes miss (some books, theses, regional journals, grey
literature) can be false alarms. Theses and web pages are detected and reported
as unverifiable instead; for anything else marked not_found, the author
should still take a quick look before deleting it.
Installation
git clone <repo-url> refcheck
cd refcheck
python -m venv .venv
.\.venv\Scripts\pip install -e .On macOS/Linux use python3 -m venv .venv and .venv/bin/pip install -e ..
Connecting to an AI client
refcheck is a standard stdio MCP server, so it works with any MCP-capable client. Every client needs the same two things:
command: the server executable
Windows:
C:\path\to\refcheck\.venv\Scripts\refcheck-mcp.exemacOS/Linux:
/path/to/refcheck/.venv/bin/refcheck-mcp
env (optional):
REFCHECK_MAILTO=lab-contact@example.edu
Only the config file location and format differ. In JSON on Windows, write
backslashes in paths as \\. After changing a config, restart the client (or
reload the window) and approve the server when asked.
Once connected, ask for example: "Check this reference list: ..." or "Find real sources for this paragraph."
Claude Code (CLI and VS Code / JetBrains extensions)
Per project, create .mcp.json in the root of the folder you write in:
{
"mcpServers": {
"refcheck": {
"command": "C:\\path\\to\\refcheck\\.venv\\Scripts\\refcheck-mcp.exe",
"env": { "REFCHECK_MAILTO": "lab-contact@example.edu" }
}
}
}Or for all projects:
claude mcp add --scope user refcheck -e REFCHECK_MAILTO=lab-contact@example.edu -- C:\path\to\refcheck\.venv\Scripts\refcheck-mcp.exeRun /mcp in a new session to confirm that refcheck is connected.
Claude Desktop
Add the same mcpServers block to claude_desktop_config.json
(Windows: %APPDATA%\Claude\, macOS: ~/Library/Application Support/Claude/).
VS Code with GitHub Copilot (agent mode)
Create .vscode/mcp.json in the workspace (or run MCP: Add Server from the
command palette to add it to your user settings). Note the top-level key is
servers and the type field:
{
"servers": {
"refcheck": {
"type": "stdio",
"command": "C:\\path\\to\\refcheck\\.venv\\Scripts\\refcheck-mcp.exe",
"env": { "REFCHECK_MAILTO": "lab-contact@example.edu" }
}
}
}Open Copilot Chat in Agent mode; the refcheck tools appear under the tools icon.
Cursor
.cursor/mcp.json in the project, or ~/.cursor/mcp.json for all projects.
Same mcpServers block as Claude Code above. Check Settings → MCP for a
green status.
Windsurf
~/.codeium/windsurf/mcp_config.json (or Settings → Cascade → MCP Servers →
View raw config). Same mcpServers block.
Cline (VS Code extension)
Open the MCP Servers panel in Cline → Configure MCP Servers, and add the
same mcpServers block to cline_mcp_settings.json.
Continue (VS Code / JetBrains extension)
Create .continue/mcpServers/refcheck.yaml in the workspace:
name: refcheck
version: 0.0.1
schema: v1
mcpServers:
- name: refcheck
command: C:\path\to\refcheck\.venv\Scripts\refcheck-mcp.exe
env:
REFCHECK_MAILTO: lab-contact@example.eduMCP tools are available in Continue's Agent mode.
Gemini CLI
Add the same mcpServers block to ~/.gemini/settings.json (or
.gemini/settings.json in the project).
OpenAI Codex CLI
Add to ~/.codex/config.toml:
[mcp_servers.refcheck]
command = 'C:\path\to\refcheck\.venv\Scripts\refcheck-mcp.exe'
env = { REFCHECK_MAILTO = "lab-contact@example.edu" }Other clients
Any client that supports stdio MCP servers works: point it at the executable above. Config locations change between client versions; if a path here is out of date, check the client's MCP documentation.
Troubleshooting
Server does not start: run the executable directly in a terminal. It should wait silently for input (stop it with Ctrl+C). An error here means the installation is broken; rerun
pip install -e ..Tools do not appear: make sure the client is in agent/tool mode and was restarted after the config change.
Timeouts or
errorresults: the machine needs internet access toapi.crossref.org,api.openalex.organddoi.org.
Configuration (environment variables)
Variable | Description |
| Contact e-mail sent to Crossref/OpenAlex. Puts requests in the "polite pool", which is faster and more reliable. Recommended. |
| (Optional) OpenAlex API key for heavy use |
| Cache file path (default |
Responses are cached for 30 days, so re-checking the same reference does not hit the APIs.
Development
.\.venv\Scripts\pip install -e ".[dev]"
.\.venv\Scripts\python -m pytest # offline tests
.\.venv\Scripts\python -m pytest -m live # end-to-end tests against the real APIsCode layout (src/refcheck/):
parsing.py: parses BibTeX and plain-text reference listssources.py: Crossref, OpenAlex and doi.org clientsverify.py: matching and decision logic (assess()is a pure function, easy to test)normalize.py: text normalization (diacritics and special letters in any Latin-script language, LaTeX) and similarity measuresbibtex.py: BibTeX generation from verified recordsserver.py: MCP tools
Limitations and roadmap
Books, theses and regional or non-English journals may be missing from the indexes; theses and web sources are reported as
unverifiable. Regional indexes are good candidates for new sources, e.g. SciELO, J-STAGE, CNKI, DergiPark and other national journal platforms. Contributions welcome.More sources per field: arXiv, DBLP, PubMed, Semantic Scholar.
Extracting reference lists from PDF and Word drafts (GROBID).
Author plausibility (do the authors exist and publish in this area?).
Whether a cited work actually supports the claim it is cited for.
Citation style checking (APA, IEEE, ...).
License
Available Tools
4 toolscheck_referencesA
Check a whole reference list for fabricated or incorrect references.
references may be BibTeX (one or more @entries) or a pasted reference list in
any common style (APA, IEEE, ...), one reference per line, numbered ([1], 1.),
or separated by blank lines.
Returns a summary count per status and, for each reference: status (verified / needs_correction / possible_match / not_found / unverifiable / error), the matched real record, field-level issues with corrections, 'did_you_mean' candidates, and corrected BibTeX where useful.
Inputs: references (required). Returns: object
get_bibtexA
Return a correct BibTeX entry for a DOI, built from Crossref (or OpenAlex) metadata.
Inputs: doi (required). Returns: result
search_literatureA
Find REAL papers for a topic or claim (OpenAlex), each with ready BibTeX.
Use this instead of writing references from memory. query can be keywords or
the sentence that needs a citation. Results include citation counts to help pick
well-established sources.
Inputs: query (required), limit, year_to, year_from. Returns: result
verify_referenceA
Check a single reference (a formatted citation string or one BibTeX entry).
Use this while writing, e.g. right before inserting a citation. See
check_references for the meaning of the returned fields.
Inputs: reference (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
check_references and verify_reference overlap heavily in purpose, differing only in batch vs. single scope; the descriptions make the boundary explicit, but an agent could plausibly misselect for a one-item input. get_bibtex and search_literature are clearly distinct from both.
All four names follow a clean verb_noun pattern (check_references, verify_reference, get_bibtex, search_literature) in snake_case throughout.
Four tools is well-scoped for a focused reference-checking server: one batch checker, one single-reference checker, one BibTeX fetcher, and one literature search. Each earns its place with no filler.
The lifecycle is well covered: find real papers, check references, verify individually, and produce correct BibTeX. Minor gaps exist around output formatting in non-BibTeX styles or bulk DOI-to-BibTeX conversion, but core workflows are fully supported.
Maintenance
Related MCP Connectors
Checks AI-written references against Crossref, PubMed and OpenAlex. Formats citations, PRISMA.
Check AI references against Crossref and DataCite. DOI/arXiv metadata checks, plus tool discovery.
Catch AI-fabricated citations (real DOI + fake title). Retraction, open-access, 10,000+ CSL styles.
Check if references exist or were retracted, look up journal AI policies, and preview manuscripts.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables verifying citations in reference lists and BibTeX by detecting fabricated or mismatched references and retractions, and returning corrected BibTeX.31MIT
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants and researchers to verify BibTeX entries against Crossref, OpenAlex, PubMed, arXiv and other sources using identifier-first, explainable multi-signal matching. It reports metadata consistency, conflicts, and ambiguous or missing records, and can apply high-confidence field updates non-destructively with backups.-
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to check BibTeX records for bibliographic existence and metadata consistency by querying identifier-first providers like Crossref, OpenAlex, PubMed, DBLP, and arXiv and scoring title, author, year, venue, and page evidence. It returns explainable outcomes such as matches, ambiguous or not-found entries, and identifier conflicts, while keeping edits non-destructive unless explicitly applied.-
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to verify bibliographic records and BibTeX metadata consistency by resolving DOI, PMID, PMCID, and arXiv identifiers and scoring candidates across multiple scholarly sources with explainable, multi-signal matching. It reports structured provider outcomes and metadata conflicts without destructively editing the source bibliography.-