Zotero Local MCP Bridge

by phoenixchenlu

Not rated
GitHub

About

Use a Zotero plugin-hosted MCP endpoint to let local agents manage a local Zotero library safely.

Details

Author
phoenixchenlu
Categories
Productivity, Other, Knowledge Base

Setup

Install Zotero Local MCP Bridge in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/phoenixchenlu/zotero-local-mcp-bridge

Follow the installation instructions in the repository README, then restart your MCP client.

Use a Zotero plugin-hosted MCP endpoint to let local agents manage a local Zotero library safely.

Use a Zotero plugin-hosted MCP endpoint to let local agents manage a local Zotero library safely.

AGPL-3.0-or-later · Plugin version 0.1.60 · Zotero 9.x · Plugin-hosted MCP · Local loopback access

What It Does·What It Does Not Do·Scope·How It Works·Quick Start·Examples·Support Author·License

Zotero Local MCP Bridge lets MCP-capable agents manage a local Zotero library through Zotero itself. It is not a database script that bypasses Zotero. It is a local MCP entrypoint running inside the Zotero plugin.

[!NOTE] Writes do not execute immediately. The agent first receives a dry-run plan, warnings, affected targets, and confirmation data. In approval modes, execution must wait for user approval.

This plugin is designed for Zotero Desktop and a local MCP client on the same machine. The MCP endpoint is registered on Zotero's local connector server and uses local loopback access only.

Run mode is configured inSettings -> Zotero Local MCP Bridge:

MCP-capable agent -> MCP tool call -> Zotero local connector server -> Zotero Local MCP Bridge plugin endpoint -> plugin command table -> Zotero internal API

The MCP endpoint is hosted inside the Zotero plugin:

http://127.0.0.1:23119/zotero-local-mcp-bridge/mcp

There is no separate Node, Python, or sidecar MCP process to start. Starting Zotero starts the plugin endpoint. Closing Zotero stops it. The release build exposes MCP tools, not the old private command endpoint.

Codex and Claude Code can connect to the Streamable HTTP MCP endpoint directly. OpenCode and other clients with stdio support but no Streamable HTTP support can use the standalone stdio adapter. The adapter runs on the agent side, stays outside the XPI, and never touches the Zotero database.

Dragzotero-local-mcp-bridge.xpiinto the plugin manager window, confirm installation when prompted, and restart Zotero.

For first use, start withreadonlyoraskforapprove. Useyoloonly after you understand dry-run, approval, audit, and backup behavior.

Agents can connect through stdio or Streamable HTTP. Claude Desktop users on macOS or Windows can install the packaged MCPB adapter.

npm install -g zotero-local-mcp-bridge-stdio-adapter
[mcp_servers.zotero-local-mcp-bridge] command = "zotero-local-mcp-bridge-stdio" args = [] startup_timeout_sec = 20 tool_timeout_sec = 120
{ "mcpServers": { "zotero-local-mcp-bridge": { "type": "stdio", "command": "zotero-local-mcp-bridge-stdio", "args": [] } } }

You can also usenpxwithout a global install:

{ "mcpServers": { "zotero-local-mcp-bridge": { "type": "stdio", "command": "npx", "args": ["-y", "zotero-local-mcp-bridge-stdio-adapter"] } } }

The stdio adapter is a compatibility layer started by the agent session. It forwards stdio MCP requests to the Zotero plugin HTTP MCP endpoint. It is not the Zotero plugin itself and does not start with Zotero.

Before editing an agent configuration, verify the installed plugin and MCP endpoint:

The one-shot command checks MCP initialization and tool discovery, then prints the detected plugin version, tool count, and ready-to-copy Codex, Claude Code, and OpenCode configurations. It does not modify agent settings.

See theclient compatibility matrixfor Codex, Claude Code, OpenCode, Claude Desktop, and current ChatGPT limitations.

If your agent supports Streamable HTTP / HTTP MCP, you can skip the npm package and connect directly to the Zotero plugin endpoint:

http://127.0.0.1:23119/zotero-local-mcp-bridge/mcp
[mcp_servers.zotero-local-mcp-bridge] url = "http://127.0.0.1:23119/zotero-local-mcp-bridge/mcp" startup_timeout_sec = 10 tool_timeout_sec = 120
claude mcp add --transport http zotero-local-mcp-bridge http://127.0.0.1:23119/zotero-local-mcp-bridge/mcp

Installzotero-local-mcp-bridge-<version>.mcpbin Claude Desktop on macOS or Windows. The MCPB contains the stdio compatibility adapter, not the Zotero plugin; install the XPI first and keep Zotero open. SeeClaude Desktop setup.

Tell the agent to use Zotero through Zotero Local MCP Bridge. When approval is required, the agent should briefly describe the pending operation and wait for user approval.

List my Zotero collection tree without making changes.

The agent should callzotero_collection_get_treewithlibraryScope=local-user. This query does not require write approval.

In approval mode, a single write operation should interact through the agent like this:

I am about to create a subcollection named "Reading Queue" under "Current Project". Approve execution?

Multiple pending operations use a numbered table, so the user can approve all operations or approve only selected numbers:

The following operations need approval: | No. | Operation | |---:|---| | 1 | Move subcollection "Temporary" under "Old Project" to Zotero trash | | 2 | Merge duplicate items "Smith 2024" and "Smith 2024 copy" | | 3 | Add "Zotero MCP design notes" to "Current Project / Reading Queue" |

The user can reply "approve all", or reply "approve 1 and 3, reject 2".

If this project helps your workflow, considerstarring the repositoryor opening a focusedissuewith reproducible feedback.

Zotero Local MCP Bridge is licensed under AGPL-3.0-or-later. SeeLICENSE.

Search, cite, and read PDFs from your EndNote reference library directly in Claude Desktop

Access and manage your Zotero library data via the local or web API.

Read+write MCP server for Zotero with full write support — create items, manage collections, find and merge duplicates, import BibTeX

Official Notion MCP server for searching, reading, creating, and updating Notion pages, databases, and workspace content from AI agents.

MCP server for Apple Notes with semantic search and CRUD operations. Claude searches, reads, creates, updates, and manages your Apple Notes through natural language.

Markdown-first Notion MCP server with 9 composite tools, 39 actions, and ~77% token reduction via tiered docs.

AI-powered reading triage MCP. 26 tools with a 24h burn timer. Read less, absorb more.

Personal Knowledge Base MCP — 22 tools for AI agents to access your curated reading intelligence.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.