Claude Imessage Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Claude Imessage Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
🦞 一个用于 Claude Code 的 MCP (Model Context Protocol) 服务器,让 Claude 可以通过 iMessage 发送和接收消息。
brew install steipete/tap/imsggit clone https://github.com/yourusername/claude-imessage-mcp.git
cd claude-imessage-mcp
npm install前往 系统设置 → 隐私与安全:
npm test编辑 Claude Code 配置文件(~/.claude/config.json):
{
"mcpServers": {
"imessage": {
"command": "node",
"args": ["/绝对路径/claude-imessage-mcp/index.js"]
}
}
}或者使用 npx:
{
"mcpServers": {
"imessage": {
"command": "npx",
"args": ["-y", "claude-imessage-mcp"]
}
}
}claude restart在 Claude Code 中,你可以使用以下命令与 iMessage 交互:
给 +86xxxxxxxxxx 发送一条消息:"你好!"Claude 会调用 send_imessage 工具发送消息。
显示我最近的 iMessage 聊天获取 chat_id 123 的历史消息开始监听新的 iMessage 消息这会启动实时监听模式,新消息会在 Claude Code 的输出中显示。
停止监听 iMessagesend_imessage发送 iMessage 消息。
参数:
to (必需): 收件人电话号码或邮箱text (必需): 消息内容file (可选): 附件文件路径示例:
{
"to": "+86xxxxxxxxxx",
"text": "Hello from Claude!",
"file": "/path/to/image.jpg"
}list_imessage_chats列出最近的聊天。
参数:
limit (可选): 返回数量,默认 20get_imessage_history获取聊天历史。
参数:
chat_id (必需): 聊天 IDlimit (可选): 消息数量,默认 50attachments (可选): 是否包含附件信息,默认 falsewatch_imessage开始监听新消息。
参数:
chat_id (可选): 仅监听特定聊天stop_watch_imessage停止监听消息。
本项目基于 OpenClaw 的 iMessage 集成方案,使用以下技术架构:
iMessage (Messages.app)
↓
chat.db (SQLite 数据库)
↓
imsg CLI (Swift 工具)
↓
MCP Server (本项目)
↓
Claude Codechat.db 接收消息npm run dev使用 nodemon 自动重启服务器。
MCP Server 的日志输出到 stderr,可以在 Claude Code 的日志中查看:
tail -f ~/.claude/logs/mcp-imessage.log欢迎提交 Issue 和 Pull Request!
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)A: 安装 imsg: brew install steipete/tap/imsg
A: 检查以下几点:
A: 终端需要完全磁盘访问权限才能读取 ~/Library/Messages/chat.db
A:
imsg watch 命令可以正常运行A:
MIT License - 详见 LICENSE 文件
Made with 🦞 for Claude Code
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.