Mac Messages MCP Server
Bridge your iMessage database with AI and automate workflows using the Mac Messages MCP Server for FlowHunt.

What does “Mac Messages” MCP Server do?
Mac Messages MCP Server is an MCP (Model Context Protocol) server designed to securely interface with your iMessage database on macOS. It enables AI assistants and LLMs to query, analyze, and interact with iMessage conversations, providing a bridge between conversational AI and your personal or organizational messaging history. The server offers functionalities such as robust phone number validation, attachment processing, contact management, group chat handling, and supports both sending and receiving messages. By leveraging these capabilities, developers can build advanced workflows, automate message-based tasks, or surface rich message data to enhance productivity tools and other AI-powered applications.
List of Prompts
No prompt templates are explicitly mentioned in the repository or documentation.
List of Resources
No explicit resources (as defined by MCP: server-exposed data/content for LLM context) are documented in the repository.
List of Tools
No explicit list of tools is documented in the repository or in a server.py
file. The repo mentions functionalities like querying iMessage conversations, phone number validation, attachment processing, contact management, group chat handling, and sending/receiving messages, which may be exposed as tools, but they are not specifically enumerated as MCP tools in the available documentation.
Use Cases of this MCP Server
- iMessage Database Querying
Enables AI assistants to search and analyze historical iMessage conversations, making it easier to find specific information, trends, or communication patterns. - Attachment and Media Processing
Facilitates the extraction and handling of message attachments (images, files) for downstream processing or summarization by AI models. - Contact and Group Chat Analysis
Allows for the organization, management, and querying of contacts and group chats, supporting richer context-aware assistant features. - Automated Messaging Workflows
Supports sending and receiving iMessages programmatically, enabling notification bots, reminders, or workflow automation via AI. - Phone Number Validation and Normalization
Ensures phone numbers are validated and normalized when interacting with contacts, improving accuracy and reducing errors in communication workflows.
How to set it up
Windsurf
- Ensure you have Python and Node.js installed on your system.
- Locate your Windsurf configuration file (typically
windsurf.config.json
). - Add the Mac Messages MCP Server using the following JSON snippet in the
mcpServers
section:{ "mac-messages-mcp": { "command": "mac-messages-mcp", "args": [] } }
- Save the configuration file and restart Windsurf.
- Verify the setup by ensuring the MCP server connects and is available in your Windsurf dashboard.
Claude
- Ensure Python and Node.js are installed.
- Open the Claude configuration interface.
- Add the Mac Messages MCP Server in the MCP servers section:
{ "mac-messages-mcp": { "command": "mac-messages-mcp", "args": [] } }
- Save and restart Claude.
- Confirm connectivity to the MCP server.
Cursor
- Install Python and Node.js if not already present.
- Open your Cursor application settings or configuration file.
- Insert the following under the MCP servers configuration:
{ "mac-messages-mcp": { "command": "mac-messages-mcp", "args": [] } }
- Save your changes and restart Cursor.
- Check that the server is available and running.
Cline
- Make sure Python and Node.js are installed.
- Access your Cline configuration file.
- Add the MCP server configuration:
{ "mac-messages-mcp": { "command": "mac-messages-mcp", "args": [] } }
- Save and restart Cline.
- Validate that the Mac Messages MCP Server is connected.
Securing API Keys
To secure sensitive keys or tokens, use environment variables. In your configuration, reference them like this:
{
"mac-messages-mcp": {
"command": "mac-messages-mcp",
"args": [],
"env": {
"IMESSAGE_DB_PATH": "/Users/youruser/Library/Messages/chat.db"
},
"inputs": {
"api_key": "${IMESSAGE_API_KEY}"
}
}
}
Replace IMESSAGE_DB_PATH
and IMESSAGE_API_KEY
with your actual environment variable names.
How to use this MCP inside flows
Using MCP in FlowHunt
To integrate MCP servers into your FlowHunt workflow, start by adding the MCP component to your flow and connecting it to your AI agent:

Click on the MCP component to open the configuration panel. In the system MCP configuration section, insert your MCP server details using this JSON format:
{
"mac-messages-mcp": {
"transport": "streamable_http",
"url": "https://yourmcpserver.example/pathtothemcp/url"
}
}
Once configured, the AI agent is now able to use this MCP as a tool with access to all its functions and capabilities. Remember to change "mac-messages-mcp"
to whatever the actual name of your MCP server is and replace the URL with your own MCP server URL.
Overview
Section | Availability | Details/Notes |
---|---|---|
Overview | ✅ | High-level summary present |
List of Prompts | ⛔ | No prompt templates documented |
List of Resources | ⛔ | No explicit MCP resources listed |
List of Tools | ⛔ | No explicit MCP tools; only described features |
Securing API Keys | ✅ | Example provided using environment variables |
Sampling Support (less important in evaluation) | ⛔ | Not mentioned in documentation |
Based on these tables, the Mac Messages MCP Server provides a valuable bridge for iMessage data, but lacks detailed documentation about MCP tools, resources, prompts, or agentic sampling/roots support. Usability is high for its main feature, but extensibility and standardization are less well documented.
MCP Score
Has a LICENSE | ✅ (MIT) |
---|---|
Has at least one tool | ⛔ |
Number of Forks | 13 |
Number of Stars | 115 |
Frequently asked questions
- What is the Mac Messages MCP Server?
The Mac Messages MCP Server is a bridge between your iMessage database on macOS and AI assistants or LLMs, enabling secure querying, message automation, attachment processing, and contact/group management for advanced workflow integration.
- What features does it offer?
It supports querying iMessage history, processing attachments, validating phone numbers, managing contacts and group chats, and automating sending/receiving of messages—all accessible by connected AI agents.
- How do I secure my iMessage data and API keys?
Always use environment variables for sensitive information. For example, set IMESSAGE_DB_PATH and API keys via your environment, and reference them in the MCP server configuration as recommended.
- Are there prompt templates or tools included?
No explicit prompt templates or MCP tools are documented, but core functionalities such as querying, sending messages, and contact management are supported via the server.
- What are typical use cases?
Use cases include searching and analyzing message history, extracting attachments, managing contacts and groups, automating notifications, and validating phone numbers for workflow automation.
Connect iMessage to FlowHunt with Mac Messages MCP
Unlock advanced AI workflows and conversation analysis by connecting your iMessage data to FlowHunt using the Mac Messages MCP Server.