iMessage History
local MCP serveriMessage 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
| Server | Stars | Type | API key | Runtime |
|---|---|---|---|---|
| iMessage History | 25 | Local | Yes | npm |
| brave | 1,477 | Hosted | Yes | None |
| SoloMD | 1,130 | Local | No | mcpb |
| alive-analysis | 41 | Local | Yes | npm |
| messages | 20 | Local | No | npm |
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
- braveai.smithery/brave1,477
- SoloMDio.github.zhitongblog/solomd1,130
- alive-analysisio.github.with-geun/alive-analysis41
- messagesio.github.cardmagic/messages20
- Repomixio.github.yamadashy/repomix29K
- screenpipeio.github.screenpipe/screenpipe-mcp22K
- Firecrawl MCP Serverio.github.firecrawl/firecrawl-mcp-server7,526
- Claude Code Ultimate Guideio.github.FlorianBruniaux/claude-code-guide6,048