Imessage-MCP
Read-only access to imessage
README
Read-only iMessage MCP server
Gives an assistant read-only access to your macOS Messages so it can help you
read, search, and analyze texts. It cannot send, edit, or delete anything —
every database connection is opened with SQLite mode=ro. You send replies yourself.
What it reads
~/Library/Messages/chat.db— your iMessage/SMS history (read-only)~/Library/Application Support/AddressBook/.../AddressBook-v22.abcddb— to turn phone numbers/emails into contact names (read-only, best effort)
It never writes to, copies, or transmits these anywhere — it just answers queries from whichever Claude client is connected.
Tools
| Tool | What it does |
|---|---|
list_conversations |
Most recently active threads + last-message preview |
list_unreplied |
Threads where the other person texted last (awaiting your reply) |
get_conversation |
Recent message history with a person or group (fuzzy name/phone/email match) |
search_messages |
Full-text search across messages, optionally scoped to one contact |
get_recent_messages |
Inbox-style view of recent messages across all threads (optional hours window) |
Requirements
uvinstalled (handles the Python deps automatically).- Full Disk Access for whatever app runs the server, because
chat.dbis protected:- Claude Code (CLI): the terminal app you launch
claudefrom (Terminal, iTerm, etc.). - Claude Desktop: the Claude.app itself. Grant it in System Settings → Privacy & Security → Full Disk Access, then restart the app.
- Claude Code (CLI): the terminal app you launch
How it's wired up
- Claude Code: registered at user scope (
~/.claude.json). Remove withclaude mcp remove imessage-readonly. - Claude Desktop: added under
mcpServersin~/Library/Application Support/Claude/claude_desktop_config.json(a timestamped.bakof the original sits next to it). Restart the app to load it.
Notes
- On recent macOS the message text is stored in a binary
attributedBodyblob rather than thetextcolumn;server.pydecodes it (handles emoji/accents). - Timestamps are converted from Apple absolute time (nanoseconds since 2001-01-01).
- Override the database path with the
IMESSAGE_DBenvironment variable if needed.
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.