Skip to main content
Glama

get_collection_items

Retrieve bibliographic items from a specific Zotero collection to access and organize research materials.

Instructions

List items in a specific Zotero collection

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collection_keyYes
limitNo

Implementation Reference

  • The MCP tool registration and entry point for 'get_collection_items'. It calls the underlying client to retrieve items.
    @mcp.tool(description="List items in a specific Zotero collection")
    def get_collection_items(collection_key: str, limit: int = 100) -> str:
        """Get items within a collection by its key."""
        results = _get_client().get_collection_items(collection_key, limit)
        return json.dumps(results, ensure_ascii=False)
  • The actual logic implementation in the ZoteroClient class that interacts with the pyzotero library to fetch collection items.
    def get_collection_items(self, collection_key: str, limit: int = 100) -> list[dict]:
        """Get items in a specific collection."""
        items = self.zot.collection_items(
            collection_key, limit=limit, itemType="-attachment || note"
        )
        return [self._format_item_summary(item) for item in items]

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BirdInTheTree/zotero-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server