EndNote for Word
繁體中文
EndNote for Word is an installable AI citation-management toolkit for Microsoft Word: a Claude Code, Claude Desktop, Codex, and ChatGPT Desktop skill/plugin plus MCP server that finds DOI-verified research papers, exports and imports RIS into EndNote libraries, and creates genuine EndNote Cite While You Write (CWYW) IEEE citations and bibliographies.
What this tool does
- Guides AI Agents to find peer-reviewed papers, verify metadata and DOI, export EndNote-compatible RIS, and import it through EndNote Direct Export. With EndNote fully closed, a missing target library can be created from a verified empty library template, and a DOCX with no EndNote citations and no named library gets
<document stem>.enl beside it.
- Replaces
{{CITE:id}} markers in a DOCX with real CWYW citations, so every citation becomes an ADDIN EN.CITE field carrying an EndNote traveling library, and the bibliography becomes an ADDIN EN.REFLIST field.
- Never types citation text, never fabricates field codes in OOXML, and never passes off a plain-text reference list as a real bibliography.
- Reads your
.enl library through a read-only snapshot so an agent can search for references and confirm every record number before Word is ever opened. RIS import is the sole library-writing action and EndNote itself performs it.
- Uses IEEE by default, requires a DOI for every cited reference, verifies each DOI through doi.org, and rejects doubled resolver prefixes. A record that has no DOI, such as a web page, patent or extension article, is cited only through an explicit per-target
"no_doi": true, and the pre-check confirms that the record really has none.
- Supports both IEEE Default Format
[x] and EndNote's Display as Author (Year), which produces forms such as Author et al. [x] for narrative prose.
- Preserves output-style-owned narrative punctuation. Forms such as
Hernandez, et al. [1] are normal EndNote output and are not downgraded to typed authors or Default Format merely to remove a comma.
- Pre-checks the manifest against the library and against the installed output styles, because an unknown record number or an unknown style name makes EndNote open a modal dialog that blocks automation until the process is killed.
- Keeps Word hidden and starts EndNote with a hidden window when the bridge needs to launch it.
- Switches the document output style programmatically and rebuilds the bibliography, with no dialog.
- Validates the finished document structurally and reports counts, style, and the libraries recorded in the document.
- Exports and imports RIS, then reports before/after live-reference counts so the agent can re-query EndNote-assigned record numbers.
Requirements
- Windows 10 or 11.
- Microsoft Word desktop with COM automation.
- Desktop EndNote for Windows with the Cite While You Write Word add-in installed and enabled. This is a hard prerequisite: without the CWYW add-in there is no supported way to produce native citation fields, and the tool refuses to fake them.
- Python 3 on
PATH.
- PowerShell 7 as
pwsh.exe, or Windows PowerShell 5.1 as powershell.exe.
- HTTPS access to
doi.org for the mandatory pre-citation DOI check.
This project is developed and verified against EndNote 21 with the 64-bit CWYW add-in (EndNote.WordAddin.Connect) and its global Word template EndNote Cwyw.dotm. The EndNote executable, the styles directory, and the CWYW template are discovered from the registry and from the installation directories at run time, newest version first, so no version number is hardcoded.
EndNote and Microsoft Office are proprietary products and are not distributed by this repository. The EndNote web or online plugin is not a substitute for the desktop CWYW add-in.
Terminal compatibility
The bridge is a single PowerShell script written for both PowerShell 7 and Windows PowerShell 5.1. Four terminals are supported.
| Active terminal | Required action |
|---|
| PowerShell 7+ | Run the commands directly with pwsh.exe. |
| Windows PowerShell 5.1 | Supported. Run with powershell.exe, but prefer pwsh.exe when it is installed. Without pwsh.exe, the first call other than probe, list-styles or validate installs PowerShell 7 per user through winget (no administrator rights), and the result says so; read-only calls made before that announce it; set ENDNOTE_WORD_AUTO_INSTALL_PWSH=0 to opt out. The MCP registration commands below launch the server with powershell.exe so it also starts before PowerShell 7 exists. |
| Bash on Windows, including Git Bash | Invoke Windows pwsh.exe, and fall back to powershell.exe. |
| CMD | Invoke pwsh.exe with the same arguments, and fall back to powershell.exe. |