get_collections
Retrieve all collections from your Zotero library to organize and access your research materials efficiently.
Instructions
List all collections in the Zotero library
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/zotero_mcp/client.py:63-65 (handler)The implementation of the get_collections logic in the ZoteroClient class.
def get_collections(self) -> list[dict]: """List all collections with parent info and item counts.""" collections = self.zot.collections() - src/zotero_mcp/server.py:77-81 (registration)The registration of the get_collections tool in the MCP server.
@mcp.tool(description="List all collections in the Zotero library") def get_collections() -> str: """Returns flat list of collections with key, name, parent, and item count.""" results = _get_client().get_collections() return json.dumps(results, ensure_ascii=False)