Skip to main content
Glama
ailenshen

Apple Notes MCP Server

update_note

Modify existing Apple Notes by replacing content with new Markdown while keeping the original folder location.

Instructions

Update an existing note in Apple Notes. Deletes the old note and creates a new one with the given Markdown content, preserving the original folder.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYesTitle of the existing note to update
markdownYesNew Markdown content for the note. First line (with or without #) becomes the title.
folderNoFolder name to scope the search for the existing note

Implementation Reference

  • The implementation of update_note, which finds the original note folder, deletes the existing note, and creates a new one with the updated content.
    export async function updateNote(
      title: string,
      markdown: string,
      folder?: string
    ): Promise<string> {
      // 1. Find the note's current folder via SQLite
      const row = findNoteByTitle(title, folder);
      if (!row) throw new Error(`Note not found: ${title}`);
      const originalFolder = row.folder || "Notes";
    
      // 2. Delete the old note
      await deleteNote(title, folder);
    
      // 3. Create the new note in the original folder
      return createNote(markdown, originalFolder);
    }

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/ailenshen/apple-notes-mcp'

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