Skip to main content
Glama

notes_list

List all notes or filter by a specific folder in Apple Notes using AppleScript integration. Simplify organization and retrieval of notes directly from macOS.

Instructions

[Apple Notes operations] List all notes or notes in a specific folder

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
folderNoOptional folder name to list notes from

Implementation Reference

  • Handler function that generates the AppleScript for listing notes, optionally filtered by folder.
    script: (args) => { const { folder = "" } = args; if (folder) { return ` tell application "Notes" set folderList to folders whose name is "${folder}" if length of folderList > 0 then set targetFolder to item 1 of folderList set noteNames to name of notes of targetFolder return noteNames as string else return "Folder not found: ${folder}" end if end tell `; } else { return ` tell application "Notes" set noteNames to name of notes return noteNames as string end tell `; } },
  • Input schema defining the optional 'folder' parameter for the notes_list tool.
    type: "object", properties: { folder: { type: "string", description: "Optional folder name to list notes from" } } }
  • Registers the 'notes_list' tool in the MCP listTools handler by constructing names as category_script.
    this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: this.categories.flatMap((category) => category.scripts.map((script) => ({ name: `${category.name}_${script.name}`, // Changed from dot to underscore description: `[${category.description}] ${script.description}`, inputSchema: script.schema || { type: "object", properties: {}, }, })), ), }));
  • src/index.ts:35-35 (registration)
    Registers the notes category containing the list script, enabling the notes_list tool.
    server.addCategory(notesCategory);
  • Parses tool names like 'notes_list' into category 'notes' and script 'list' during tool execution.
    const [categoryName, ...scriptNameParts] = toolName.split("_"); const scriptName = scriptNameParts.join("_"); // Rejoin in case script name has underscores

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/joshrutkowski/applescript-mcp'

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