Apple Calnot
БесплатноНе проверенProvides MCP tools to read, search, create, append, and delete iCloud Notes by leveraging the authenticated Notes web app's internal JavaScript API, avoiding OC
Описание
Provides MCP tools to read, search, create, append, and delete iCloud Notes by leveraging the authenticated Notes web app's internal JavaScript API, avoiding OCR or canvas parsing.
README
Local MCP/WebUI bridge for iCloud Notes.
The app keeps an authenticated iCloud Notes browser session alive, syncs notes into MongoDB, and exposes note operations through MCP.
Commands
make start
make stop
make clean
make startstarts Docker Compose without rebuilding and preserves volumes/session state.make stopstops containers and preserves volumes/session state.make cleanremoves containers and volumes. This wipes MongoDB and the browser profile, so iCloud login will be required again.
To apply code changes to the app container while preserving volumes/session:
docker compose up -d --build mcp-notes
Login Flow
- Open the WebUI at
http://localhost:3000. - Click
Generate Code. - Copy the generated code.
- Log into iCloud in the embedded browser view.
- Click
Start. - After start, WebUI/API/MCP access requires the generated code.
The browser profile is persisted in the Docker volume mounted at /data, so normal make stop / make start should keep the iCloud session.
Current Architecture
WebUI / MCP
|
NotesProcessor
|
BrowserController
|
Playwright authenticated iCloud page
|
iCloud Notes iframe
|
window.NotesApp
|
NotesApp.dataManager.allNotes
|
note.getTopoText()
|
MongoDB
Playwright is still useful, but not for OCR or visual scraping. It is used to keep an authenticated iCloud page open and to evaluate JavaScript inside the iCloud Notes iframe.
iCloud Notes Discovery
We originally saw note content rendered through a canvas-like/custom editor surface. OCR was rejected because it is unreliable and loses structure. The important discovery is that the visible editor is only the presentation layer; the real Notes model is available in the running iCloud web app.
The path to discovery was:
- The top-level iCloud HTML showed that
/notesbootstraps a child application iframe. - The bootstrap script resolves
/notestonotes3. - It creates an iframe with id
early-child. - That iframe loads:
https://www.icloud.com/applications/notes3/current/en-us/index.html?rootDomain=www...
- Safari Apple Events inspection confirmed the top page has that iframe.
- Inspecting
document.querySelector('iframe').contentWindowshowed these globals:
CloudKit
NotesApp
- Drilling into
window.NotesAppshowed:
NotesApp.dataManager
NotesApp.mainViewModel
NotesApp.rootViewController
NotesApp.dataManager.allNotescontains the loaded note models.NotesApp.mainViewModel.selectedNotepoints to the selected note.- Each note model exposes Notes-specific fields and helpers:
id
recordName
Title
Snippet
TopoTextString
getTopoText()
CreationDate
ModificationDate
zoneID
note.getTopoText() loads/decodes the full note body using Apple's own app code. This avoids OCR, canvas parsing, and reimplementing Apple's TopoText decoder.
CloudKit vs NotesApp
CloudKit is Apple's generic iCloud database transport layer. It talks to endpoints such as:
ckdatabasews/.../database/1/com.apple.notes/production/private/records/query
ckdatabasews/.../database/1/com.apple.notes/production/private/records/lookup
ckdatabasews/.../database/1/com.apple.notes/production/private/changes/zone
NotesApp is the running iCloud Notes web application loaded inside the iframe. It wraps CloudKit, owns UI/application state, manages folders and notes, and decodes Notes-specific content.
For this project, NotesApp is the preferred first integration point because it already exposes decoded note models:
const notesWindow = document.querySelector('iframe').contentWindow;
const notes = notesWindow.NotesApp.dataManager.allNotes;
const body = String(await notes[0].getTopoText());
Direct CloudKit access is still useful later for lower-level sync/write operations, but it requires handling raw record fields, assets, zipped protobuf TopoText, and write semantics.
Stable Note Identity
iCloud note URLs contain the CloudKit identity encoded as base64:
/notes/note/<base64>
Decoding the URL path gives:
Private::Notes::currentUser::<recordName>
Example observed from Safari:
Private::Notes::currentUser::ADAC358D-E303-4639-A5C2-192AE0726967
The sync stores this metadata as cloudKit:
{
"recordId": "Private::Notes::currentUser::<recordName>",
"database": "Private",
"zoneName": "Notes",
"ownerName": "currentUser",
"recordName": "<recordName>"
}
Sync Strategy
The current read path is:
- Open or reuse the authenticated iCloud Notes page.
- Find the Notes iframe.
- Evaluate JavaScript inside the iframe.
- Read
NotesApp.dataManager.allNotes. - Filter deleted/trash notes.
- Await
note.getTopoText()for each note. - Store title, body, URL identity, and CloudKit metadata in MongoDB.
The older DOM/card scraper remains only as a fallback.
Write Strategy
Safari runtime testing confirmed that create, update, and delete can be driven through NotesApp directly.
Observed working methods:
const app = document.querySelector('iframe').contentWindow.NotesApp;
const dataManager = app.dataManager;
const Note = app.mainViewModel.selectedNote.constructor;
Create:
const note = Note.createNoteWithTitleText(fullText, folder);
dataManager.userDidCreateNote(note);
await note.save(true);
Update:
const replacement = Note.createInitialTopoTextString(nextText);
dataManager.topoTextManager.load(note.id, replacement);
note.userDidChangeTopoText();
await note.save(true);
Delete:
await note.deleteOrMoveToRecentlyDeletedAsNeeded();
The delete path moves normal private notes to Recently Deleted, matching the web app behavior.
The probe used a temporary note and verified:
- create through
Note.createNoteWithTitleText - update through
topoTextManager.loadanduserDidChangeTopoText - delete through
deleteOrMoveToRecentlyDeletedAsNeeded - stable CloudKit identity persisted as
Private::Notes::currentUser::<recordName>
MCP writes now use this runtime path first. UI keyboard fallback remains only as a backup for append/create.
What Not To Do
- Do not use OCR/Tesseract for note bodies.
- Do not treat canvas pixels as the source of truth.
- Do not identify notes by title; titles are mutable and non-unique.
- Do not use
make cleanunless you intentionally want to wipe browser and database persistence.
Validation
npm run check
MCP Endpoint
The MCP server is exposed at:
POST /mcp
Authentication accepts any of:
Authorization: Bearer <generated-code>
X-Auth-Token: <generated-code>
?token=<generated-code>
apple_mcp_token cookie
The server advertises these MCP tools:
listNotes
getNote
searchNotes
createNote
appendNote
deleteNote
For ChatGPT testing, expose the app over HTTPS and configure the MCP URL as:
https://your-domain.example/mcp?token=<generated-code>
Using the token in the URL is convenient for testing because the current server uses a generated static code, not OAuth. For a durable public deployment, prefer adding OAuth or a reverse proxy that injects the bearer token server-side, so the code is not stored in connector URLs or logs.
Установка Apple Calnot
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/GitRegret/apple-mcp-calnotFAQ
Apple Calnot MCP бесплатный?
Да, Apple Calnot MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Apple Calnot?
Нет, Apple Calnot работает без API-ключей и переменных окружения.
Apple Calnot — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Apple Calnot в Claude Desktop, Claude Code или Cursor?
Открой Apple Calnot на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
LibreOffice Tools
Enables AI agents to read, write, and edit Office documents via LibreOffice with token-efficient design. Supports multiple formats including DOCX, XLSX, PPTX, a
автор: passerbyflutterdannote/figma-use
Full Figma control: create shapes, text, components, set styles, auto-layout, variables, export. 80+ tools.
автор: dannoteLogo.dev
Search and retrieve company logos by brand or domain. Customize size, format, and theme to match your design needs. Accelerate design, prototyping, and content
автор: NOVA-3951PIX4Dmatic
Enables GUI automation for controlling PIX4Dmatic on Windows through MCP. Supports launching, focusing, capturing screenshots, sending hotkeys, clicking UI elem
автор: jangjo123Compare Apple Calnot with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории design
