Labsco
54yyyu logo

PyApple MCP Tools

โ˜… 13

from 54yyyu

Python tools for MCP that integrate with native Apple applications like Messages, Notes, Mail, and more on macOS.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

PyApple MCP Tools

PyPI Downloads

A Python implementation of Apple-native tools for the Model Context Protocol (MCP), providing seamless integration with macOS applications.

Features

  • Messages: Send and read messages using the Apple Messages app
  • Notes: List, search, create, and delete notes in Apple Notes app
  • Contacts: Search contacts from Apple Contacts
  • Emails: Send emails, search messages, and manage mail with Apple Mail
  • Reminders: List, search, and create reminders in Apple Reminders app
  • Calendar: Search events, create calendar entries, and manage your schedule
  • Web Search: Search the web using DuckDuckGo
  • Maps: Search locations, get directions, and manage guides with Apple Maps

Development

Local Setup

  1. Clone the repository:

    git clone https://github.com/pyapple-mcp/pyapple-mcp.git
    cd pyapple-mcp
  2. Install dependencies:

    pip install -e ".[dev]"
  3. Run the development server:

    python -m pyapple_mcp.server

Testing with MCP Inspector

# Test the server
mcp dev pyapple_mcp/server.py

# Test with dependencies
mcp dev pyapple_mcp/server.py --with httpx --with beautifulsoup4

Architecture

pyapple-mcp/
โ”œโ”€โ”€ pyapple_mcp/
โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”œโ”€โ”€ server.py          # Main MCP server
โ”‚   โ”œโ”€โ”€ setup_helper.py    # Setup and configuration helper
โ”‚   โ””โ”€โ”€ utils/
โ”‚       โ”œโ”€โ”€ __init__.py
โ”‚       โ”œโ”€โ”€ applescript.py # AppleScript execution
โ”‚       โ”œโ”€โ”€ calendar.py    # Calendar integration
โ”‚       โ”œโ”€โ”€ contacts.py    # Contacts integration
โ”‚       โ”œโ”€โ”€ mail.py        # Mail integration
โ”‚       โ”œโ”€โ”€ maps.py        # Maps integration
โ”‚       โ”œโ”€โ”€ messages.py    # Messages integration
โ”‚       โ”œโ”€โ”€ notes.py       # Notes integration
โ”‚       โ”œโ”€โ”€ reminders.py   # Reminders integration
โ”‚       โ””โ”€โ”€ websearch.py   # Web search functionality
โ”œโ”€โ”€ tests/
โ”œโ”€โ”€ requirements.txt
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ LICENSE
โ””โ”€โ”€ pyproject.toml