npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@zyx1121/apple-mail-mcp

v0.4.2

Published

MCP server for Apple Mail — read, search, and manage emails via Claude Code

Readme

@zyx1121/apple-mail-mcp

MCP server for Apple Mail — read, search, compose, and manage emails via Claude Code.

Install

claude mcp add apple-mail -- npx @zyx1121/apple-mail-mcp

Prerequisites

  • macOS with Apple Mail configured
  • Node.js >= 18
  • First run will prompt for Automation permission (System Settings > Privacy & Security > Automation)

Tools

Accounts & Mailboxes

| Tool | Description | |------|-------------| | mail_get_accounts | List all accounts and their mailboxes | | mail_list_mailboxes | List mailboxes for an account with unread counts | | mail_count_unread | Count unread messages per account/mailbox | | mail_create_mailbox | Create a new mailbox (folder) in an account |

Messages

| Tool | Description | |------|-------------| | mail_list_messages | List messages with filters (account, mailbox, date range, unread) | | mail_read_message | Read full content of a message by ID | | mail_search | Search by subject, sender, or both | | mail_send | Compose and send an email | | mail_mark_read | Mark a message as read | | mail_mark_unread | Mark a message as unread | | mail_flag | Flag or unflag a message | | mail_move | Move a message to another mailbox (same account) | | mail_delete | Delete a message (moves to Trash) |

Attachments

| Tool | Description | |------|-------------| | mail_list_attachments | List attachments of a message (name, MIME type, size) | | mail_save_attachment | Save an attachment to a local path |

Drafts

| Tool | Description | |------|-------------| | mail_create_draft | Create a new draft email | | mail_list_drafts | List all drafts in an account | | mail_delete_draft | Delete a draft by ID |

Rules

| Tool | Description | |------|-------------| | mail_list_rules | List all mail rules with conditions and status | | mail_create_rule | Create a mail rule (writes directly to plist) | | mail_delete_rule | Delete a mail rule by name or ID |

Examples

"List my mail accounts"          → mail_get_accounts
"Show unread count"              → mail_count_unread
"Today's emails"                 → mail_list_messages { date_from: "2026-03-30" }
"Search for GitHub emails"       → mail_search { query: "GitHub" }
"Read message 12345"             → mail_read_message { message_id: 12345 }
"List attachments"               → mail_list_attachments { message_id: 12345, account: "iCloud", mailbox: "INBOX" }
"Save attachment"                → mail_save_attachment { message_id: 12345, account: "iCloud", mailbox: "INBOX", attachment_name: "file.pdf", save_path: "/tmp" }
"Create a draft"                 → mail_create_draft { account: "iCloud", subject: "Hello", body: "Hi there" }
"List my drafts"                 → mail_list_drafts { account: "iCloud" }

Known issues

  • MIME type: MIME type property crashes on some macOS versions — the tool returns "unknown" as fallback
  • Apple Mail rules API is broken: AppleScript's set move message of rule does not properly set ShouldTransferMessage in the plist. mail_create_rule writes directly to plist files as a workaround
  • macOS only (uses AppleScript via osascript)
  • Mail.app must be running
  • Subject search is case-sensitive (AppleScript limitation)

License

MIT