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

apple-tools-mcp

v1.0.0

Published

MCP server for semantic search across Apple Mail, Messages, and Calendar

Downloads

109

Readme

apple-tools-mcp

An MCP (Model Context Protocol) server that provides semantic search across Apple Mail, Messages, and Calendar on macOS. Use natural language to search your emails, iMessages, and calendar events directly from Claude.

Features

  • Semantic Search: Find emails, messages, and events using natural language queries
  • Vector Indexing: Uses LanceDB for fast similarity search with local embeddings
  • Privacy-First: All processing happens locally on your Mac - no data leaves your machine
  • Smart Deduplication: Handles IMAP duplicates, prioritizing INBOX over Junk/Trash
  • Date Intelligence: Understands queries like "last week", "yesterday", "March 2024"

Requirements

  • macOS (Ventura 13.0 or later recommended)
  • Node.js 18.0 or later
  • Claude Desktop app
  • Full Disk Access permission for the Node.js binary

Installation

1. Install the package

npm install -g apple-tools-mcp

2. Grant Full Disk Access

The MCP server needs access to read your Mail, Messages, and Calendar databases.

  1. Open System SettingsPrivacy & SecurityFull Disk Access
  2. Click the + button
  3. Navigate to your Node.js binary:
    • For Homebrew: /opt/homebrew/bin/node
    • For nvm: ~/.nvm/versions/node/v[VERSION]/bin/node
    • To find yours: which node
  4. Enable the toggle for Node.js

3. Configure Claude Desktop

Add to your Claude Desktop config file:

Location: ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "apple-tools": {
      "command": "npx",
      "args": ["-y", "apple-tools-mcp"]
    }
  }
}

4. Restart Claude Desktop

Quit and reopen Claude Desktop to load the MCP server.

Building the Index

On first use, the server will automatically build a vector index of your recent emails, messages, and calendar events. This may take a few minutes depending on the volume of data.

You can manually rebuild the index:

# Index last 30 days (default)
npx apple-tools-mcp build-index

# Index more history
APPLE_TOOLS_INDEX_DAYS_BACK=90 npx apple-tools-mcp build-index

The index is stored in ~/.apple-tools-mcp/vector-index/.

Available Tools

Once configured, Claude can use these tools:

| Tool | Description | |------|-------------| | search_emails | Search emails by content, sender, subject | | search_messages | Search iMessages and SMS | | search_calendar | Search calendar events | | search_all | Search across all sources | | get_email | Get full email by ID | | get_message | Get full message thread | | get_calendar_event | Get event details |

Example Queries

Ask Claude things like:

  • "Find emails from John about the quarterly report"
  • "What messages did I get from Mom last week?"
  • "When is my next dentist appointment?"
  • "Search for emails about the AWS bill from November"
  • "Find all calendar events with Zoom links"

Privacy & Security

  • Local Processing: All embeddings are generated locally using Xenova/Transformers
  • No Cloud Services: No data is sent to external servers
  • Read-Only: The server only reads data, never modifies your Mail/Messages/Calendar
  • Your Data: The vector index is stored locally in your home directory

Troubleshooting

"Authorization denied" errors

Ensure Node.js has Full Disk Access (see Installation step 2).

Empty search results

  1. Check that the index was built: ls ~/.apple-tools-mcp/vector-index/
  2. Rebuild the index if needed: npx apple-tools-mcp build-index

Server not appearing in Claude

  1. Verify your config file syntax is valid JSON
  2. Restart Claude Desktop completely (Cmd+Q, then reopen)
  3. Check Claude's MCP logs for errors

Development

# Clone the repo
git clone https://github.com/sfls1397/apple-tools-mcp.git
cd apple-tools-mcp

# Install dependencies
npm install

# Run tests
npm test

# Build index with debug output
npm run build-index

# Run audit to check index health
npm run audit

Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run the tests: npm test
  5. Submit a pull request

License

MIT License - see LICENSE for details.

Acknowledgments