Skip to main content
Glama
Zotero MCP Connector

Zotero MCP Connector

by gyger

Zotero MCP Connector

IMPORTANT


This project is retired. I am no longer convinced MCP is the interface one wants, better have direct CLI access. If you like MCPs, there are a few options, but I did not test them.

A Model Control Protocol (MCP) connector for integrating your local Zotero with Claude.
This enables direct read access to your local Zotero library through Claude's Desktop interface. It depends on the ability to access a local web-api in Zotero 7.

This was inspired by a repository using Node.js and the web api: mcp-zotero.
This builds on the shoulders of the fantastic pyzotero library.

Installation

Information about Claude Desktop interacting with MCPs can be found here.

  1. Use uv. Installation instructions can be found here.

  2. Checkout the git project to local space and activate the virtual environment inside:

git clone https://github.com/gyger/mcp-pyzotero.git
cd mcp-pyzotero
uv sync
  1. Enable the local API in Zotero 7: Zotero Local API Settings

  2. Add the server to your local Claude installation:

uv run mcp install zotero.py

Run encapsulated with uvx (Should work)

Edit the configuration for your Claude Desktop softare in the file.

- macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
- Windows: %APPDATA%\Claude\claude_desktop_config.json

and add the Zotero entry

{
    "mcpServers": {
        "Zotero": {
            "command": "uvx",
            "args": ["--from", "git+https://github.com/gyger/mcp-pyzotero.git", 
                     "--with", "mcp[cli]",
                     "--with", "pyzotero",
                     "mcp", "run", "zotero.py"
                    ],
        }
    }
}

Related MCP server: zotero-mcp

Configuration

The connector is configured to work with local Zotero installations and currently only user libraries are supported. By default it uses the userid 0, but you can also set the environment variable ZOTERO_USER_ID if needed:

uv run mcp install zotero.py -v ZOTERO_USER_ID=0

Available Functions

Available tools

  • get_zotero_summary(): Lists properties about your library including collections, recent items or tags.

  • get_collection_items(collection_key): Get all items in a specific collection

  • get_items_metadata(item_key): Get detailed information about specific paper(s), including abstract.

  • search_library(query, mode): Search your Zotero library, with two possible modes: everything or titleCreatorYear.

This functionality should be extended in the future.

Requirements

  • Python 3.10+

    • pyzotero

    • mcp[cli]

  • Local Zotero installation

Contributing

Contributions are welcome! Please visit the GitHub repository to:

  • Report issues

  • Submit pull requests

  • Suggest improvements

License

MIT

Available Tools

4 tools
get_collection_itemsC

Gets all items in a specific Zotero collection.

Inputs: collection_key (required), limit. Returns: result

get_items_metadataC

Get detailed information on specific item(s) in the library

Inputs: item_key (required), include_fulltext, include_abstract, include_bibtex. Returns: result

get_zotero_informationC

Returns by default information on the Zotero library containing Research Papers collected by the User.Good to call if you dont have a clear understanding yet what to ask from this tool. The returned information can be finetuned by asking for summary, collections, recent items, tags.

Inputs: properties, limit, itemType. Returns: result

search_libraryB

Search the Zotero library for an item.

Inputs: query (required), qmode, itemType, tag, +2 more. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 4 tools

    Disambiguation4/5

    The tools have mostly distinct purposes: get_collection_items retrieves items from a collection, get_items_metadata fetches details for specific items, get_zotero_information provides library overview, and search_library searches across the library. However, get_collection_items and search_library could be slightly confused as both retrieve items, but their scopes (collection-specific vs. library-wide) help differentiate them.

    Naming Consistency4/5

    The naming follows a consistent verb_noun pattern (get_collection_items, get_items_metadata, get_zotero_information, search_library) with all tools using snake_case. The only minor deviation is that get_zotero_information uses 'information' instead of a more specific noun like 'overview', but it still fits the pattern well.

    Tool Count3/5

    With 4 tools, the count is on the low side for a library management system like Zotero, which typically involves CRUD operations. While it covers basic retrieval and search, it feels thin for the domain, lacking tools for creating, updating, or deleting items or collections, which are common in such systems.

    Completeness2/5

    The tool set is severely incomplete for a Zotero connector, focusing only on read operations (get and search). There are significant gaps: no tools for creating, updating, or deleting items, collections, or tags, and no support for managing attachments or notes. This will cause agent failures when full library management is needed.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables Claude to access and search a local Zotero library by querying metadata and providing direct paths to PDF files. This allows the model to browse research collections and natively read academic papers without requiring text extraction or manual exports.
      -
    • A
      license
      A
      quality
      D
      maintenance
      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.
      9
      -