Skip to main content
Glama

get_archived_notes

Retrieve all archived notes from Bear Notes on macOS to access and manage previously stored content through the MCP Bear server.

Instructions

Get all archived notes

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The implementation of the get_archived_notes function, which queries the ZSFNOTE table for entries where ZARCHIVED=1.
    def get_archived_notes() -> list[dict[str, Any]]:
        """
        Retrieve all archived notes from Bear.
    
        Returns:
            List of archived notes
        """
        db_path = get_bear_db_path()
        conn = sqlite3.connect(db_path)
        conn.row_factory = sqlite3.Row
        cursor = conn.cursor()
    
        try:
            cursor.execute("SELECT * FROM ZSFNOTE WHERE ZARCHIVED=1;")
            rows = cursor.fetchall()
    
            notes = []
            for row in rows:
                notes.append({
                    "ZCREATIONDATE": row["ZCREATIONDATE"],
                    "ZSUBTITLE": row["ZSUBTITLE"],
                    "ZTEXT": row["ZTEXT"],
                    "ZTITLE": row["ZTITLE"],
                    "ZUNIQUEIDENTIFIER": row["ZUNIQUEIDENTIFIER"],
                })
    
            return notes
        finally:
            conn.close()

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/maxim-ist/mcp-bear'

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