Keyflow

Search Keyflow

Find a shortcut, workflow, MCP server or skill

iMessage History

local MCP server

iMessage History is a local MCP server: Search and read your Apple Messages history from any MCP client. Read-only, local. Install it from npm as imessage-mcp.

Installation

Terminal

claude mcp add io-github-anipotts-imessage-mcp -e IMESSAGE_PRIVACY=... -e IMESSAGE_CONTACTS=... -e IMESSAGE_DB=... -e IMESSAGE_CACHE=... -e IMESSAGE_UPDATE_CHECK=... -- npx -y imessage-mcp

Run in your project folder. Add --scope user to use it everywhere.

Claude Desktop, Cursor & other clients

Add to claude_desktop_config.json or .cursor/mcp.json.

{
  "mcpServers": {
    "io-github-anipotts-imessage-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "imessage-mcp"
      ],
      "env": {
        "IMESSAGE_PRIVACY": "...",
        "IMESSAGE_CONTACTS": "...",
        "IMESSAGE_DB": "...",
        "IMESSAGE_CACHE": "...",
        "IMESSAGE_UPDATE_CHECK": "..."
      }
    }
  }
}

Fill in the environment variables with your own credentials.

What you need

  • Runtime: Node.js 18+ (runs with npx).
  • MCP client: Claude Code, Codex, Antigravity, Claude Desktop, Cursor or any other client that speaks MCP over stdio.
  • Environment variables: IMESSAGE_PRIVACY, IMESSAGE_CONTACTS, IMESSAGE_DB, IMESSAGE_CACHE, IMESSAGE_UPDATE_CHECK

Summary

Search and read your Apple Messages history from any MCP client. Read-only, local.

iMessage History vs similar servers

ServerStarsTypeAPI keyRuntime
iMessage History25LocalYesnpm
brave1,477HostedYesNone
SoloMD1,130LocalNomcpb
alive-analysis41LocalYesnpm
messages20LocalNonpm

Questions

It reads 5 environment variables: IMESSAGE_PRIVACY, IMESSAGE_CONTACTS, IMESSAGE_DB, IMESSAGE_CACHE, IMESSAGE_UPDATE_CHECK. Set them in your MCP config before starting the server.

Node.js 18+ (runs with npx), plus an MCP client such as Claude Code, Codex, Claude Desktop or Cursor.

iMessage History is a local MCP server distributed as the npm package imessage-mcp.

Run: claude mcp add io-github-anipotts-imessage-mcp -e IMESSAGE_PRIVACY=... -e IMESSAGE_CONTACTS=... -e IMESSAGE_DB=... -e IMESSAGE_CACHE=... -e IMESSAGE_UPDATE_CHECK=... -- npx -y imessage-mcp

Run: codex mcp add io-github-anipotts-imessage-mcp --env IMESSAGE_PRIVACY=... --env IMESSAGE_CONTACTS=... --env IMESSAGE_DB=... --env IMESSAGE_CACHE=... --env IMESSAGE_UPDATE_CHECK=... -- npx -y imessage-mcp

Similar MCP servers

NameStars
  1. braveai.smithery/brave1,477
  2. SoloMDio.github.zhitongblog/solomd1,130
  3. alive-analysisio.github.with-geun/alive-analysis41
  4. messagesio.github.cardmagic/messages20
  5. Repomixio.github.yamadashy/repomix29K
  6. screenpipeio.github.screenpipe/screenpipe-mcp22K
  7. Firecrawl MCP Serverio.github.firecrawl/firecrawl-mcp-server7,526
  8. Claude Code Ultimate Guideio.github.FlorianBruniaux/claude-code-guide6,048