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

@purplesquirrel/apple-automation-mcp

v0.1.0

Published

MCP server for Apple Mail Rules, Shortcuts, Keychain, and Books — via AppleScript and CLI tools

Readme

Apple Automation MCP

MCP server for Apple Mail Rules, Shortcuts, Keychain, and Books -- via AppleScript and CLI tools.

TypeScript macOS License

Install

npm install && npm run build

Usage

npm start

Tools (12)

Mail Rules (5)

| Tool | Description | |------|-------------| | mail_rules_list | List all Mail.app rules (name, conditions, actions, enabled status) | | mail_rule_create | Create a new mail rule (from/subject/content -> move/delete/flag/forward) | | mail_rule_toggle | Enable or disable a rule by name | | mail_rule_delete | Delete a rule by name | | mail_accounts_list | List all configured mail accounts with unread counts |

Shortcuts (3)

| Tool | Description | |------|-------------| | shortcuts_list_all | List all Shortcuts installed on this Mac | | shortcuts_run_with_input | Run a Shortcut with text input and capture output | | shortcuts_create_simple | Create a simple Shortcut from a template (open URL, send message, etc.) |

Keychain (2)

| Tool | Description | |------|-------------| | keychain_search | Search keychain for a service/account name (account info only, NO passwords) | | keychain_list_services | List all service names in the keychain (NO passwords) |

Books (2)

| Tool | Description | |------|-------------| | books_list | List all books in Apple Books (title, author, read status) | | books_reading_list | Get current reading list / Want to Read books |

Security

Keychain tools are read-only and never return actual passwords. They only return service names, account names, and existence confirmation.

MCP Registration

Add to ~/.mcp.json:

{
  "apple-automation": {
    "command": "node",
    "args": ["/Volumes/Virtual Server/projects/apple-automation-mcp/dist/index.js"]
  }
}

Requirements

  • macOS (AppleScript, shortcuts CLI, security CLI)
  • Node.js 18+
  • Mail.app must be configured for mail rule tools
  • Apple Books must have been used for books tools
  • Accessibility permissions may be needed for Shortcuts creation