Skip to main content
Glama
Zotero MCP Connector

Zotero MCP Connector

by gyger

Zotero MCP 连接器

用于将您本地的 Zotero 与 Claude 集成的模型控制协议 (MCP) 连接器。
这使得您可以通过 Claude 的桌面界面直接读取本地 Zotero 库。这取决于 Zotero 7 中访问本地 web-api 的能力。

这是受到使用 Node.js 和 Web API 的存储库的启发: mcp-zotero 。
这是建立在奇妙的pyzotero库的基础之上的。

安装

有关 Claude Desktop 与 MCP 交互的信息可以在这里找到。

  1. 使用uv 。安装说明可在此处找到。

  2. 将 git 项目检出到本地空间并激活其中的虚拟环境:

git clone https://github.com/gyger/mcp-pyzotero.git
cd mcp-pyzotero
uv sync
  1. 在 Zotero 7 中启用本地 API:Zotero 本地 API 设置

  2. 将服务器添加到本地 Claude 安装:

uv run mcp install zotero.py

Related MCP server: zotero-mcp

配置

该连接器配置为与本地 Zotero 安装一起使用,目前仅支持user库。默认情况下,它使用用户 ID 0 ,但您也可以根据需要设置环境变量ZOTERO_USER_ID :

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

可用函数

该连接器提供以下功能:

  • get_collections() :列出 Zotero 库中的所有馆藏

  • get_collection_items(collection_key) :获取特定集合中的所有项目

  • get_item_details(item_key) :获取特定论文的详细信息,包括摘要

  • search_library(query) :搜索整个 Zotero 库

  • get_recent(limit=10) :获取最近添加到您的图书馆的论文

此功能将来会得到扩展。

要求

  • Python 3.10+

  • 本地 Zotero 安装

  • 克劳德桌面

贡献

欢迎贡献!请访问GitHub 仓库:

  • 报告问题

  • 提交拉取请求

  • 提出改进建议

执照

麻省理工学院

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.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    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
      -