Cover image
Try Now
2025-03-18

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

Zotero MCP Server

A Model Context Protocol (MCP) server that integrates with Zotero, allowing AI applications to access and manipulate Zotero libraries.

Features

  • Search for items in Zotero libraries
  • Get citations and bibliographies
  • Add new items to Zotero libraries
  • Access collections and items
  • Support for both personal and group libraries

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/zotero-mcp-server.git
    cd zotero-mcp-server
    
  2. Create a virtual environment:

    python -m venv venv
    
  3. Activate the virtual environment:

    • On Linux/macOS:
      source venv/bin/activate
      
    • On Windows:
      venv\Scripts\activate
      
  4. Install dependencies:

    pip install -r requirements.txt
    

Configuration

  1. Copy the example environment file:

    cp .env.example .env
    
  2. Edit the .env file with your Zotero API credentials:

    ZOTERO_API_KEY=your_api_key_here
    ZOTERO_USER_ID=your_numeric_user_id_here
    # ZOTERO_GROUP_ID=your_group_id_here  # Uncomment to use a group library
    

    You need to set either ZOTERO_USER_ID (for personal libraries) or ZOTERO_GROUP_ID (for group libraries).

  3. If you're not sure how to find your Zotero user ID, run:

    ./find_zotero_id.py
    

Usage

Running the Server

python src/server.py

The server will start and listen for JSON-RPC requests on standard input/output.

Testing the Server

./simple_test.py

This will run a series of tests to verify that the server is working correctly.

Integration with AI Applications

The Zotero MCP server can be integrated with AI applications that support the Model Context Protocol. See the USAGE_GUIDE.md file for detailed examples.

Available Resources

  • zotero://collections: List of collections in the Zotero library
  • zotero://items/top: Top-level items in the Zotero library
  • zotero://items/recent: Recently added or modified items in the Zotero library
  • zotero://collections/{collection_key}/items: Items in a specific Zotero collection
  • zotero://items/{item_key}: Details of a specific Zotero item
  • zotero://items/{item_key}/citation/{style}: Citation for a specific Zotero item in a specific style

Available Tools

  • search_items: Search for items in the Zotero library
  • get_citation: Get citation for a specific item
  • add_item: Add a new item to the Zotero library
  • get_bibliography: Get bibliography for multiple items

Documentation

For more detailed information, see:

  • USAGE_GUIDE.md: Comprehensive usage guide
  • test_client.py: Interactive test client
  • simple_test.py: Simple test script
  • find_zotero_id.py: Helper script to find your Zotero IDs

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • INFOLAB OPERATIONS 2
  • A medical specialist offering assistance grounded in clinical guidelines. Disclaimer: This is intended for research and is NOT safe for clinical use!

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • J. DE HARO OLLE
  • Especialista en juegos de palabras en varios idiomas.

  • Daren White
  • A supportive coach for mastering all Spanish tenses.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

  • zhaoyunxing92
  • MCP(消息连接器协议)服务

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

    Reviews

    1 (1)
    Avatar
    user_lLxE73Hq
    2025-04-16

    I've been using the Zotero-mcp-server from cr625 and it's been an absolute game changer for managing my research references. The setup was straightforward, and the integration with Zotero is seamless. The server runs smoothly and efficiently, making it easy to sync and organize my data. Kudos to cr625 for creating such a valuable tool! Highly recommended for anyone serious about their scholarly work. You can check it out here: https://github.com/cr625/zotero-mcp-server