PinMark
v0.3.0Create, search, read and organize PinMark sticky notes on your Mac.
An MCP server for PinMark — let AI agents create, search, update, and organize sticky notes on your Mac. Fully local: notes never leave your machine, there's no network backend, and no third-party analytics. The agent reads and writes the notes you choose to expose to it. It's a thin adapter over the pinmark command-line tool: the PinMark app remains the single source of truth for storage, validation, and the free/Pro boundary. Add to your client config (e.g. Claude Desktop claude_desktop_config.json, or Cursor):
Summary extracted from the README.
@pinmark/mcp
An MCP server for PinMark — let AI agents create, search, update, and organize sticky notes on your Mac. Fully local: notes never leave your machine, there's no network backend, and no third-party analytics. The agent reads and writes the notes you choose to expose to it.
It's a thin adapter over the pinmark command-line tool: the PinMark app remains the single
source of truth for storage, validation, and the free/Pro boundary.
Requirements
- macOS with PinMark installed.
- Node.js 20 or later (for
npx). - The
pinmarkCLI installed (PinMark → Settings → Command Line Tool). The server looks for~/.local/bin/pinmark, then falls back to yourPATH. Without it the server still starts, and every tool call returnscli_not_installedwith install guidance.
Use with an MCP client
Add to your client config (e.g. Claude Desktop claude_desktop_config.json, or Cursor):
{
"mcpServers": {
"pinmark": {
"command": "npx",
"args": ["-y", "@pinmark/mcp"]
}
}
}
The server runs over stdio and is launched on demand by the client.
Tools
| Tool | What it does |
|---|---|
create_note |
Create a text note (Markdown), optionally from a template, with a color and paper. |
create_image_note |
Create an image note from an image file on this Mac (absolute path). |
append_to_note |
Append text to an existing note. |
update_note |
Update content / title / color / paper / caption. |
get_note |
Fetch one note: verbatim content, readable visibleText, embedded assets; image notes also return the image (long images in tiles). Can read notes in the trash. |
list_notes |
List notes, newest edit first, with offset paging and since / onDesktop filters. |
search_notes |
Search by title, content, caption, or image filename (same paging and filters). |
list_templates |
List templates for create_note's template. |
delete_note |
Move a note to the trash (recoverable). |
restore_note |
Restore a note from the trash. |
pin_note / unpin_note |
Pin a note to the desktop (show its window) / unpin it from the desktop (it stays in the workspace). Not "float on top". |
open_note |
Bring a note to the foreground (this one activates PinMark). |
Note ids come from list_notes / search_notes / create_note. Content is Markdown. Edit from
content (it keeps pinmark-asset:/// addresses intact); visibleText and preview are for
reading only. Paging is not a snapshot, and since is a filter, not a sync cursor.
Every tool declares MCP annotations (read-only / destructive / idempotent) and an output schema;
results carry structuredContent plus the same data as JSON text, and image notes add image
content blocks.
Behavior notes
- Non-disruptive: every operation reaches PinMark without stealing focus, except
open_note(and*_open), which intentionally brings the note to the foreground. - Pro features: custom note colors (non-preset), Pro papers and a few limits are enforced by
the app; if a call hits one, the tool returns a clear error (e.g.
paper_requires_pro). - Trash safety:
delete_noteis a recoverable trash move; there is no permanent delete. Other mutations don't act on trashed notes. - Works with older PinMark versions: the server asks the app what it supports (
ping) and checks each call against it. A parameter the installed app cannot handle returnsupgrade_requiredinstead of a confusing error; calls the older app supports keep working.get_notereturns the image only when the app can (includeImage: "auto"), and otherwise just the caption with a note that an update adds it. - Timeouts: the first call of a session may have to launch PinMark, so it waits up to 30 s; later calls use the CLI default of 15 s.
Development
npm install
npm run build # tsc -> dist/
npm test # vitest: invocation, capability negotiation, tool results (against a scripted fake CLI),
# and the built entry over stdio with a 2025-era and a 2026-07-28 client
Built on the v2 TypeScript SDK (@modelcontextprotocol/server). The stdio entry serves both
protocol eras: clients on the 2025 revisions open with initialize, clients on 2026-07-28 with
server/discover, and both get the same tools and results.
Dependencies are pinned to exact versions. npx -y @pinmark/mcp installs whatever the ranges
allow on each user's machine, so a minor SDK or zod release could change tool registration or
schema validation for users without a new release of this package. Upgrade them deliberately and
rerun the tests.
Publishing
This is a public scoped package. publishConfig.access is set to public in
package.json, so npm publish does not need an explicit --access public flag.
First-time setup:
- An npm account, and membership in the
pinmarkorg (the@pinmarkscope). Create the org at npmjs.com if it doesn't exist yet — a free org can publish unlimited public packages.
Each release:
npm login # or use an automation token in CI
npm publish # prepack runs the build; add --otp=<code> if 2FA is on
npm view @pinmark/mcp version # verify the published version
npx -y @pinmark/mcp # smoke test: should start the stdio server
MCP Registry
The server is published to the official registry as space.pinmark/pinmark. server.json holds the
listing and mcpName in package.json must match its name; the registry checks the published
npm package for it, so publish to npm first. Bump version in both server.json fields together
with package.json.
The space.pinmark/ namespace is proved by the pinmark.space domain (HTTP method): the website
serves the public key at https://pinmark.space/.well-known/mcp-registry-auth, and the private key
stays off the repository.
brew install mcp-publisher
mcp-publisher validate
mcp-publisher login http --domain pinmark.space --private-key "$PRIVATE_KEY"
mcp-publisher publish
curl "https://registry.modelcontextprotocol.io/v0.1/servers?search=space.pinmark/pinmark"
npx -y @pinmark/mcp always pulls the latest published version. From 0.3.0 the server negotiates
with the installed app, so a release no longer has to wait for the matching app version: calls the
app cannot handle return upgrade_required. Bump the package version whenever the tools change.
| Package | Works with | Contract change |
|---|---|---|
| 0.3.0 | Any PinMark with the CLI; new parameters need the release after 1.10.0 | Speaks MCP 2026-07-28 as well as the 2025 revisions (SDK v2, Node.js 20+). Capability negotiation; annotations and output schemas; create_image_note, list_templates; template / paper; get_note reads the trash and returns images; list paging and filters; starts without the CLI. |
| 0.2.0 | The PinMark release after 1.9.0 | pin_note / unpin_note put a note on / take it off the desktop (previously only toggled a flag); isPinned reports whether the note is on the desktop; unpin_note can fail with unpin_blocked. |
License
MIT