Skip to main content
Glama

iMessage MCP Server

by marissamarym

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
Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

A local server that enables Claude Desktop to interact with your macOS Contacts and Messages apps, allowing you to search contacts and send iMessages through natural language commands.

  1. Features
    1. Resources
    2. Tools
  2. Installation
    1. Usage
      1. Security Notes
        1. Development
          1. Requirements
            1. Troubleshooting

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                An MCP server that enables saving and sharing Claude Desktop conversations, allowing users to store chats privately or make them public through a web interface.
                Last updated -
                2
                6
                TypeScript
                MIT License
                • Apple
              • -
                security
                A
                license
                -
                quality
                An email assistant server that connects Claude Desktop to notmuch email databases, allowing users to search emails, view threads, compose new messages, and reply to conversations with markdown formatting.
                Last updated -
                2
                Python
                Mozilla Public License 2.0
              • -
                security
                F
                license
                -
                quality
                An integration server that provides Claude Desktop access to Gmail, enabling users to view recent emails and search their Gmail inbox using natural language commands.
                Last updated -
                7
                Python
              • -
                security
                A
                license
                -
                quality
                A server that enables interaction with Telegram chats directly through MCP-compatible hosts like Claude for Desktop, providing tools to retrieve chats, get messages, and send messages.
                Last updated -
                244
                Python
                Apache 2.0
                • Apple
                • Linux

              View all related MCP servers

              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/marissamarym/imessage-mcp-server'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server