
Zotero MCP
io.github.kujenga由 GitHub 账号 kujenga 发布v0.3.1更新于 Oct 24, 2026
Search your Zotero library, retrieve item metadata, and read full text from AI assistants.
概览
一个本地 MCP 服务器,让 AI 助手搜索 Zotero 文库、读取条目元数据,并获取 PDF 等全文内容。
- 可以做什么
- 用文本查询在 Zotero 文库中搜索条目,再据此选定具体条目。获取某个条目的完整元数据,按出版信息、标识符、时间戳和文库信息分组。读取某个条目的全文,包括 PDF 内容。工具可串联使用:先搜索,再获取所选条目的元数据或全文。
- 适用场景
- 适合把参考文献存放在 Zotero 中,并希望助手在写作或调研时查找来源、概括元数据或阅读和引用文库全文的场景。
- 运行要求
- 以 Python 包形式通过 uvx(或 pipx、Docker)在本地运行。需要二选一:运行 Zotero 桌面应用并启用本地 API,同时将 ZOTERO_LOCAL 设为 true;或在 ZOTERO_API_KEY 中提供 Zotero Web API 密钥并提供 ZOTERO_LIBRARY_ID,用户或群组文库还需 ZOTERO_LIBRARY_TYPE。
安装
在 SourceWeft 中
- 打开 控制台中的 Zotero MCP,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Model Context Protocol server for Zotero
[GitHub branch status] [PyPI - Version]
This project is a python server that implements the Model Context Protocol (MCP) for Zotero, giving you access to your Zotero library within AI assistants. It is intended to implement a small but maximally useful set of interactions with Zotero for use with MCP clients.
[Zotero Server MCP server]Features
This MCP server provides the following tools:
zotero_search_items: Search for items in your Zotero library using a text queryzotero_item_metadata: Get the complete metadata for a specific Zotero item, covering every populated field grouped into publication details, identifiers, timestamps, and library informationzotero_item_fulltext: Get the full text of a specific Zotero item (i.e. PDF contents)
These can be discovered and accessed through any MCP client or through the MCP Inspector.
Each tool returns formatted text containing relevant information from your Zotero items, and AI assistants such as Claude can use them sequentially, searching for items then retrieving their metadata or text content.
Installation
This server can either run against either a local API offered by the Zotero desktop application) or through the Zotero Web API. The local API can be a bit more responsive, but requires that the Zotero app be running on the same computer with the API enabled. To enable the local API, do the following steps:
- Open Zotero and open "Zotero Settings"
- Under the "Advanced" tab, check the box that says "Allow other applications on this computer to communicate with Zotero".
To use the Zotero Web API, you'll need to create an API key and find your Library ID (usually your User ID) in your Zotero account settings here: https://www.zotero.org/settings/keys
These are the available configuration options:
ZOTERO_LOCAL=true: Use the local Zotero API (default: false, see note below)ZOTERO_API_KEY: Your Zotero API key (not required for the local API)ZOTERO_LIBRARY_ID: Your Zotero library ID (your user ID for user libraries, not required for the local API)ZOTERO_LIBRARY_TYPE: The type of library (user or group, default: user)
uvx with Local Zotero API
To use this with Claude Desktop and a direct python install with uvx, add the following to the mcpServers configuration:
The @latest specifier is optional and will pull the latest version when new ones are available. If you don't have uvx installed you can use pipx run instead, or clone this repository locally and use the instructions in Development below.
Docker with Zotero Web API
If you want to run this MCP server in a Docker container, you can use the following configuration, inserting your API key and library ID:
To update to a newer version, run docker pull ghcr.io/kujenga/zotero-mcp:main. It is also possible to use the docker-based installation to talk to the local Zotero API, but you'll need to modify the above command to ensure that there is network connectivity to the Zotero application's local API interface.
Development
Information on making changes and contributing to the project.
- Clone this repository
- Install dependencies with uv by running:
uv sync - Create a
.envfile in the project root with the environment variables above
Start the MCP Inspector for local development:
To test the local repository against Claude Desktop, run echo $PWD/.venv/bin/zotero-mcp in your shell within this directory, then set the following within your Claude Desktop configuration
Running Tests
To run the test suite:
Releasing
- Bump the version in
pyproject.tomlandserver.json(two places: the server version and the package version). - Publish to PyPI with
make publish. - Publish updated metadata to the official MCP
registry with
make publish-mcp, authenticating first withmcp-publisher login githubif needed.
Docker Development
Build the container image with this command:
To test the container with the MCP inspector, run the following command:
Relevant Documentation
- https://modelcontextprotocol.io/tutorials/building-mcp-with-llms
- https://github.com/modelcontextprotocol/python-sdk
- https://pyzotero.readthedocs.io/en/latest/
- https://www.zotero.org/support/dev/web_api/v3/start
- https://modelcontextprotocol.io/llms-full.txt can be utilized by LLMs
Appendix: notes on Zotero's API
Item metadata is rendered from whatever fields the API returns rather than from a fixed list. Fields it omits are skipped, and fields this server doesn't know about appear under an "Other Fields" heading, so a Zotero upgrade never silently drops metadata.
The two APIs differ in one way worth knowing: the local API's quick search indexes citation keys, while the Web API does not, so searching for one returns nothing over the Web API even though the field is present in the data.
来源:README.md,提交 8461cc4
工具
0版本历史
1- v0.3.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分