Drafts MCP Server for Claude/AI Integration

I have published a Model Context Protocol (MCP) Server implementation that wraps Drafts’ AppleScript integration for use in AI clients that support extension via MCP. This includes and has been tested with Claude Desktop and Claude Code from Anthropic.

This is a local server running on your Mac that communicates directly with the Drafts app on your Mac and returns data to the client application. It provides tools for the AI to query and update your draft library.

What can it do?

Once integrated into a tool like Claude Desktop, you will be able to use prompts that inquire about or update drafts. You can ask Claude for ideas of what you can do. Some ideas for prompts to try are things like:

  • Assign the tag “test” to the current draft
  • How many drafts are in my inbox?
  • Run the action “Copy” on the current draft
  • List drafts in the inbox of my “Work” workspace
  • Create a draft with the content “Hello World”
  • Summarize the drafts I’ve created in the last week

These can, of course, be combined with other functionality of the AI tool, so consider options like asking it to write out files from content in your drafts, or creating a summary draft of information you pull from other research or apps.

Quick Install for Claude Desktop

The Drafts MCP is available in the Claude extensions directory. In the Claude Desktop app on your Mac, go to Settings > Extensions and “Browse Extensions”, then search for “drafts”, and install the connector.

Local Installation

For more details on configuration options and use, see the NPM Package Page

For the quick and dirty version to integrate with Claude Desktop on Mac:

  • Update Drafts. For compatibility, you should be running v50.0.3 from the App Store.
  • Download drafts-mcp-server.mcpb from the repository.
  • Open Claude Desktop.
  • Navigate to Settings > Extensions
  • Drag and drop the drafts-mcp-server.mcpb file into Claude and follow the prompts to complete installation.

For more options, such as installing from npm directly, running locally, or integrating with Claude Code, see the repository README

Once this is baked in and tested a little more, I will submit it to the Claude extension directory for easier installation and automatic updates, so stay tuned for that option when it becomes available.

FAQ

Can I run this on iOS?

No. This is a Mac-only tool

Can I use this with [insert favorite AI client app]?

:man_shrugging: Maybe? If it supports MCP and runs on a Mac, then likely yes. I haven’t explored connecting it to other AI clients yet, but I would love to hear about it if you do.

Does this work with Claude Cowork/Code?

Yes. If you install the MCP in the Claude Desktop app, you can also use it with Cowork and Code. Note that these do not always immediately recognize installed MCPs. If you have the MCP installed, and it is working in Claude Desktop, but Cowork/Code say they can’t work with Drafts, try replying with something like, “Yes, you can, you have a Drafts MCP installed” and they will generally think for a minute and come back with something along the lines of, “Huh, you’re right, I can work with Drafts.”

Do you have a command line interface?

Yes, this project also includes a command-line interface you can install locally on your Mac. See related article for details.

10 Likes

v1.0.5 has been pushed to npm fixing a date parsing issue for international locales.

1 Like

The Drafts MCP server is now available in the Claude Extension Directory for easier installation and updates. To install:

  • Open Claude Desktop on your Mac.
  • Go to Settings > Extensions
  • “Browse Extensions” and search for “Drafts”
  • Install the “Drafts” MCP.

3 Likes

I’m using an AI assistant tool that expects me to provide a link to a local MCP server in the format
```http://localhost:<port>/<servername>```
Is the drafts-mcp-server reachable in that way?

There’s a PR on the repo to add such support, but I haven’t had a chance to review it properly so set it aside. Might be useful to you.

Thank you!!!

This is HUGE! Just setup extension and Claude Desktop. Can’t wait to try it

Working great here with VS Code and Codex (CLI and Desktop app)

VS Code config:

"drafts": {
"command": "drafts-mcp-server",
"type": "stdio"
}

Codex config:

[mcp_servers.drafts]
command = "drafts-mcp-server"

v1.0.11 has been pushed to NPM. This version is considerably more efficient for queries, as it lazy loads the content of drafts only when needed.

I will be submitting this version to Anthropic to update in the Claude directory, you can install now using the MCPB download or local installation instructions in the readme

https://www.npmjs.com/package/@agiletortoise/drafts-mcp-server

2 Likes

What a great addition. Just started playing with the Drafts MCP server connected to Claude.ai and overall it works fine — but I ran into one issue worth mentioning.

Calling drafts_get_drafts with only a broad filter (e.g. folder: inbox or folder: archive) either times out after a couple of minutes or returns a “result too large”. My inbox has a lot of drafts, so it seems the tool tries to return everything at once with no limit or pagination.

Other functions work fine: drafts_get_current, drafts_update_draft, drafts_trash, and drafts_get_drafts with restrictive filters (tag, flagged, modifiedAfter, query).

What doesn’t work: drafts_get_drafts with folder: inbox only (timeout) or folder: archive only (result too large).

A limit parameter (e.g. “give me the 10 most recently modified”) would go a long way here. Right now there’s no way to replicate the basic “show me my inbox, newest first” view that you’d expect.

Workaround for now: always combine with a tag, query, or modifiedAfter filter to keep the result set small.

1 Like