This MCP server provides a connection between your local Zotero library and Claude, allowing Claude to access and read your Zotero references directly through the Desktop interface. It leverages Zotero 7's local web API capabilities to make your research library available to Claude.
Install uv
package manager if you don't have it already:
Clone the repository and set up the environment:
git clone https://github.com/gyger/mcp-pyzotero.git
cd mcp-pyzotero
uv sync
Enable the local API in Zotero 7:
Add the server to your local Claude installation:
uv run mcp install zotero.py
The connector works with local Zotero installations and currently supports only user
libraries. By default, it uses the userid 0
.
If you need to specify a different user ID, set the environment variable when installing:
uv run mcp install zotero.py -v ZOTERO_USER_ID=0
After installation, Claude can interact with your Zotero library using the following functions:
List Collections
get_collections()
: Returns all collections in your Zotero libraryRetrieve Collection Items
get_collection_items(collection_key)
: Gets all items within a specific collectionGet Item Details
get_item_details(item_key)
: Retrieves detailed information about a specific paper, including its abstractSearch Library
search_library(query)
: Performs a search across your entire Zotero libraryRecent Additions
get_recent(limit=10)
: Retrieves recently added papers (default: 10 most recent items)You can ask Claude to perform tasks like:
Claude will use the appropriate MCP function to retrieve the information from your Zotero library.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.