Notability MCP
by ardaberkk
README.md
# Notability MCP (unofficial)
An [MCP](https://modelcontextprotocol.io) server that lets AI assistants and other MCP clients read, search and organize your notes in the **Notability desktop app for Windows**.
> **Unofficial connector.** This project is not affiliated with, endorsed by or supported by Ginger Labs. It relies on undocumented internals of the Notability desktop app, so an app update can break it at any time. Use it at your own risk and keep backups.
>
> **Tested only on Windows 11 with Notability desktop 26.46.5.** It only works with the Notability **desktop app for Windows**, not with the iPad, Mac, Android or web apps.
## How it differs from the official Notability MCP
Ginger Labs offers an [official MCP server](https://support.gingerlabs.com/en-us/articles/18567238-connect-notability-to-claude-chatgpt-and-other-ai-apps) at `https://notability.com/mcp`. **The main difference: this connector can write.**
| | Official (`notability.com/mcp`) | This project |
|---|---|---|
| Read and search notes | Yes, including recognized handwriting and recording transcripts | Yes: typed text, PDF text, and notes as page images |
| Create, rename, move, organize, import and export | No (read-only) | Yes |
| Where it runs | Notability's cloud | Locally, through the Windows desktop app |
| Plans | Plus, Pro, Business, Business Pro | Any plan that can use the Windows desktop app |
If you only need to read and search, the official server is the simpler and safer choice. Use this one if you want your assistant to organize your library.
## What it can do
- **Read:** list folders and notes, read any note as page images (handwriting, PDFs, drawings), get typed text.
- **Search:** full-text search across titles, typed text and PDF text, with page numbers. Accents and Turkish letters are ignored.
- **Organize:** create, rename, recolor, move, reorder and delete folders; create, rename, move, duplicate, favorite, trash and restore notes.
- **Files:** export notes as `.note` files; import PDFs and `.note` files one by one or in bulk, from whole directories.
- **Backup:** export your entire library to dated folders with one command.
- **Optional MCP badge:** a small "MCP" indicator next to Notability's Record button, green while a client is connected.
Every change goes through Notability's own sync, so it shows up on your other devices.
## Requirements
- Windows 10 or 11 with the Notability desktop app installed and signed in
- [Node.js](https://nodejs.org) 22 or newer
- An MCP client that supports local (stdio) servers
## Install
Claude Code:
```powershell
claude mcp add notability -s user -- npx -y github:ardaberkk/notability-mcp
```
Claude Desktop (`claude_desktop_config.json`):
```json
{
"mcpServers": {
"notability": { "command": "npx", "args": ["-y", "github:ardaberkk/notability-mcp"] }
}
}
```
Or from a clone:
```powershell
git clone https://github.com/ardaberkk/notability-mcp
cd notability-mcp
npm install
claude mcp add notability -s user -- node "$PWD\cli.mjs"
```
### Optional setup
```powershell
npx -y github:ardaberkk/notability-mcp setup
```
This does two things, both reversible with `uninstall`:
1. **Launch flags:** adds the debug-port flags to Notability's Start menu, Desktop and taskbar shortcuts, so the MCP can attach without restarting the app.
2. **MCP badge:** adds the green/red "MCP" indicator to Notability. It adds one script tag to `resources\app-dist\index.html` and backs up the original as `index.html.mcp-backup`.
Notability updates overwrite both. After setup, the server re-applies them automatically whenever it starts.
## How it works
Notability for Windows is the Notability web app in an Electron shell. This server connects to it through Chromium's DevTools protocol on `127.0.0.1:9222` and calls the app's own internal services, such as its library manager and note manager. It doesn't simulate clicks.
If Notability isn't running with the debug port when a tool is first used, the server closes it and reopens it with:
- `--remote-debugging-port=9222`
- `--disable-features=CalculateNativeWinOcclusion`, `--disable-backgrounding-occluded-windows` and `--disable-renderer-backgrounding`, so pages keep rendering while the window is covered
For `read_note`, a minimized window is restored without taking focus and minimized again afterwards, because Chromium doesn't draw PDF pages in a minimized window.
Every write waits until Notability's outgoing queue is empty and the change appears locally. It then checks again 1.5 s later, so a change the server rejects afterwards is reported as an error, not as a success.
## Tools
27 tools in five groups.
**Read**
| Tool | What it does |
|---|---|
| `list_folders` | Subjects and folders as a tree, with note counts per folder and including subfolders |
| `list_notes` | Notes with their folder, dates, favorite and recording flags. Filter by folder (including subfolders), unfiled, favorites, recordings or Recently Deleted; sort by last opened, updated, created or title |
| `search_notes` | Notes whose title or folder contains the query |
| `get_note` | One note's details plus its cached thumbnail |
| `read_note` | Opens a note and returns it as page images, top to bottom, in overlapping views, so handwriting, PDFs and drawings can be read. Long notes come back in batches |
| `get_note_text` | A note's typed text and page count, without opening it on screen |
**Search**
| Tool | What it does |
|---|---|
| `refresh_index` | Updates the local search index with typed text, PDF text and ink counts for notes that changed. Works in ~40-second batches |
| `search_content` | Full-text search across titles, typed text, PDF text (with page numbers) and stored handwriting transcripts. Ignores accents and Turkish letters |
| `list_untranscribed` | Handwritten notes whose transcript is missing or out of date |
| `set_note_transcript` | Stores a plain-text transcription of a note's handwriting in the index so it becomes searchable |
**Folders**
| Tool | What it does |
|---|---|
| `create_folder` | Creates a top-level subject or a folder inside another folder, with an optional color |
| `rename_folder` | Renames a folder |
| `set_folder_color` | Changes a folder's color |
| `move_folder` | Moves a folder inside another folder or to the top level; refuses to move a folder into itself |
| `reorder_folders` | Sets the order of folders that share a parent |
| `delete_folder` | Deletes an empty folder |
**Notes**
| Tool | What it does |
|---|---|
| `create_note` | Creates a new, empty note in a folder |
| `rename_note` | Renames a note |
| `move_note` | Moves a note into a folder, or out of all folders (Unfiled) |
| `duplicate_note` | Copies a note with all its pages and content |
| `set_favorite` | Marks or unmarks a note as a favorite |
| `trash_note` | Moves a note to Recently Deleted |
| `restore_note` | Brings a note back from Recently Deleted |
**Files**
| Tool | What it does |
|---|---|
| `export_note` | Saves a note as a `.note` file that Notability can import again |
| `import_note` | Imports a `.note` file as a new note |
| `import_pdf` | Imports a PDF as a new note |
| `import_files` | Imports many PDFs and `.note` files from files or directories (optionally recursive) into a folder it can create, with a dry run and a per-file report |
Notes:
- Nothing is ever permanently deleted. `trash_note` moves notes to Recently Deleted.
- Notability doesn't recognize handwriting locally. Handwriting only becomes searchable once a transcript is stored with `set_note_transcript`, for example after an assistant reads the note with `read_note`.
- The search index is stored in `%APPDATA%\notability-mcp\index.json`. Run `refresh_index` after notes change; it works in ~40-second batches.
## Command line
```text
notability-mcp Start the MCP server on stdio
notability-mcp setup Add launch flags and the MCP badge
notability-mcp uninstall Undo setup
notability-mcp status Show what setup changed
notability-mcp backup Export every note to Documents\Notability Backups\<date>
```
`backup` keeps the newest 3 backups by default (`NOTABILITY_BACKUP_KEEP`). It only removes old backups when the new one finished without failures. To run it weekly:
```powershell
$action = New-ScheduledTaskAction -Execute "npx.cmd" -Argument "-y github:ardaberkk/notability-mcp backup"
$trigger = New-ScheduledTaskTrigger -Weekly -DaysOfWeek Sunday -At 20:00
Register-ScheduledTask -TaskName "Notability MCP Weekly Backup" -Action $action -Trigger $trigger
```
## Configuration
| Variable | Default | Purpose |
|---|---|---|
| `NOTABILITY_DEBUG_PORT` | `9222` | DevTools port |
| `NOTABILITY_PATH` | `%LOCALAPPDATA%\Programs\notability-desktop\Notability.exe` | App location |
| `NOTABILITY_MCP_DATA` | `%APPDATA%\notability-mcp` | Search index and setup marker |
| `NOTABILITY_BACKUP_DIR` | `Documents\Notability Backups` | Backup destination |
| `NOTABILITY_BACKUP_KEEP` | `3` | Backups to keep |
## Security and privacy
- **The debug port can control your session.** While Notability runs with the debug port, any program on your PC can control your signed-in Notability session through it. The port only listens on `127.0.0.1`. If that matters to you, start Notability normally when you're not using the MCP.
- **Everything stays local.** The server sends nothing anywhere except to the local Notability app. Notability itself syncs with its cloud as usual.
- **Notability's own features may run.** Opening notes can trigger Notability's built-in "Learn" features in the background.
## Development
```powershell
npm install
npm run test:read # read-only checks against your library
npm run test:write # creates throwaway "MCP Test …" folders and notes, then removes them
```
Both test suites need Notability running. If a write test is interrupted, delete any leftover "MCP Test" or "MCP Batch" items by hand.
| File | Role |
|---|---|
| `cli.mjs` | Command-line entry point |
| `server.mjs` | Read tools and server startup |
| `writeTools.mjs` | Write, import and export tools |
| `searchTools.mjs` | Search index and search tools |
| `cdp.mjs` | DevTools connection, app relaunch and heartbeat |
| `bridge.mjs` | Locates Notability's internal services on the JS heap |
| `patch/` | Optional setup: MCP badge and shortcut flags |
| `window.ps1` | Restores and minimizes the Notability window |
## Limitations
- Windows only.
- Audio recordings, sharing and collaboration aren't supported.
- Writing into note content (ink or text) isn't supported. Organizing, importing and exporting are.
## License
[MIT](LICENSE)
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues