npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@kamk95/imessage-mcp

v1.0.1

Published

MCP server for reading and sending iMessages on macOS

Readme

imessage-mcp

An MCP server that connects Claude Desktop to iMessage on macOS — read conversations, search messages, send texts, and access attachments.

Prerequisites

  • macOS
  • Node.js 18+
  • Claude Desktop
  • Full Disk Access granted to Claude Desktop (required to read ~/Library/Messages/chat.db)

Granting Full Disk Access

  1. Open System Settings → Privacy & Security → Full Disk Access
  2. Add Claude to the list and enable it
  3. Restart Claude Desktop

Installation

1. Add to Claude Desktop config

Open ~/Library/Application Support/Claude/claude_desktop_config.json and add:

{
  "mcpServers": {
    "imessage": {
      "command": "npx",
      "args": ["-y", "@kamk95/imessage-mcp"]
    }
  }
}

2. Restart Claude Desktop


Manual install (alternative)

If you prefer to run from source:

git clone https://github.com/kamrenkennedy/imessage-mcp.git
cd imessage-mcp
npm install

Then use this config instead:

{
  "mcpServers": {
    "imessage": {
      "command": "node",
      "args": ["/absolute/path/to/imessage-mcp/index.js"]
    }
  }
}

Tools

get_conversations

List recent iMessage conversations.

| Parameter | Type | Description | |---|---|---| | limit | number | Max conversations to return (default: 20) |

get_messages

Get messages from a specific conversation.

| Parameter | Type | Description | |---|---|---| | chat_id | string | Required. Chat ID from get_conversations | | limit | number | Max messages to return (default: 50) |

search_messages

Search across all messages by text.

| Parameter | Type | Description | |---|---|---| | query | string | Required. Text to search for | | limit | number | Max results to return (default: 20) |

get_chat_participants

Get the participants in a conversation.

| Parameter | Type | Description | |---|---|---| | chat_id | string | Required. Chat ID from get_conversations |

send_message

Send an iMessage or SMS.

| Parameter | Type | Description | |---|---|---| | recipient | string | Required. Phone number, email, or contact name | | message | string | Required. Text to send |

get_attachments

List attachments from a conversation.

| Parameter | Type | Description | |---|---|---| | chat_id | string | Required. Chat ID from get_conversations | | limit | number | Max attachments to return (default: 20) |

save_attachment

Save an attachment from a message to disk.

| Parameter | Type | Description | |---|---|---| | attachment_id | string | Required. Attachment ID from get_attachments | | destination | string | Required. Full path where the file should be saved |


Notes

  • Messages are read directly from ~/Library/Messages/chat.db using SQLite — no AppleScript required for reads
  • Sending uses AppleScript via osascript
  • Contact names are resolved from AddressBook automatically
  • US phone numbers are normalized (leading 1 stripped from 11-digit numbers)