Skip to content
VS Code

iMessage History for VS Code

io.github.anipotts/imessage-mcp

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

client:VS Code transport:stdio runtime:npm

Install iMessage History in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "imessage-privacy",
      "description": "IMESSAGE_PRIVACY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "imessage-contacts",
      "description": "IMESSAGE_CONTACTS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "imessage-db",
      "description": "IMESSAGE_DB",
      "password": true
    },
    {
      "type": "promptString",
      "id": "imessage-cache",
      "description": "IMESSAGE_CACHE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "imessage-update-check",
      "description": "IMESSAGE_UPDATE_CHECK",
      "password": true
    }
  ],
  "servers": {
    "imessage-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "imessage-mcp"
      ],
      "env": {
        "IMESSAGE_PRIVACY": "${input:imessage-privacy}",
        "IMESSAGE_CONTACTS": "${input:imessage-contacts}",
        "IMESSAGE_DB": "${input:imessage-db}",
        "IMESSAGE_CACHE": "${input:imessage-cache}",
        "IMESSAGE_UPDATE_CHECK": "${input:imessage-update-check}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

iMessage History in other clients