Enables AI interaction with macOS native applications through AppleScript for tasks like managing contacts, notes, email...
Created byApr 23, 2025
Python Apple MCP (Model Context Protocol)
A Python implementation of the server that handles interactions with macOS applications such as Contacts, Notes, Mail, Messages, Reminders, Calendar, and Maps using FastMCP.
Features
Interact with macOS native applications through AppleScript
Asynchronous operations for better performance
Comprehensive error handling
Type-safe interfaces using Pydantic models
Extensive test coverage
Modular design for easy extension
Supported Applications
Contacts
Notes
Mail
Messages
Reminders
Calendar
Maps
Installation
Clone the repository:
Create a virtual environment:
Install dependencies:
Install test dependencies (optional):
Usage
Basic Example
Using Individual Modules
Testing
Run the test suite:
Run tests with coverage:
Run specific test file:
API Documentation
Contacts Module
`find_contact(name: str) -> List[Contact]`: Search for contacts by name
`get_all_contacts() -> List[Contact]`: Get all contacts
`create_contact(name: str, phones: List[str]) -> Contact`: Create a new contact
Notes Module
`find_note(query: str) -> List[Note]`: Search for notes
`create_note(title: str, body: str, folder_name: str) -> Note`: Create a new note