Zotero MCP
Lets your AI agent search your Zotero library, read item details and get the full text of your PDFs.
162 stars on GitHubby kujengaLicense MITUpdated 4 months ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add zotero-mcp-2 -- uvx zotero-mcp
What to fill in
| Name | What it is | Required |
|---|---|---|
ZOTERO_LOCAL | Use the local API from the Zotero desktop app instead of the Web API. Requires Zotero to be running with 'Allow other applications on this computer to communicate with Zotero' enabled under Settings > Advanced. | No |
ZOTERO_API_KEY | Zotero Web API key from https://www.zotero.org/settings/keys. Not required when ZOTERO_LOCAL is true. | No |
ZOTERO_LIBRARY_ID | Zotero library ID (your user ID for user libraries). Not required when ZOTERO_LOCAL is true. | No |
ZOTERO_LIBRARY_TYPE | Whether ZOTERO_LIBRARY_ID refers to a user or group library. | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Search my Zotero library for papers about transformers.
Show the full metadata of the first result.
What it is
This server connects your AI agent to your Zotero reference library. The agent can search items, read all the metadata of one item, and pull the full text of an attached PDF. It can talk to the Zotero desktop app on your computer or to the Zotero web API.
What it can do
zotero_search_items: search your library with a text queryzotero_item_metadata: full metadata of one item, grouped into publication details, identifiers, timestamps and library informationzotero_item_fulltext: the full text of an item, such as PDF contents
When to use
- βΊWhen you want your agent to find papers in your own library on a topic
- βΊWhen you need the details or citation data of one saved item
- βΊWhen you want it to read the text of a PDF you saved in Zotero
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
zotero-cliHelps your agent search and read your Zotero library from the command line, finding papers by keyword or meaning, reading PDFs, managing tags, and exporting citations.pyzoteroLets your agent manage reference libraries in Zotero. It's useful for organizing research and citations automatically.citation-managementManages academic citations by searching for papers and formatting references. It helps find publications and ensure citation accuracy in scientific work.Frequently asked questions
Is it free and open source?
The project is a public Python server on PyPI. Zotero itself is separate.
Do I need an API key?
Not for the local API. For the Zotero web API you need an API key and your library ID.
How do I use the local API?
Open Zotero, enable the setting under Advanced, and set ZOTERO_LOCAL=true. Zotero must be running on the same computer.
Can it use group libraries?
Yes. Set ZOTERO_LIBRARY_TYPE to group.
Can I run it in Docker?
Yes, with the ghcr.io/kujenga/zotero-mcp image and your key and library ID.
Any difference between the two APIs?
Yes. The local quick search indexes citation keys, but the web API does not.
If it does not work
- βΊFor the local API, make sure the Zotero desktop app is running with the setting enabled.
- βΊFor the web API, check ZOTERO_API_KEY and ZOTERO_LIBRARY_ID in the env block.
- βΊIf uvx is missing, install uv or use pipx run instead.
5 new skills a week. 1 minute to read.