imessage-mcp
Connects Claude Desktop to iMessage on macOS, enabling reading conversations, searching messages, sending texts, and managing attachments.
README
imessage-mcp
An MCP server that connects Claude Desktop to iMessage on macOS — read conversations, search messages, send texts, and access attachments.
Prerequisites
- macOS
- Node.js 18+
- Claude Desktop
- Full Disk Access granted to Claude Desktop (required to read
~/Library/Messages/chat.db)
Granting Full Disk Access
- Open System Settings → Privacy & Security → Full Disk Access
- Add Claude to the list and enable it
- Restart Claude Desktop
Installation
1. Add to Claude Desktop config
Open ~/Library/Application Support/Claude/claude_desktop_config.json and add:
{
"mcpServers": {
"imessage": {
"command": "npx",
"args": ["-y", "@kamk95/imessage-mcp"]
}
}
}
2. Restart Claude Desktop
Manual install (alternative)
If you prefer to run from source:
git clone https://github.com/kamrenkennedy/imessage-mcp.git
cd imessage-mcp
npm install
Then use this config instead:
{
"mcpServers": {
"imessage": {
"command": "node",
"args": ["/absolute/path/to/imessage-mcp/index.js"]
}
}
}
Tools
get_conversations
List recent iMessage conversations.
| Parameter | Type | Description |
|---|---|---|
limit |
number | Max conversations to return (default: 20) |
get_messages
Get messages from a specific conversation.
| Parameter | Type | Description |
|---|---|---|
chat_id |
string | Required. Chat ID from get_conversations |
limit |
number | Max messages to return (default: 50) |
search_messages
Search across all messages by text.
| Parameter | Type | Description |
|---|---|---|
query |
string | Required. Text to search for |
limit |
number | Max results to return (default: 20) |
get_chat_participants
Get the participants in a conversation.
| Parameter | Type | Description |
|---|---|---|
chat_id |
string | Required. Chat ID from get_conversations |
send_message
Send an iMessage or SMS.
| Parameter | Type | Description |
|---|---|---|
recipient |
string | Required. Phone number, email, or contact name |
message |
string | Required. Text to send |
get_attachments
List attachments from a conversation.
| Parameter | Type | Description |
|---|---|---|
chat_id |
string | Required. Chat ID from get_conversations |
limit |
number | Max attachments to return (default: 20) |
save_attachment
Save an attachment from a message to disk.
| Parameter | Type | Description |
|---|---|---|
attachment_id |
string | Required. Attachment ID from get_attachments |
destination |
string | Required. Full path where the file should be saved |
Notes
- Messages are read directly from
~/Library/Messages/chat.dbusing SQLite — no AppleScript required for reads - Sending uses AppleScript via
osascript - Contact names are resolved from AddressBook automatically
- US phone numbers are normalized (leading 1 stripped from 11-digit numbers)
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.