Skip to main content

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.

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.
  • Tag and collection management. This server does not create, rename, delete, or reassign tags or collections. Use 54yyyu/zotero-mcp for read access to those structures and edit them in the Zotero UI when needed.

License

MIT, see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zotero_mcp_server_write-0.1.1.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zotero_mcp_server_write-0.1.1-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file zotero_mcp_server_write-0.1.1.tar.gz.

File metadata

File hashes

Hashes for zotero_mcp_server_write-0.1.1.tar.gz
Algorithm Hash digest
SHA256 09b21bfc3e5f612436d02abfb83dab5eb867333574dad8f8c0076a48ef9f5eb0
MD5 f9b904c1fabb9a3a7e9fe987659c6516
BLAKE2b-256 b9c7f5b7fc1739c3f4f2660ec78795c2577591f40d9a3df92ed779323c4b3eab

See more details on using hashes here.

File details

Details for the file zotero_mcp_server_write-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for zotero_mcp_server_write-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5611f1bcd05671d0eea6e73824d2ed210e26886eb7bd0fd6a948cf7b8e2d1a5a
MD5 36b7531c22b1ca27a4133934ab148535
BLAKE2b-256 2517adcbd4deeaa4e0e274716b16498780896b10d6398d52b962dfcacc186516

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page