goodnotes-web-mcp
# goodnotes-web-mcp
An [MCP](https://modelcontextprotocol.io) server (and CLI) that lets AI assistants such as Claude edit your
**GoodNotes** notebooks. They can place images at exact positions, lay out slides in rows, list what is on a
page, search your handwriting, add pages, and undo. It works through **GoodNotes Web**, so every change
syncs to your iPad and other devices.
Typical use: render lecture slides, diagrams or summaries as images and have the assistant lay them out in
your notebook next to your handwritten notes.
> **Unofficial.** GoodNotes has no public API. This tool drives the GoodNotes Web editor in a browser and
> relies on undocumented internals, so a GoodNotes update can break it. It is not affiliated with or
> endorsed by GoodNotes. Use it on your own notebooks, at your own risk, and keep backups.
## How it works
- A **headless Chrome** (via [Playwright](https://playwright.dev)) is started on demand and closed after
10 minutes without use. It has its own browser profile, so you log in **once**.
- Wherever possible it uses **GoodNotes' own code** running in that page:
- **Inserting images** uses the same upload-and-insert action as GoodNotes' "Ask GoodNotes" drag and drop.
The image lands at an exact page position and width in one step: no dragging, no resize handles.
- The **editor bridge** provides exact page↔screen coordinates (`moveViewport`), undo/redo, and turns
snapping off while something is dragged.
- **GoodNotes' built-in WebMCP tools** (add/duplicate/move pages, search, sticky notes, ...) normally need
a Chrome flag; here they are available as one passthrough tool.
- Moving or resizing existing items still uses the mouse, and every result is checked against what the
editor reports, using item ids.
- Tools that change the view return a **screenshot**, so the assistant sees what it did.
## Setup
Requires Node.js 18+ and Google Chrome.
```sh
npx goodnotes-web-mcp login # a window opens: sign in to GoodNotes, then close it
```
The login is stored in `~/.goodnotes-web-mcp/profile` (change with `GOODNOTES_PROFILE_DIR`).
Treat that folder like a password: it contains your session.
### Claude Code
```sh
claude mcp add goodnotes -e GOODNOTES_URL="https://web.goodnotes.com/..." -- npx -y goodnotes-web-mcp
```
### Claude Desktop / other MCP clients
```json
{
"mcpServers": {
"goodnotes": {
"command": "npx",
"args": ["-y", "goodnotes-web-mcp"],
"env": { "GOODNOTES_URL": "https://web.goodnotes.com/..." }
}
}
}
```
`GOODNOTES_URL` is optional: it is the notebook opened at start (open it in GoodNotes Web and copy the
address). Without it, ask the assistant to open a document by link, or by name with
`goodnotes_native_tool` → `open_document`.
From a clone instead of npm: `npm install`, then use `node /path/to/goodnotes-web-mcp/src/cli.js` in place of
`npx -y goodnotes-web-mcp`.
## Tools
Positions on a page are **page points** from the page's top-left. Positions on screen are CSS pixels of the
latest screenshot. Pages are numbered from 1.
| Tool | What it does |
|---|---|
| `goodnotes_open_document` | Open a GoodNotes Web document by URL |
| `goodnotes_status` | Document, current page, page count and size, zoom, undo state |
| `goodnotes_screenshot` | Scroll / zoom, then a screenshot taken once the canvas has finished drawing |
| `goodnotes_go_to_page` | Show page N from its top |
| `goodnotes_show_area` | Centre a page rectangle in the view; returns the page→screen mapping |
| `goodnotes_page_overview` | Thumbnails of all (or some) pages tiled into one image |
| `goodnotes_list_items` | Every item on a page with id, type and page rectangle |
| `goodnotes_item_at` | Id, type, page and rectangle of the item at a screen point |
| `goodnotes_place_image` | Insert a PNG/JPEG `at` a page position, or `below` / `right_of` / `left_of` another item (edge- or centre-aligned, gap in points), or `replace` it |
| `goodnotes_place_in_layout` | Insert into a row layout: `append` to the last row (vertically centred) or start a `new_row` |
| `goodnotes_move_item` | Move an item by pixels, or exactly to a page position (snapping off) |
| `goodnotes_move_area` | Lasso a rectangle (handwriting, highlights, images) and move it all, e.g. to make room |
| `goodnotes_align` | Centre an item on another along x or y |
| `goodnotes_resize_item` | Resize and move an existing item |
| `goodnotes_delete_item` | Delete an item (its id must be given, so nothing else is deleted) |
| `goodnotes_undo` / `goodnotes_redo` | GoodNotes' own undo and redo |
| `goodnotes_search` | Search handwriting and PDF text (matches with page and rectangle) |
| `goodnotes_read_text` | Recognised handwriting and PDF text per page |
| `goodnotes_add_page` | Add a page after the current or last page |
| `goodnotes_native_tool` | Call any of GoodNotes' 32 built-in tools (no name: list them) |
## Watching it work
To watch, attach to a visible Chrome instead of the headless one:
```sh
# start Chrome with --remote-debugging-port=9222, open your notebook in it, then:
GOODNOTES_CDP_URL=http://127.0.0.1:9222 npx goodnotes-web-mcp
```
Or set `GOODNOTES_HEADLESS=0` to show the managed browser window.
## CLI
The same operations are available from the command line (`npx goodnotes-web-mcp help`), e.g.
```sh
goodnotes-web-mcp list 3 # items on page 3
goodnotes-web-mcp place slide.png --at 3,40,1450 --width 314
goodnotes-web-mcp layout slide2.png --page 3 --gap 24 # next to the last slide of the last row
goodnotes-web-mcp overview --out pages.png
goodnotes-web-mcp undo
```
Each CLI call starts and stops its own browser unless `GOODNOTES_CDP_URL` is set, so for many steps use
the MCP server or attach to a running Chrome.
## Environment variables
| Variable | Meaning |
|---|---|
| `GOODNOTES_URL` | Document opened when the browser starts |
| `GOODNOTES_PROFILE_DIR` | Where the login is stored (default `~/.goodnotes-web-mcp/profile`) |
| `GOODNOTES_CDP_URL` | Attach to a running Chrome instead of launching one |
| `GOODNOTES_HEADLESS` | `0` shows the managed browser window |
| `GOODNOTES_DOCUMENT_ID` | Force the document id (normally detected automatically) |
| `GOODNOTES_BROWSER_CHANNEL` | `chromium` to use Playwright's Chromium instead of installed Chrome |
## Known limitations
- Images are not searchable: only handwriting and PDF text are.
- `list_items` finds items by scanning the page and tapping each cluster of ink, so it takes a few seconds
per item, and heights are measured on screen (±2 pt at normal zoom).
- Text boxes cannot be placed at a position; GoodNotes' add-text call ignores the position it is given.
- Some images with transparency are drawn black in `page_overview` thumbnails. This is GoodNotes'
low-zoom rendering; the notebook itself is fine.
- Only one process can use a browser profile at a time. If you also open that profile in a normal Chrome
window, close it or use `GOODNOTES_CDP_URL`.
- If GoodNotes' internals are not found (after a GoodNotes update), image placement falls back to the
toolbar's image button plus dragging; `goodnotes_status` shows which internals were found.
- Tested on macOS with Chrome and GoodNotes Web as of late 2026.
## License
MIT
TDQS
Scored across 21 tools
Most tools have clearly distinct resource/action targets (open, status, go_to_page, show_area, place_image, move_item, delete_item, etc.). There is some overlap among screenshot-oriented navigation tools (screenshot, go_to_page, show_area, page_overview) and between specialized wrappers and goodnotes_native_tool, but the descriptions make the intended use cases reasonably clear.
All tools use a consistent snake_case goodnotes_ prefix, and most follow a verb_noun or action-oriented pattern. A few names are noun-like or bare verbs (status, screenshot, undo, redo, search, align, page_overview), so the pattern is not perfectly uniform but remains predictable.
At 21 tools the surface is heavy for a single MCP server, even though the domain is complex. Many tools earn their place, but the catch-all native_tool and several screenshot/navigation variants push the count into borderline territory.
The set covers document opening/status, page navigation, item read/create/update/delete, layout placement, text search/reading, undo/redo, and page addition. Some gaps (page duplication/deletion, library management, document creation) are only reachable through goodnotes_native_tool, which is a workaround rather than a direct first-class tool.