Fire in da houseTop Tip:Most people pay up to $340 per month for Perplexity, MidJourney, Runway, ChatGPT, and more - but you can get them all your AI tools for $15 with Galaxy. It's free to test!Fire in da houseCheck it out

mcp-zotero

MCP.Pizza Chef: kaliaboi

MCP Zotero is a Model Context Protocol server that integrates Zotero, a popular reference management tool, with AI models like Claude Desktop. It allows the model to interact directly with your Zotero Cloud library, enabling real-time access to collections, sources, notes, and files. By using your Zotero API credentials, MCP Zotero securely fetches and exposes structured bibliographic data to AI agents, facilitating enhanced research workflows, citation management, and knowledge retrieval. This server bridges academic reference management with AI-powered assistance, streamlining literature review and source organization tasks.

Use This MCP server To

Access Zotero collections and sources via AI models Retrieve bibliographic metadata for research assistance Manage Zotero notes and annotations through AI Integrate Zotero library data into AI workflows Automate citation extraction and formatting Enable AI-driven literature review support

README

MCP Zotero

NPM Version smithery badge

A Model Context Protocol server for Zotero integration that allows Claude to interact with your Zotero library.

Zotero MCP server

Setup

  1. Get your Zotero credentials:

    # First, create an API key at https://www.zotero.org/settings/keys
    # Then use it to get your user ID:
    curl -H "Zotero-API-Key: YOUR_API_KEY" https://api.zotero.org/keys/current

    The response will look like:

    {
      "userID": 123456,
      "username": "your_username",
      "access": {
        "user": {
          "library": true,
          "files": true,
          "notes": true,
          "write": true
        }
      }
    }

    The userID value is what you need.

  2. Set environment variables:

    export ZOTERO_API_KEY="your-api-key"
    export ZOTERO_USER_ID="user-id-from-curl"
  3. Verify your credentials:

    # Test that your credentials work:
    curl -H "Zotero-API-Key: $ZOTERO_API_KEY" \
         "https://api.zotero.org/users/$ZOTERO_USER_ID/collections"

    You should see your collections list in the response.

  4. Install and run:

    # Install globally (recommended)
    npm install -g mcp-zotero
    mcp-zotero
    
    # Or run directly with npx
    npx mcp-zotero

Integration with Claude Desktop

To use this server with Claude Desktop, add the following to your Claude Desktop configuration:

{
  "mcpServers": {
    "zotero": {
      "command": "mcp-zotero",
      "env": {
        "ZOTERO_API_KEY": YOUR_API_KEY,
        "ZOTERO_USER_ID": YOUR_USER_ID
      }
    }
  }
}

Available Tools

  • get_collections: List all collections in your library
  • get_collection_items: Get items in a specific collection
  • get_item_details: Get detailed information about a paper
  • search_library: Search your entire library
  • get_recent: Get recently added papers

Troubleshooting

If you encounter any issues:

  1. Verify your environment variables are set:

    echo $ZOTERO_API_KEY
    echo $ZOTERO_USER_ID
  2. Check the installation:

    npm list -g mcp-zotero
  3. Try reinstalling:

    npm uninstall -g mcp-zotero
    npm install -g mcp-zotero

mcp-zotero FAQ

How do I set up MCP Zotero with my Zotero account?
Create an API key at https://www.zotero.org/settings/keys, retrieve your userID using the API key, and configure MCP Zotero with these credentials.
Is my Zotero data secure when accessed via MCP Zotero?
Yes, MCP Zotero uses your personal API key for secure, scoped access to your Zotero library, ensuring data privacy.
Can MCP Zotero work with multiple Zotero libraries?
MCP Zotero primarily supports your personal Zotero Cloud library via your userID and API key; multi-library support depends on Zotero API capabilities.
Does MCP Zotero support file attachments and notes?
Yes, it can access files, notes, and annotations stored in your Zotero library for comprehensive context.
Which AI models can MCP Zotero integrate with?
MCP Zotero is designed to work with Claude Desktop and can be adapted for other LLMs like OpenAI GPT-4 and Anthropic Claude.
How do I update MCP Zotero to the latest version?
Use npm to update the package with 'npm update mcp-zotero' or reinstall it to get the latest features and fixes.
Can MCP Zotero be used in offline mode?
No, MCP Zotero requires internet access to communicate with the Zotero Cloud API for real-time data retrieval.
Where can I find documentation for MCP Zotero?
Documentation and setup instructions are available on the GitHub repository and the MCP server badge link provided in the README.