Skip to content
Gemini CLI

iMessage History for Gemini CLI

io.github.anipotts/imessage-mcp

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

client:Gemini CLI transport:stdio runtime:npm

Install iMessage History in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json

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

{
  "mcpServers": {
    "imessage-mcp": {
      "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>"
      }
    }
  }
}

Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs

iMessage History in other clients