add_entry
Add a BibTeX entry to the currently open JabRef library, triggering JabRef's duplicate detection and import prompt. Requires JabRef running with remote operation enabled.
Instructions
Add a new entry to the JabRef library - the ONLY supported way of adding entries.
This requests an import through JabRef's official CLI API (jabref --importBibtex), which means:
the entry is sent to the library that is OPEN in JabRef, with JabRef's own duplicate detection;
JabRef may ask you to accept the import before you save the library;
the .bib file is never modified by this server. Requires JabRef to be running with 'Listen to remote operation on port' enabled (Preferences -> Network), same as for the official browser extension.
Args: bibtex: a complete BibTeX entry, e.g. '@article{key, title={...}, author={...}, year={2024}}'. timeout: optional override of the import timeout in seconds.
Returns the canonical BibTeX that was sent to JabRef. A successful return confirms dispatch to JabRef, not that the entry has already been accepted and saved.
Workflow after successful dispatch:
Ask the user to accept and save the import in JabRef if prompted, and to confirm when the library has been saved before attempting verification.
Do not claim that the entry is persisted yet.
After the user confirms saving, verify with search using stable metadata such as title, DOI, or author, rather than relying only on the submitted citation key.
JabRef may replace the submitted citation key; use the key returned by search when calling get_entry or get_pdf.
Read tools automatically detect the saved file. Do not ask for an MCP restart.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bibtex | Yes | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |