npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

zotero-manager

v0.1.2

Published

MCP server for Zotero integration with AI assistants - search, cite, and manage research references

Readme

Zotero Manager

Zotero Manager MCP

License: MIT Node >= 20.16

A Model Context Protocol (MCP) server that acts as a Zotero library administrator for AI clients. Organize, clean, and manage references with structured tools, while still supporting search and citation workflows.

English | 中文


✨ Highlights

  • Admin-grade read/write access to Zotero items, collections, and tags
  • Metadata maintenance via structured updates (titles, creators, dates, etc.)
  • Collection/tag organization and batch delete operations
  • Citation generation in common styles (APA, MLA, Chicago, IEEE, etc.)
  • In-memory caching and automatic rate-limit backoff
  • Designed for MCP-compatible clients (stdio transport)

✅ Requirements

  • Node.js >= 20.16
  • Zotero API key
  • Zotero user ID or group ID

Get your API key: https://www.zotero.org/settings/keys

🚀 Quick start

npm

npm install -g zotero-manager

Run:

ZOTERO_API_KEY=your_api_key_here ZOTERO_USER_ID=your_user_id_here zotero-manager

Or with npx:

ZOTERO_API_KEY=your_api_key_here ZOTERO_USER_ID=your_user_id_here npx -y zotero-manager

source

npm install
npm run build

Create a .env file (see .env.example):

ZOTERO_API_KEY=your_api_key_here
ZOTERO_USER_ID=your_user_id_here
# ZOTERO_GROUP_ID=your_group_id_here

Run the server:

node dist/index.js

🔌 MCP client config example

Example for a desktop MCP client that supports stdio transport:

npm (npx)

{
  "mcpServers": {
    "zotero-manager": {
      "command": "npx",
      "args": ["-y", "zotero-manager"],
      "env": {
        "ZOTERO_API_KEY": "your_api_key_here",
        "ZOTERO_USER_ID": "your_user_id_here"
      }
    }
  }
}

source (node)

{
  "mcpServers": {
    "zotero-manager": {
      "command": "node",
      "args": ["/absolute/path/to/dist/index.js"],
      "env": {
        "ZOTERO_API_KEY": "your_api_key_here",
        "ZOTERO_USER_ID": "your_user_id_here"
      }
    }
  }
}

Binary name: zotero-manager.

🛠️ Tools

  • search_items - Search library items (query, tags, collection, item type)
  • get_item - Fetch a single item by key or DOI
  • generate_citation - Format citations in a chosen style
  • create_item - Create a new Zotero item
  • update_item - Update item fields (requires version)
  • delete_items - Delete items (batch up to 50)
  • manage_collections - List/get/create/update/delete collections
  • manage_tags - List/add/remove/delete tags

🧭 Resources

  • zotero://collections - Collection hierarchy and metadata
  • zotero://tags - All tags with usage counts
  • zotero://citation-styles - Common citation style IDs (not exhaustive)

📌 Usage examples

Search items:

{
  "query": "machine learning",
  "limit": 10,
  "sort": "dateAdded",
  "direction": "desc"
}

Update item metadata:

{
  "itemKey": "ITEM_KEY",
  "version": 12,
  "data": {
    "title": "Corrected Title",
    "tags": ["reviewed", "cleaned"]
  }
}

Manage tags for an item:

{
  "action": "add_to_item",
  "itemKey": "ITEM_KEY",
  "tags": ["to-read", "priority"]
}

Delete items in batch:

{
  "itemKeys": ["ITEM_KEY_1", "ITEM_KEY_2"]
}

Generate a citation:

{
  "itemKeys": ["ITEM_KEY_1", "ITEM_KEY_2"],
  "style": "apa",
  "format": "text"
}

Create an item:

{
  "itemType": "journalArticle",
  "title": "Understanding Neural Networks",
  "creators": [
    { "creatorType": "author", "firstName": "Jane", "lastName": "Smith" }
  ],
  "date": "2024",
  "DOI": "10.1234/example",
  "tags": ["neural-networks"],
  "collections": ["COLLECTION_KEY"]
}

⚙️ Configuration

Environment variables:

  • ZOTERO_API_KEY (required)
  • ZOTERO_USER_ID or ZOTERO_GROUP_ID (required)
  • ZOTERO_BASE_URL (default: https://api.zotero.org)
  • ZOTERO_TIMEOUT (default: 30000 ms)
  • ZOTERO_MAX_RETRIES (default: 3)
  • CACHE_ENABLED (default: true)
  • CACHE_TTL_SECONDS (default: 300)
  • LOG_LEVEL (default: info)

🧠 Caching and rate limits

  • Search results use a configurable TTL (default 300s)
  • Collections/tags cached for 15 minutes; item templates cached for 1 hour
  • Honors Backoff / Retry-After and retries transient failures

🧪 Development

npm run dev

Build:

npm run build

Tests (requires valid .env):

npm test

🤝 Acknowledgements

Built on the Zotero Web API and the Model Context Protocol SDK.

📄 License

MIT License.