MI

marissamarym/imessage-mcp-server

Analytics & monitoring

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

29 stars 9 forks 品質 51 トレンド 11

AppleScript を使用して、iMessage を送信し、連絡先を管理する MCP サーバー.

概要

このソフトウェアは、保証や保証なしに、as-isを提供します。 AppleScript を使用して、iMessage を送信し、連絡先を管理する MCP サーバー。 このサーバーは、AppleScript を使用して、モデルコンテキストプロトコル(MCP)を介して、macOS メッセージと連絡先アプリとインターフェイスします。 TypeScript サーバで AppleScript コマンドをラップして、次のようにします。 - 連絡先の表示と検索 - iMessageを連絡先または電話番号に送信 - メッセージが送信されたときに確認を得る - 連絡先へのアクセス: contacts://all - 名前、電話番号、メールアドレスを含む連絡先の詳細を表示 - すべてのデータは、あなたのマシンにローカルに滞在 - search contacts - 名前、電話、または電子メールで連絡先を見つける - 検索クエリを取り、一致する連絡先を返します - 名前、電話番号、およびメールアドレスの検索 - send message - iMessageの送信 - 受信者(電話/メール)とメッセージのコンテンツの取得 - ローカルメッセージアプリを介して送信 - 確認またはエラーの詳細を返す

概要(AI 翻訳)

⚠️ 免責事項 - お使いのOWN RISKで使用 ⚠️

このソフトウェアは、保証や保証なしに、as-isを提供します。

AppleScript を使用して、iMessage を送信し、連絡先を管理する MCP サーバー。

このサーバーは、AppleScript を使用して、モデルコンテキストプロトコル(MCP)を介して、macOS メッセージと連絡先アプリとインターフェイスします。 TypeScript サーバで AppleScript コマンドをラップして、次のようにします。

  • 連絡先の表示と検索
  • 連絡先や電話番号にiMessageを送信
  • メッセージが送信されたときに確認を得る

##特徴

リソース

  • [contacts://allを介して連絡先にアクセスする
  • 氏名、電話番号、メールアドレスなどの連絡先の詳細を表示
  • すべてのデータはあなたの機械にローカルにとどまります

ツール

  • [search_contacts - 名前、電話、または電子メールで連絡先を見つける

  • 検索クエリを取り、一致する連絡先を返す

  • 氏名、電話番号、メールアドレスの検索

  • [send_message - iMessageを送信する

  • 受信者(電話/電子メール)とメッセージ内容を取る

  • ローカルメッセージアプリで送信する

  • 確認またはエラーの詳細を返す

インストール

  1. 依存関係を取付けて下さい:

  2. サーバの構築:

3。 サーバーを使用するClaudeデスクトップの設定:

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

iMessage MCP Server

⚠️ DISCLAIMER - USE AT YOUR OWN RISK ⚠️

This software is provided as-is, without any warranties or guarantees.

An MCP server that uses AppleScript to send iMessages and manage contacts.

This server uses AppleScript to interface with macOS Messages and Contacts apps through the Model Context Protocol (MCP). It wraps AppleScript commands in a TypeScript server to allow you to:

  • View and search your contacts
  • Send iMessages to contacts or phone numbers
  • Get confirmation when messages are sent

Features

Resources

  • Access your contacts via contacts://all
  • View contact details including names, phone numbers, and email addresses
  • All data stays local on your machine

Tools

  • search_contacts - Find contacts by name, phone, or email

    • Takes a search query and returns matching contacts
    • Searches across names, phone numbers, and email addresses
  • send_message - Send an iMessage

    • Takes recipient (phone/email) and message content
    • Sends through your local Messages app
    • Returns confirmation or error details

Installation

  1. Install dependencies:
npm install
  1. Build the server:
npm run build
  1. Configure Claude Desktop to use the server:

On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "imessage": {
      "command": "node",
      "args": ["/path/to/imessage-server/build/server.js"]
    }
  }
}
  1. Restart Claude Desktop

  2. Grant permissions when prompted for:

    • Contacts access
    • Messages access

Usage

Once installed, you can talk to Claude Desktop naturally:

  • “Show me my contacts”
  • “Search for contacts named Marissa”
  • “Send a message to 555-0123 saying I’ll be there in 10 minutes”
  • “Send Alice an iMessage asking if we’re still on for lunch”

Security Notes

  • All operations happen locally on your machine
  • No contact or message data is sent to external servers
  • The server requires macOS permissions for Contacts and Messages access
  • Messages are sent through your iMessage account

Development

For development and debugging, use the MCP Inspector:

npx @modelcontextprotocol/inspector node build/server.js

Requirements

  • macOS (for Messages and Contacts integration)
  • Node.js 18 or higher
  • Claude Desktop
  • Active iMessage account

Troubleshooting

If messages aren’t sending:

  1. Check Messages app is signed in
  2. Verify permissions are granted
  3. Look for errors in Claude Desktop logs:
tail -f ~/Library/Logs/Claude/mcp*.log
GitHub で README 全文を見る

インストール

npx @modelcontextprotocol/inspector node build/server.js
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "imessage": { "command": "node", "args": ["/path/to/imessage-server/build/server.js"] } } }