Skip to main content
Glama

zotero-mcp

zotero-mcp is the Research Workbench's capability-honest stdio adapter for Zotero 7. It uses Zotero's built-in, GET-only local API for reads and the separately installed Research Workbench Zotero extension for authenticated writes. It never opens zotero.sqlite or the Zotero data directory.

The stdio entry supports MCP 2026-07-28's stateless server/discover lifecycle and legacy initialize-based clients. Its static tool catalog is publicly cacheable for five minutes, reducing repeated catalog transfer and prompt churn.

Requirements and setup

  • Node.js 20 or newer

  • Zotero 7 for live use

  • The Research Workbench Zotero extension for write tools

npm install
npm run build
npm test
node dist/src/index.js

Configuration:

  • ZOTERO_MCP_BASE_URL defaults to http://127.0.0.1:23119. Only plain-HTTP URLs using the exact loopback hostnames 127.0.0.1, localhost, or [::1] are accepted; userinfo is rejected and redirects are never followed.

  • ZOTERO_MCP_TOKEN_FILE defaults to ~/.research-workbench/zotero-bridge.json.

The server always starts and advertises all 15 contracted tools. When Zotero or the extension is unavailable, calls return the shared structured error envelope with an actionable code and message.

Related MCP server: zotio

Capability notes

  • Reads are local and read-only.

  • Writes are narrow Zotero data-layer operations provided by the extension.

  • Moving an item to trash is supported; permanent deletion is not exposed.

  • Linked-URL attachments are supported; file-content upload is not.

  • The item full-text endpoint is probed only when requested. Zotero on the target machine currently returns 404 for /api/users/0/items/<key>/fulltext, so the tool returns unsupported_capability rather than claiming abstract metadata is full text.

  • zotero_health.writeAuth is true only when extension health explicitly confirms the supplied token; the existence of a token file alone is not reported as valid auth.

Tests

npm test is fully offline. A mock HTTP server replays checked-in, synthetic local-API fixtures and covers Zotero-down, token-missing, extension-absent, stale-version, and full-text-unsupported behavior. No automated test writes to a real Zotero library.

License: MIT. See LICENSE.

Available Tools

15 tools
zotero_add_tagsAdd Zotero tagsC

Add tags to a Zotero item through the authenticated extension.

Inputs: key (required), tags (required).

zotero_add_to_collectionAdd items to Zotero collectionA

Add existing items to a Zotero collection through the authenticated extension.

Inputs: itemKeys (required), collectionKey (required).

zotero_create_collectionCreate Zotero collectionC

Create a Zotero collection through the authenticated extension.

Inputs: name (required), parentKey.

zotero_create_itemCreate Zotero itemC

Create a Zotero item through the authenticated Research Workbench extension.

Inputs: fields (required), itemType (required), tags, creators, +1 more.

zotero_create_noteCreate Zotero noteB

Create a standalone or child HTML note through the authenticated extension.

Inputs: html (required), tags, parentKey.

zotero_get_collection_itemsGet Zotero collection itemsB
Read-only

List top-level items in a Zotero collection. Read-only.

Inputs: collectionKey (required), limit, start.

zotero_get_itemGet Zotero itemA
Read-only

Get one Zotero item and optionally its children or indexed full text. Read-only.

Inputs: key (required), include.

zotero_get_item_notesGet Zotero item notesB
Read-only

List note children for a Zotero item. Read-only.

Inputs: key (required).

zotero_healthCheck Zotero adapter healthA
Read-only

Check Zotero, its local read API, the Research Workbench write API, and bearer authentication. Never errors.

Inputs: no named parameters.

zotero_list_collectionsList Zotero collectionsB
Read-only

List local Zotero collections. Read-only.

Inputs: limit, start.

zotero_list_tagsList Zotero tagsC
Read-only

List tags from the local Zotero library. Read-only.

Inputs: q, limit.

zotero_search_itemsSearch Zotero itemsB
Read-only

Search the local Zotero library by title, creator, and year. Read-only.

Inputs: q (required), tag, limit, start, +1 more.

zotero_trash_itemMove Zotero item to trashB

Move an item to Zotero trash. This never permanently deletes it.

Inputs: key (required).

zotero_update_itemUpdate Zotero itemC

Update Zotero fields with optimistic version checking through the authenticated extension.

Inputs: key (required), fields (required), version (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 15 tools

    Disambiguation4/5

    Most tools target a distinct Zotero resource and action, such as search_items, get_item, list_collections, and add_tags. There is minor overlap where get_item can optionally return children while get_item_notes specifically lists note children, but descriptions are clear enough to usually guide correct selection.

    Naming Consistency5/5

    All tools use the zotero_ prefix and follow a consistent verb_noun snake_case pattern: search_items, get_item, list_collections, create_item, update_item, add_tags, trash_item. The one exception, zotero_health, is a simple and recognizable single-purpose action rather than a confusing deviation.

    Tool Count5/5

    With 15 tools, this server sits at the upper boundary of a well-scoped toolset, and each tool maps to a meaningful Zotero operation. Read operations, write operations, collection management, tagging, attachments, and health checking are all represented without obvious redundancy.

    Completeness3/5

    The toolset covers core item search/read/create/update, note creation, tag adding, collection creation, and item trashing, but there are notable gaps: no remove-from-collection, no remove-tags, no note update/delete, and no restore-from-trash. The attach_link tool also explicitly does not support file-content uploads, which limits one common attachment workflow.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      MCP server that exposes 45 tools for Zotero reference management, enabling AI agents to read/write items, search, extract PDF text, and manage workspaces via the Zotero CLI.
      221
      AGPL 3.0
    • A
      license
      A
      quality
      B
      maintenance
      A Zotero MCP server built for agent safety: a capability-tagged tool registry (every command carries operation/requires/destructive annotations), preview-first writes behind a mutation journal, and read-only defaults. Single Go binary with an MCPB one-click manifest for Claude Desktop.
      6
      4
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      MCP server for interacting with a Zotero library via the local API. Enables searching, retrieving, creating, updating, and deleting Zotero items, managing collections and tags, and generating citations.
      -
    • A
      license
      A
      quality
      B
      maintenance
      MCP server for local Zotero on Windows and WSL, enabling read access to items, collections, annotations, and notes via the Local API, and safe write operations through a plan/apply workflow with Web API verification.
      13
      MIT