Skip to content
Grok

iMessage History for Grok

io.github.anipotts/imessage-mcp

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

client:Grok transport:stdio runtime:npm

Install iMessage History in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "imessage-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "imessage-mcp"
      ],
      "env": {
        "IMESSAGE_PRIVACY": "<IMESSAGE_PRIVACY>",
        "IMESSAGE_CONTACTS": "<IMESSAGE_CONTACTS>",
        "IMESSAGE_DB": "<IMESSAGE_DB>",
        "IMESSAGE_CACHE": "<IMESSAGE_CACHE>",
        "IMESSAGE_UPDATE_CHECK": "<IMESSAGE_UPDATE_CHECK>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

iMessage History in other clients