iMessage MCP Server
Provides tools for reading, searching, and sending iMessages, including support for text messages, attachments, group chats, and conversation management through direct access to the local macOS iMessage database.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@iMessage MCP Servershow me my recent unread messages"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ฌ iMessage MCP Server
Access your iMessage conversations through the Model Context Protocol
โ ๏ธ Local-only server โ This MCP server reads directly from local macOS database files (~/Library/Messages/chat.db and ~/Library/Application Support/AddressBook/). It must run on the same Mac where your iMessages are loaded and Apple ID is configured. Remote or cloud deployment is not supported.
โจ Features
๐ฅ Read Messages
Get recent messages with smart filtering
View unread messages grouped by sender
Search across all conversations
Filter by date, service (iMessage/SMS), attachments
๐ฌ Conversations
View full chat history with any contact
See recent conversations at a glance
Support for group chats
Track read/unread status
๐ค Send Messages
Send text messages to any contact
Share images and files
Send multiple attachments at once
Works with phone numbers and emails
๐ Attachments
Browse messages with attachments
Get attachment metadata (size, type, path)
Filter for images only
View all attachments in a conversation
Related MCP server: iMessage MCP
๐ Quick Start
Prerequisites
macOS with iMessage configured
Node.js 18 or later
Full Disk Access permission (see below)
Installation
git clone https://github.com/sameelarif/imessage-mcp.git
cd imessage-mcp
pnpm install
pnpm buildGranting Full Disk Access
The MCP server needs permission to read your iMessage database.
Open System Settings โ Privacy & Security โ Full Disk Access
Click the + button
Add your terminal app (Terminal, Claude Desktop, Cursor, Warp, VS Code, Ghostyy, etc.)
Restart the application
๐ง Configuration
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"imessage": {
"command": "node",
"args": ["/absolute/path/to/imessage-mcp/dist/index.js"]
}
}
}Environment Variables
Variable | Description | Default |
| Logging verbosity ( |
|
| Enable SDK debug mode |
|
๐ ๏ธ Available Tools
Tool | Description |
| Get messages with filters (sender, date, service, attachments) |
| Get unread messages grouped by sender |
| Search messages by text content |
| Send a text message |
| Send an image |
| Send a file attachment |
Tool | Description |
| Get full chat history with a contact |
| Overview of recent chats |
| Get messages from a specific chat/group |
Tool | Description |
| Get messages with attachments |
| Get all attachments from a conversation |
| Send multiple files at once |
๐งช Test Client
An interactive CLI is included for testing with the Vercel AI SDK:
export OPENAI_API_KEY=sk-...
pnpm test-clientCommands: exit โข clear โข tools
๐ Project Structure
src/
โโโ index.ts # MCP server entry point
โโโ test-client.ts # Interactive test client
โโโ tools/
โ โโโ messages.ts # Message tools
โ โโโ conversations.ts # Conversation tools
โ โโโ attachments.ts # Attachment tools
โโโ utils/
โโโ logger.ts # Pretty CLI logging
โโโ sdk.ts # SDK initialization๐ Scripts
Script | Description |
| Compile TypeScript |
| Watch mode |
| Run the MCP server |
| Interactive test client |
| Remove build artifacts |
๐ Acknowledgements
Built with @photon-ai/imessage-kit for iMessage database access
Uses the Model Context Protocol by Anthropic
Test client powered by Vercel AI SDK
๐ License
Licensed under the MIT License.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables interaction with iMessage through a BlueBubbles server, allowing users to read, search, and send messages directly from MCP clients. It supports comprehensive chat management features including reactions, group chat moderation, message scheduling, and contact lookups.Last updated331MIT
- Alicense-qualityCmaintenanceRead-only MCP server for local macOS Messages database, enabling querying of chats, messages, attachments, and metadata.Last updated115MIT
- Alicense-qualityDmaintenanceEnables sending and reading iMessages and SMS messages through the macOS Messages app via MCP.Last updatedMIT
- Alicense-qualityDmaintenanceEnables reading and sending iMessages on macOS through MCP, with tools for managing chats, messages, and attachments via AI agents.Last updatedMIT
Related MCP Connectors
Let ChatGPT, Claude & Cursor use your Mac: email, calendar, iMessage, Teams, files. Local, free.
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Read, search, send, organize, draft and schedule email across your inboxes from any MCP client.
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sameelarif/imessage-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server