Drafts MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Drafts MCP Server
Lets Claude (and other AI assistants) talk to the Drafts app on your Mac. Create drafts, search and read your notes, append or prepend text, and run Drafts actions — all by chatting.
Works with: Claude Desktop, Claude Code, Codex CLI, Cursor, Windsurf, VS Code. Needs: the Drafts app on macOS. Nothing else — no programming required.
Install (Claude Desktop — easiest, 2 steps)
This is the recommended path. Takes ~2 minutes, no terminal needed.
1. Download the installer
Go to the latest release page and download the file ending in .mcpb (it's near the top, called drafts-mcp-<version>.mcpb).
2. Double-click the downloaded file
Claude Desktop opens automatically and asks: "Install Drafts extension?". Click Install, then enable it.
Don't have Claude Desktop yet? Get it free from claude.com/download.
Try it
Open Claude Desktop and type:
Create a draft titled "Shopping list" with milk, eggs, and bread.
Some other things to try:
"Show me all my drafts from the inbox."
"Search my drafts for anything mentioning 'invoice'."
"Append a line to that draft with today's date."
Note: for write actions (create / append / prepend / open / run action) the Drafts app must be running — they go through Drafts' URL scheme. Reading and searching work straight from the local database, even if Drafts is closed.
Related MCP server: drafts-mcp-server
Install (other AI tools)
Already using Claude Code, Codex, Cursor, Windsurf, or VS Code? Pick your tool below. All paths need Node.js 18+ (except the standalone-binary option at the bottom).
Same .mcpb file as Claude Desktop above — Claude Code accepts it too. Or install via the CLI:
claude mcp add drafts -- npx -y @mskalski/drafts-mcpcodex mcp add drafts -- npx -y @mskalski/drafts-mcpOpen your client's MCP settings and add:
{
"mcpServers": {
"drafts": {
"command": "npx",
"args": ["-y", "@mskalski/drafts-mcp"]
}
}
}Download the right file from the latest release:
Mac (Apple Silicon, M1/M2/M3/M4):
drafts-mcp-darwin-arm64Mac (Intel):
drafts-mcp-darwin-x64
Make it runnable and bypass Gatekeeper (the binary isn't signed):
chmod +x ~/Downloads/drafts-mcp-darwin-arm64 xattr -d com.apple.quarantine ~/Downloads/drafts-mcp-darwin-arm64Point your AI tool at the binary's full path. Example for Codex:
codex mcp add drafts -- /Users/you/Downloads/drafts-mcp-darwin-arm64
git clone https://github.com/Automaat/drafts-mcp.git
cd drafts-mcp
npm install
npm run buildThen point your client at the built entry point:
{
"mcpServers": {
"drafts": {
"command": "node",
"args": ["/absolute/path/to/drafts-mcp/build/index.js"]
}
}
}Something not working?
Creating / appending / opening drafts does nothing? Make sure the Drafts app is running — write actions go through Drafts' URL scheme. Reading and searching work even when Drafts is closed.
First write seems to hang? macOS may show a prompt asking to let your AI tool open Drafts — approve it and try again.
Reads fail? Confirm Drafts is installed and you can open
~/Library/Group Containers/GTFQ98J4YG.com.agiletortoise.Drafts/.Still stuck? See Troubleshooting below.
Tools
Tool | What it does |
| Create a new draft with content, tags, and an optional action. Returns the new draft's UUID. |
| Get a draft's full content by UUID (reads the local database). |
| List all drafts with metadata, filtered by folder or flag. |
| Full-text search your drafts in the local database. |
| Append text to an existing draft. |
| Prepend text to an existing draft. |
| Open a draft in the Drafts app by UUID or title. |
| Run a named Drafts action on some text. |
| Open the Drafts search UI with query / tag / folder filters. |
Resources
draft://uuid/{uuid}— retrieve a specific draft's content.
How it works
┌─────────────┐ stdio ┌──────────────────┐ reads ┌────────────────────┐
│ AI client │ ◄────────► │ MCP server │ ─────────► │ DraftStore.sqlite │
│ (Claude/ │ │ (Node, stdio) │ │ (local database) │
│ Codex/...) │ └──────────────────┘ └────────────────────┘
└─────────────┘ │ writes via x-callback-url
▼
┌──────────────────┐
│ Drafts app │
└──────────────────┘Reads (
get_*,search_drafts_db) query the local Drafts SQLite database in-process (node:sqlite, orbun:sqlitein the standalone binary) over a persistent read-only connection — works even when Drafts is closed. Falls back to the systemsqlite3CLI on older Node.Writes (
create,append,prepend,open,run_action,search_drafts) hand adrafts://x-callback-urlto the macOSopencommand fire-and-forget — nox-success/x-error/x-cancelcallbacks and no localhost server, so Drafts opens nothing.create_draftreads the new draft's UUID back from the local database. Each write retries 3× with a fixed delay.
CLI reference
drafts-mcp [stdio] Run the MCP server over stdio (default)
drafts-mcp --help Show help
drafts-mcp --version Print versionSecurity
Everything runs locally on your Mac:
Reads query the local Drafts SQLite database directly — no app, network, or cloud involved.
Writes hand a
drafts://x-callback-urlto the macOSopencommand fire-and-forget. There is no callback server and no open network port; nothing listens for a response.No auth tokens, no telemetry, no remote endpoints — your drafts never leave your machine.
Requirements
macOS — the server shells out to
openfor URL schemes and reads the macOS Drafts group container.Drafts app installed (and running for write operations).
Node.js 18+ — unless you use the standalone binary. Node 22.5+ (mise pins 24) reads the database in-process; Node 18/20 falls back to the
sqlite3CLI, which must be onPATH.
Develop
mise install # tools (node, bun)
mise run install # npm install
mise run build # tsc
mise run test # jest
mise run check # lint + format + test + version check
mise run mcpb # build the .mcpb bundle
mise run binary # build standalone macOS binaries via BunRepo layout:
src/— TypeScript MCP server (ESM, Node16).mcpb/manifest.json—.mcpbbundle manifest.scripts/build-mcpb.mjs— pack the.mcpb.scripts/build-binary.mjs— Bun--compileper-target binaries.scripts/bump-version.mjs— single source of truth for the release version.
Releasing
Run the Release workflow (.github/workflows/release.yml) via Actions → Release → Run workflow. It bumps every version source, tags, builds the .mcpb + binaries + npm tarball, publishes to npm (OIDC trusted publishing), and creates the GitHub release.
Adding a new tool
A tool lives in three hand-kept places in src/index.ts plus its implementation — keep them in sync:
Define a
zodschema for the arguments.Add a tool entry (name, description, hand-written JSON Schema
inputSchema) to theListToolsRequestSchemahandler — keep it identical to the zod shape.Add a
caseto theCallToolRequestSchemaswitch that parses with the zod schema and calls the implementation.Implement the operation in
DraftsDatabase(reads) orDraftsClient(writes) — never inline SQLite/URL logic inindex.ts.Add a spec under
src/__tests__/(read tools run against a throwaway SQLite DB).Add a row to the Tools table above.
Troubleshooting
"Failed to query Drafts database"
Ensure the Drafts app is installed.
Check the database path:
~/Library/Group Containers/GTFQ98J4YG.com.agiletortoise.Drafts/DraftStore.sqlite.Verify you have read permission for the Group Container.
"Request timed out" (write operations)
Make sure the Drafts app is running.
Confirm Drafts can receive URL schemes.
macOS "cannot be opened because the developer cannot be verified" (binary)
xattr -d com.apple.quarantine /path/to/drafts-mcp-darwin-arm64, or right-click → Open the first time.
"Connection failed" in the client
Restart the AI client.
Double-check the command/path in your MCP config.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Create, read, search, and organize your Drafto notes and notebooks.
Lets Claude, ChatGPT, and Muse read and update your beckett tasks, notes, calendar, and lists.
Run your Asks AI support agent, knowledge, inbox, tickets and customers from your AI assistant.
Search, read, and write your Apple Notes from ChatGPT/Claude via a local Mac agent + MCP relay.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI agents to interact with macOS applications (Finder, Mail, Contacts, Reminders, Notes, Calendar, TextEdit) using AppleScript. Allows AI assistants to perform tasks like searching contacts, managing files, checking email, and creating reminders through natural language.241MIT

drafts-mcp-serverofficial
AlicenseNot gradedqualityCmaintenanceEnables AI assistants to manage drafts, tags, workspaces, and actions in the Drafts app on macOS.479 npm50MIT- AlicenseNot gradedqualityCmaintenanceEnables AI to control Apple Mac apps like Messages, Notes, Contacts, Mail, Reminders, Calendar, and Maps through natural language commands.MIT

NotePlan MCP Serverofficial
AlicenseNot gradedqualityCmaintenanceEnables AI assistants to manage NotePlan notes, tasks, calendar events, reminders, and plugins through natural language.878 npm20MIT