imessage-mcp
imessage-mcp
Claude CodeおよびClaude DesktopにiMessageデータを公開する読み取り専用のMCPサーバーです。連絡先名の自動解決機能付き。
セットアップ
1. インストール
cd ~/workspace/imessage-mcp
python3.12 -m venv .venv
source .venv/bin/activate
pip install -e .2. フルディスクアクセスの許可
このサーバーは ~/Library/Messages/chat.db および連絡先データベースを読み取る必要があります。サーバーを実行するアプリにフルディスクアクセスを許可してください:
システム設定 → プライバシーとセキュリティ → フルディスクアクセス を開く
Claude Code の場合:ターミナルアプリ(例:Terminal, iTerm2, Ghostty)を追加する
Claude Desktop の場合:Claudeアプリを追加する
3. Claude Codeの設定
~/.claude/settings.json に以下を追加します:
{
"mcpServers": {
"imessage": {
"command": "/Users/jaredmoskowitz/workspace/imessage-mcp/.venv/bin/python",
"args": ["-m", "imessage_mcp"]
}
}
}4. Claude Desktopの設定
~/Library/Application Support/Claude/claude_desktop_config.json に以下を追加します:
{
"mcpServers": {
"imessage": {
"command": "/Users/jaredmoskowitz/workspace/imessage-mcp/.venv/bin/python",
"args": ["-m", "imessage_mcp"]
}
}
}Related MCP server: imessage-rich-search
ツール
list_chats
iMessageのチャットを最近のアクティビティ順に一覧表示します。
limit(オプション、デフォルト50):取得するチャットの最大数
get_messages
特定のチャットからメッセージを取得します。
chat_id(必須):list_chatsから取得したチャット識別子limit(オプション、デフォルト50):メッセージの最大数since(オプション):ISO日付文字列 — この日付以降のメッセージのみを取得
search_messages
すべてのチャットからキーワードを含むメッセージを検索します。
query(必須):検索テキストlimit(オプション、デフォルト50):結果の最大数
使用例
"グループチャットを一覧表示して" "Business Ideasチャットの最新メッセージを20件取得して" "メッセージから 'startup idea' を検索して"
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceA local MCP server that enables reading iMessage conversations and sending new messages through Claude Desktop. It provides secure, read-only access to your Mac's iMessage database and AppleScript-based message sending capabilities.6MIT
- AlicenseAqualityCmaintenanceEnables full-text search of macOS iMessages including link preview metadata. Works as an MCP server for Claude Desktop to search your messages locally.1MIT
- AlicenseNot gradedqualityDmaintenanceRead-only MCP server for your iMessage DB. No hosted service.MIT
- AlicenseNot gradedqualityCmaintenanceRead-only MCP server for local macOS Messages database, enabling querying of chats, messages, attachments, and metadata.207MIT
Related MCP Connectors
MCP connector for iMessage & Contacts via a local Mac agent + Vercel relay
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Search, read, and write your Apple Notes from ChatGPT/Claude via a local Mac agent + MCP relay.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jaredmoskowitz/imessage-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server