Zotero MCP Server
The Zotero MCP Server integrates with Zotero to provide AI assistants access to your Zotero library via the Model Context Protocol. You can:
Search for items in your library using text queries, with options for query mode (titleCreatorYear or everything) and tags
Retrieve detailed metadata about specific Zotero items using their item keys
Access full text content (like PDF content) of items using their item keys
Provides access to your Zotero library, allowing you to search for items, retrieve detailed metadata, and access the full text contents of PDFs and other documents stored in your Zotero collection.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Zotero MCP Server search for papers about machine learning ethics"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Model Context Protocol server for Zotero
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.
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.
Related MCP server: zotero-assistant-mcp
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:
{
"mcpServers": {
"zotero": {
"command": "uvx",
"args": ["zotero-mcp@latest"],
"env": {
"ZOTERO_LOCAL": "true",
"ZOTERO_API_KEY": "",
"ZOTERO_LIBRARY_ID": ""
}
}
}
}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:
{
"mcpServers": {
"zotero": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e", "ZOTERO_API_KEY=PLACEHOLDER",
"-e", "ZOTERO_LIBRARY_ID=PLACEHOLDER",
"ghcr.io/kujenga/zotero-mcp:main"
],
}
}
}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 syncCreate a
.envfile in the project root with the environment variables above
Start the MCP Inspector for local development:
npx @modelcontextprotocol/inspector uv run zotero-mcpTo 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
{
"mcpServers": {
"zotero": {
"command": "/path/to/zotero-mcp/.venv/bin/zotero-mcp"
"env": {
// Whatever configuration is desired.
}
}
}
}Running Tests
To run the test suite:
uv run pytestReleasing
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:
docker build . -t zotero-mcp:localTo test the container with the MCP inspector, run the following command:
npx @modelcontextprotocol/inspector \
-e ZOTERO_API_KEY=$ZOTERO_API_KEY \
-e ZOTERO_LIBRARY_ID=$ZOTERO_LIBRARY_ID \
docker run --rm -i \
--env ZOTERO_API_KEY \
--env ZOTERO_LIBRARY_ID \
zotero-mcp:localRelevant Documentation
https://modelcontextprotocol.io/tutorials/building-mcp-with-llms
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.
Available Tools
3 toolszotero_item_fulltextA
Get the full text content of a Zotero item, given the item key of a parent item or specific attachment.
Inputs: item_key (required). Returns: result
zotero_item_metadataA
Get the complete metadata for a specific Zotero item, given the item key. Includes the citation key, publication details, identifiers, and timestamps.
Inputs: item_key (required). Returns: result
zotero_search_itemsA
Search for items in your Zotero library. Returns a summary of each match; look up individual results with zotero_item_metadata or zotero_item_fulltext.
Choosing a query mode:
'titleCreatorYear' (the default) searches titles, creator names, and years. Use it for known-item lookup, where you know roughly what the item is called or who wrote it.
'everything' additionally searches abstracts, the Extra field, note text, and the full text of attachments. Use it for topic and full-text search, where the term would not appear in a title.
Words match by prefix, and space-separated words must all be present though not necessarily adjacent, so 'cybor insect' matches 'Cyborg Insect'. A hyphen separates words and switches the match to OR: 'oxygen-deprived' matches anything containing 'oxygen' or 'deprived', which is far broader than intended. Write hyphenated terms with a space to require both halves.
Inputs: query (required), tag, limit, qmode. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct role in a linear workflow: search finds items, metadata returns bibliographic details, fulltext returns content. The search tool's description explicitly points to the other two for follow-up, eliminating misselection. No two tools overlap in purpose.
All three share a `zotero_` namespace prefix and snake_case, which is predictable. The minor deviation is that two use the `item_<aspect>` shape while the third is `search_items` (action-first), but the pattern remains readable and unsurprising.
Three tools is lean but each earns its place as a distinct step in a lookup pipeline; nothing is redundant. It sits at the sparse end for a library server, since browsing and collection-level operations are absent, but it is well-scoped for its read-only retrieval purpose.
The search → metadata → fulltext path is complete for retrieving a known item or doing full-text search, with no dead ends within that flow. However, there is no way to browse collections, list an item's attachments/children, or filter by collection/tag, which are notable gaps for a Zotero library surface.
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
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Search and read arXiv research papers via a hosted, read-only MCP server.
Related MCP Servers
- AlicenseAqualityDmaintenanceA server that enables MCP clients like Anthropic Claude App to interact with local Zotero libraries, allowing users to search papers, manage notes, and access research materials through natural language.1029Apache 2.0
- FlicenseNot gradedqualityDmaintenanceA Zotero library management MCP server designed for Cloudflare Workers that enables searching, reading, and writing library items. It allows users to manage metadata, full-text content, and attachments through natural language interactions.1-
- AlicenseAqualityBmaintenanceA Model Context Protocol server for Zotero integration that gives any LLM full access to your Zotero library, including search, organization, DOI-based paper addition, PDF import, full-text reading, and citation injection into Word documents.20190 npm43MIT
- FlicenseNot gradedqualityDmaintenanceMCP server for natural-language search over a local Zotero library, enabling tools to search, retrieve, and manage paper metadata, notes, and PDF fulltext via Claude.-