zotero-native-mcp is an MCP (Model Context Protocol) server for reading from and writing to the local Zotero 10+ library, running fully offline. It connects Zotero to Claude, Claude Code, Cursor, or any MCP client, enabling the assistant to search the library, read full PDF text, create collections, add references, and attach PDFs from disk. All operations are performed against the Zotero application on 127.0.0.1, requiring no zotero.org account, no Web API key, no Zotero plugin, and no cloud round trips.
Purpose and Background Zotero 10 added write support to its built-in local API. Before this, all Zotero MCP servers had to work around the read-only local endpoint: either write via api.zotero.org (slow, requires an API key, requires the library to be synced to the cloud), or ship a separate Zotero plugin that must be installed and continuously updated. This server uses native capabilities directly, requiring nothing to be installed inside Zotero, no credential management, and with read latency of 8–60 ms because it does not touch the network.
Main Capabilities Tools are divided by category, and all names are prefixed with zotero_:
- Collections: list_collections, get_collection, create_collection, update_collection, delete_collection, restore_collection
- Items: search_items, get_item, get_item_children, create_items, update_item, delete_items, restore_items, add_items_to_collection, remove_items_from_collection, get_item_fulltext, export_items
- Trash: list_trash, empty_trash, and the restore_* tools above
- Attachments: attach_file, get_attachment_path
- Discovery:list_tags, list_saved_searches, run_saved_search
- System: status, authorize, list_libraries, get_item_type_fields For complete signatures, see the project reference documentation.
Usage Prerequisites:
- Zotero 10 or later, and it must be running. This is a hard requirement: the ability to write via the local API did not exist before Zotero 10. On Zotero 7–9, read tools work, but all writes will fail.
- In Zotero, go to "Settings → Advanced" and enable "Allow other applications on this computer to communicate with Zotero."
- Node.js 22 or later. Node 20 reached end of support in April 2026. Installation and registration: when using claude mcp add, adding --scope user registers it for every project; without it, the default is local scope, and the server will be bound to the directory where you ran the command, so the tools will be unavailable when you open other directories. No environment variables are needed. After starting a new session, have the assistant run zotero_status to confirm the connection. On the first write, Zotero will pop up a dialog asking whether to allow it; choose "Always Allow" to avoid repeated prompts.
Use Cases Suitable for users who need to manage their Zotero library through an AI assistant in a local, offline environment, such as searching items, reading full PDF text, organizing collections, adding references, attaching PDFs, exporting BibTeX and CSL, and managing tags and saved searches.
Limitations and Notes
- This server can modify and delete items in the Zotero library. The official recommendation is to back up the library before starting, and to keep backing up. Backup method: quit Zotero, then copy the entire data directory (on macOS and Linux, ~/Zotero; on Windows, %USERPROFILE%\Zotero, or the path shown in "Settings → Advanced → Files and Folders"), which contains zotero.sqlite and the storage folder holding all attachments. Syncing to zotero.org is not a backup, because deletions also sync.
- Deletion is reversible by default: zotero_delete_items and zotero_delete_collection moves content into the Zotero trash, from where it can be restored from the Zotero window or via zotero_restore_items. However, Zotero automatically empties the trash after 30 days, and these two tools accept a permanent: true parameter that deletes outright, cannot be undone, removes attachment files from disk, and cannot be recovered via the API. zotero_empty_trash performs the same operation on content already in the trash.
- These tools are driven by the assistant based on natural-language instructions and may misread which item you mean.
- Platform verification status: CI runs the unit and simulated-protocol test suites on a matrix of Linux, macOS, and Windows × Node 22, 24, 26, so the code's own portability is covered on all three platforms. But no runner covers conversations with a real Zotero, because Zotero is not installed there. That part is done by hand: scripts/coverage.mjs reaches all 28 tools against a live library on all three operating systems. Not yet verified: Intel Mac; Claude Code on Linux (only the script was run); Claude Desktop, Cursor, and other MCP clients on any platform.
- This software is provided "as is", without warranty of any kind, and the author accepts no liability for data loss.
Project relationships This project is not a fork. It was written from scratch after Zotero 10 made native local writes possible, but it builds on earlier work that solved the same problem under stricter constraints: 54yyyu/zotero-mcp (the most widely used Zotero MCP server, feature-rich, including semantic search, with writes going through api.zotero.org), cookjohn/zotero-mcp (a Zotero 7 plugin that exposes MCP endpoints from inside Zotero, with vector search), Ayanya-0628/zotero-mcp and dzackgarza/zotero-local-write-api (local-first writes via a companion .xpi write endpoint), kujenga/zotero-mcp (a lightweight Python server for the Zotero API). If you need Zotero 7/8/9 supportport, semantic or vector search, or writing to a library that only has cloud access, those projects remain the more suitable choice.
License: MIT © David Sosa.