Drafts MCP + Command Line Interface

I updated the Drafts MCP Server project to include a command-line interface that wraps the same functionality provided by the MCP.

Once installed and linked (see instructions in README, you will have a new drafts terminal command that can update, create, query drafts just like the MCP. Here’s the output of drafts help describing the supported commands:

Usage: drafts [options] [command]

CLI for interacting with the macOS Drafts app

Options:
  -V, --version               output the version number
  --json                      Output raw JSON instead of formatted tables
  -h, --help                  display help for command

Commands:
  workspace                   Workspace commands
  tag                         Tag commands
  list [options]              List drafts with optional filters
  get <uuid>                  Get a draft by UUID
  current                     Get the current draft open in Drafts
  create [options] <content>  Create a new draft
  update <uuid> <content>     Update a draft's content
  open <uuid>                 Open a draft in the Drafts editor
  archive <uuid>              Archive a draft
  inbox <uuid>                Move a draft to inbox
  trash <uuid>                Move a draft to trash
  flag [options] <uuid>       Flag or unflag a draft
  add-tags <uuid> <tags...>   Add tags to a draft
  search <query>              Search drafts by content
  action                      Action commands
  help [command]              display help for command

Feedback is welcome, this is not extensively tested, and may need some additional documentation, but should be useful for some. A couple of examples of commands:

// create a new draft
drafts create --tag work --flagged "Hello World"

// list tags
drafts tag list

// run action
drafts action run <draft-uuid> <name-of-action>
4 Likes