zotero-mcp
A local-only, read-only MCP server for Zotero that lets Claude search and retrieve library items, collections, tags, and attachment full text from your Zotero desktop client.
README
zotero-mcp
A local-only, read-only MCP server for Zotero.
AI disclosure
This tool was built by Claude and hardly verified by me. I advise against using it on your Zotero database (and if you ignore that advise, make sure you have up to date offline backups).
Features
- Local-only. Talks to the Zotero desktop client's local API on
127.0.0.1:23119. No API key, no zotero.org account, no network traffic. - Read-only. Every tool is a retrieval call, enforced by an allowlist; the
server has no code path that can add, edit, or delete anything. Note that the
local API itself is not read-only — Zotero 10+ supports
POST/PUT/PATCH/DELETEon/api/once a client obtains a local API key viaPOST /api/local/authorize. This server never requests such a key and holdsapi_key=None, so the write path stays unreachable; the read-only guarantee is enforced here, not by the API. - stdio transport only.
Requirements
- Zotero 7 or newer, running
- Python 3.13+
- Zotero's local API enabled: Settings → Advanced → "Allow other applications on this computer to communicate with Zotero"
Without that setting the API returns 403 and every tool reports how to fix it.
Install
From a local checkout:
uv tool install .
Usage
Register it with Claude Code:
claude mcp add zotero -- uvx zotero-mcp
Or add it to your MCP client config directly:
{
"mcpServers": {
"zotero": {
"command": "uvx",
"args": [ "zotero-mcp" ]
}
}
}
Tools
| Tool | Purpose |
|---|---|
search_items |
Search by keyword; optional item-type and tag filters. qmode="everything" searches attachment full text. |
get_item |
Full metadata for one item key. |
get_item_children |
Attachments and notes belonging to an item. |
get_item_fulltext |
Indexed text of an attachment (PDF, snapshot), with truncation info. |
list_collections |
Collections, optionally top-level only. |
get_collection_items |
Items inside a collection. |
list_tags |
Tags used in the library. |
get_recent_items |
Most recently added items. |
library_stats |
Item and collection counts. |
Item keys are 8-character strings such as ABCD2345. To read a PDF's text,
call get_item_children on a reference first to get its attachment key, then
pass that to get_item_fulltext.
Why not read zotero.sqlite directly?
Zotero's developer documentation states that the SQLite schema is an internal implementation detail that may change between releases, and that direct access must be read-only to avoid corruption (Zotero's caching layer interferes with SQLite file locking). The local API is the supported interface, works while Zotero is running, and returns stable documented JSON.
The tradeoff: Zotero must be open. Reading the SQLite file would work with Zotero closed, at the cost of coupling to an unstable schema.
Notes
itemTypenegation: the API docs document exactly three forms —itemType=book,itemType=book || journalArticle(OR), anditemType=-attachment(NOT). Negating a group is not documented, and unsupported expressions fail open: they return200 OKwith the filter silently dropped rather than a400. Measured on this library:-attachment→ 578 results,-attachment || note→ 1184 (the unfiltered total),-(attachment)→ 1184. An unknown type such asgarbagetypereturns 0 results rather than erroring. Because a broken filter yields more rows than a working one, this server sends only the documented-attachmentand drops remaining notes and annotations in code, over-fetching so the requestedlimitis still filled.- Results are condensed (envelope and empty fields stripped) to keep responses
small; abstracts are truncated in list views but returned in full by
get_item. ZOTERO_LIBRARY_IDandZOTERO_LOCALEcan override the defaults (0,en-US).
Tests
uv run pytest
The suite mocks pyzotero, so it runs without Zotero open.
License
Released into the public domain under the Unlicense. See LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。