Zotero Safe MCP
Provides AI agents with access to a Zotero library, enabling reading items, collections, notes, and annotations, and adding or modifying the agent's own notes, highlights, tags, and imported papers.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Zotero Safe MCP
A Zotero plugin that gives MCP-capable AI agents access to your library. Agents can read everything and add notes, highlights, tags and papers. They can change or remove only what they added. They cannot execute any code on your machine through the MCP.
Requires Zotero 7 or later and works with "My Library" only. The plugin serves its MCP endpoint from inside Zotero whenever Zotero is open.
Quick start
Download
zotero-safe-mcp.xpifrom Releases, or build it withnpm install && npm run build.In Zotero: Tools → Plugins → ⚙ → Install Plugin From File…
In Zotero Settings → Safe MCP, click Copy token.
Add the server to your MCP client:
"zotero": { "type": "http", "url": "http://localhost:23119/safe-mcp", "headers": { "Authorization": "Bearer <token>" } }If the agent runs in Docker, use
host.docker.internalinstead oflocalhost.
To revoke access, click Regenerate token.
Docker Sandboxes (sbx)
With sbx, the real token never enters the sandbox. The MCP config holds a placeholder, and
sbx swaps the real token in on each request.
On the host, let the sandbox reach Zotero:
sbx policy allow network localhost:23119On the host, store the token from step 3 above as a secret:
sbx secret set-custom \ --host host.docker.internal --host localhost --host 127.0.0.1 \ --env ZOTERO_MCP_TOKEN \ --value <your_actual_token>The command prints a placeholder (it looks like
sbx-cs-…). Copy it.In the sandbox, add the server to your MCP client. Put the placeholder where the token would go:
"zotero": { "type": "http", "url": "http://host.docker.internal:23119/safe-mcp", "headers": { "Authorization": "Bearer <placeholder>" } }
Related MCP server: Cite Caddy
Tools
Read |
|
Add |
|
Change its own work |
|
Safety
The agent can edit, remove or undo only what it created. If you edit one of its notes, that note becomes yours.
Nothing is deleted outright. Removed items go to Zotero's trash.
Its notes are tagged
[LLM]and its highlight comments start with[LLM]. It never uses green.It can't change metadata, collections or settings, read files from your computer, or open arbitrary URLs.
Writes are limited to 60 per minute. You can change this with
extensions.zotero-safe-mcp.writesPerMinutein the Config Editor.
Zotero's debug log records the token. If you share a debug log, regenerate the token afterwards. For the full rules, see SPEC.md.
Development
npm test runs the unit tests, and npm run test:integration runs the end-to-end tests
against a headless Zotero. See CONTRIBUTING.md.
License
AGPL-3.0-or-later. Parts are adapted from
llm-for-zotero (AGPL-3.0, commit 435dd19), and
each reused file names its source in a header.
This server cannot be deployed
Maintenance
Related MCP Connectors
Zotero MCP server for Claude and ChatGPT: search, citations, safe writes, PDF passages and pages.
Remote MCP server for full read/write access to a Zotero library
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
Read-only MCP server exposing a user ORANO library to their own AI agent.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables MCP-capable agents to securely manage a local Zotero library through a plugin-hosted MCP endpoint, supporting read, write, search, and import/export operations with safety workflows like dry-run and approval.6AGPL 3.0
- AlicenseAqualityAmaintenanceProvides full read/write access to Zotero libraries through 36 MCP tools, including search, add, tag, update, delete, and move operations for items, collections, attachments, notes, and saved searches. Enables AI assistants to manage a Zotero library remotely, with support for both local stdio and multi-tenant HTTP OAuth deployments.39MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that gives AI agents read access to a Zotero library, enabling search, item metadata, collections, tags, notes, and full-text search of attached PDFs.MIT
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to search a Zotero library, retrieve item metadata, and access full text of items through MCP tools.-