Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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()
  • 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)

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