What is A Python bridge for interacting with the macOS Messages app using MCP.?
Mac Messages MCP is a Python bridge that allows users to interact with the macOS Messages app using the Multiple Context Protocol (MCP). It supports universal message sending, smart fallback to SMS, message reading, contact filtering, fuzzy search, and iMessage detection, making it suitable for both iPhone/Mac and Android users.
Documentation
Mac Messages MCP
A Python bridge for interacting with the macOS Messages app using MCP (Multiple Context Protocol).
Quick Install# For Cursor Users
Click the button above to automatically add Mac Messages MCP to Cursor
Mac Messages MCP automatically handles message delivery across different platforms:
iMessage Users (iPhone, iPad, Mac): Messages sent via iMessage
Android Users: Messages automatically fall back to SMS/RCS
Mixed Groups: Optimal delivery method chosen per recipient
send_message("+1234567890", "Hey! This goes via iMessage")
# Send to Android user - automatically uses SMS
send_message("+1987654321", "Hey! This goes via SMS")
# Check delivery method before sending
check_imessage_availability("+1234567890") # Returns availability status
As a Module
from mac_messages_mcp import get_recent_messages, send_message
# Get recent messages
messages = get_recent_messages(hours=48)
print(messages)
# Send a message (automatically chooses iMessage or SMS)
result = send_message(recipient="+1234567890", message="Hello from Mac Messages MCP!")
print(result) # Shows whether sent via iMessage or SMS
As a Command-Line Tool
mac-messages-mcp
Development# Versioning
This project uses semantic versioning. See VERSIONING.md for details on how the versioning system works and how to release new versions.
This application accesses the Messages database directly, which contains personal communications. Please use it responsibly and ensure you have appropriate permissions.
License
MIT
Contributing
Contributions are welcome! Please feel free to submit a Pull Request. \n\n## Star History