Skip to main content
MCP server CX Codex

iMessage History — Claude Code MCP server: setup

This MCP server searches and reads Apple Messages history on macOS. Use it when an agent needs conversation context without sending messages.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add --env IMESSAGE_PRIVACY=<IMESSAGE_PRIVACY> --env IMESSAGE_CONTACTS=<IMESSAGE_CONTACTS> --env IMESSAGE_DB=<IMESSAGE_DB> --env IMESSAGE_CACHE=<IMESSAGE_CACHE> --env IMESSAGE_UPDATE_CHECK=<IMESSAGE_UPDATE_CHECK> --transport stdio anipottsbuilds-imessage-history -- npx -y imessage-mcp
Open on GitHub

What iMessage History does

iMessage History gives an MCP client local access to Apple Messages history. It can look up messages by words, exact text, or phrases, read conversation details with reactions and replies, display sent photos, and follow new activity. The server is read-only, so it cannot send a drafted reply.

It runs on a Mac without an account or a build step. The npx setup needs macOS 14 or later and Node.js 24.16 or later; Node 24 LTS is advised for encrypted cache support. Full Disk Access is required for the host application, and the app must be restarted after permission changes. Node 25 lacks the SQLite checkpoint APIs used for persistent search state, so searches stay in memory and are rebuilt after a restart.

What it helps with

  • find a message by a word or phrase
  • read a full conversation before replying
  • summarize message activity for the week
  • identify contacts waiting for a reply
  • check a contact’s usual response time

Example prompts for the agent

  • Search my messages for the dinner reservation and summarize the relevant conversation.
  • Tell me who is waiting for my reply and what each person needs.
  • Review this week’s messages and report the busiest conversations and pending replies.

How to install iMessage History

Platform CLI

claude mcp add --env IMESSAGE_PRIVACY=<IMESSAGE_PRIVACY> --env IMESSAGE_CONTACTS=<IMESSAGE_CONTACTS> --env IMESSAGE_DB=<IMESSAGE_DB> --env IMESSAGE_CACHE=<IMESSAGE_CACHE> --env IMESSAGE_UPDATE_CHECK=<IMESSAGE_UPDATE_CHECK> --transport stdio anipottsbuilds-imessage-history -- npx -y imessage-mcp

Replace <…> with your own values

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about iMessage History

How do I install iMessage History in Claude Code?

Run claude mcp add imessage-mcp -- npx -y imessage-mcp.

What does iMessage History do?

It lets an MCP client search and read Apple Messages history on a Mac. Its access is read-only, so it cannot send messages.

What does iMessage History require?

Use macOS 14 or later, Node.js 24.16 or later for the npx setup, and Full Disk Access for the app running the server.

Similar MCP servers

All MCP servers for Agent setup: memory, context, orchestration →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor