MCP server exposing Zotero local write operations (DOI import, PDF import with recognition, attach PDF, add note)
Project description
zotero-mcp-server-write
A Model Context Protocol (MCP) server that exposes the write operations of a
local Zotero installation to LLM agents. It is a thin async wrapper around the
companion zotero_write_api_plugin
Zotero plugin, which adds HTTP endpoints to Zotero's built-in local server on
http://127.0.0.1:23119. Together they let an agent import items by DOI,
ingest PDFs with Zotero's metadata recognizer, attach files to existing items,
and add formatted notes.
Prerequisite
You must install the zotero_write_api_plugin XPI in Zotero before this
MCP server can do anything useful. Download the latest release from
github.com/akchan/zotero_write_api_plugin/releases
and install it via Tools → Add-ons → Install Add-on From File… in Zotero.
Make sure Zotero is running whenever you use the MCP server.
Recommended pairing
This server only covers writes. For reads (searching the library,
browsing collections, fetching item metadata, getting tags, etc.) install
54yyyu/zotero-mcp alongside it. The
two together give an agent a complete view-and-edit surface over your local
Zotero library. The tool descriptions in this server explicitly point at
54yyyu/zotero-mcp as the way to discover item_key and collection_key
values.
Install / run
The server is published to PyPI as zotero-mcp-server-write:
# Run on-demand with uv (recommended; matches the Claude Desktop config below)
uvx zotero-mcp-server-write
# Or install with pip into a virtual environment / globally
pip install zotero-mcp-server-write
zotero-mcp-server-write
The console-script entry point has the same name as the package.
Tools
| Tool | Description |
|---|---|
add_by_doi |
Import a new item from a DOI / ISBN / arXiv ID / PMID (type auto-detected). |
add_pdf |
Import a local PDF, then run Zotero's metadata recognizer to find a parent item. |
attach_pdf_to_item |
Attach a local file (typically a PDF) to an existing Zotero item by item_key. |
add_note |
Add a child note to an existing item. Accepts markdown (rendered to HTML) or raw HTML. |
update_note |
Replace the body of an existing note item (markdown or raw HTML). |
add_tags |
Add one or more tags to an existing item. Already-present tags are skipped, not errored. |
Claude Desktop config example
Register both the read server and this write server side-by-side:
{
"mcpServers": {
"zotero-mcp": {
"command": "uvx",
"args": ["zotero-mcp"]
},
"zotero-mcp-server-write": {
"command": "uvx",
"args": ["zotero-mcp-server-write"],
"env": {
"ZOTERO_LOCAL_API_BASE": "http://127.0.0.1:23119",
"ZOTERO_WRITE_TIMEOUT": "60"
}
}
}
}
Environment variables
| Variable | Default | Purpose |
|---|---|---|
ZOTERO_LOCAL_API_BASE |
http://127.0.0.1:23119 |
Base URL of Zotero's local HTTP server (where the plugin is hooked in). |
ZOTERO_WRITE_TIMEOUT |
60 (seconds) |
Per-request HTTP timeout for the plugin endpoints. |
Out of scope
- Group libraries. Only the user's local library is targeted; group library writes are not supported by the underlying plugin.
- Collection management. This server does not create, rename, delete,
or reassign collections. Tag addition is supported via
add_tags, but renaming/removing tags is not. Use54yyyu/zotero-mcpfor read access to those structures and edit them in the Zotero UI when needed.
License
MIT, see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zotero_mcp_server_write-0.1.2.tar.gz.
File metadata
- Download URL: zotero_mcp_server_write-0.1.2.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0a781c6022ab0fabd3635cf0f2fc2bb6e4286ff1c747b0d90adcfed5f259700
|
|
| MD5 |
24b5c757d6c33d45e248c701025f5370
|
|
| BLAKE2b-256 |
d8a440593e4581713a936cfff86273f4604c3e98fc4567cb523c645f92a00b87
|
File details
Details for the file zotero_mcp_server_write-0.1.2-py3-none-any.whl.
File metadata
- Download URL: zotero_mcp_server_write-0.1.2-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
989292517abc2fd52bdabc5b7f8c64a51ed12b99d2c53765740372db8d89a156
|
|
| MD5 |
dd932358eab10b38dad328d5f37fe7a5
|
|
| BLAKE2b-256 |
0f8ce1677087ad34cc129dbfbefdb8f419cc0b7b4ea777a4577f459513348ffa
|