WhatsApp Desktop
About
Enables interaction with WhatsApp desktop on macOS through AppleScript automation for sending messages, checking status, and navigating the interface with keyboard shortcuts.
Details
- Author
- gfb-47
- Repository
- gfb-47/whatsapp-mcp-server
- GitHub stars
- 3
- Categories
- Productivity, Design, Developer Tools, AI, Frontend, Communication, Infrastructure
- Tags
- #integration
Jump to
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
WhatsApp DesktopCommand (node, npx, python, etc.)nodeArguments-
Argument 1
path/to/your/index.js
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
npm install
```
send-whatsapp-message
Sends a message to a specified WhatsApp contact. Parameters: contactName (string) - Full name of the contact as it appears in WhatsApp, message (string) - Content of the message to send.
check-whatsapp-status
Checks if the WhatsApp application is currently running. No parameters required.
list-recent-contacts
Provides information about WhatsApp's privacy limitations for contact listing. No parameters required.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"whatsapp desktop": {
"cwd": "string (optional)",
"env": {},
"args": [
"path/to/your/index.js"
],
"shell": false,
"command": "node"
}
}
}
Linux
{
"cwd": "string (optional)",
"env": [],
"args": [
"path/to/your/index.js"
],
"shell": false,
"command": "node"
}
Macos
{
"cwd": "string (optional)",
"env": [],
"args": [
"path/to/your/index.js"
],
"shell": false,
"command": "node"
}
Windows
{
"cwd": "string (optional)",
"env": [],
"args": [
"/c",
"node",
"path/to/your/index.js"
],
"shell": false,
"command": "cmd"
}
WhatsApp MCP Server
Overview
The WhatsApp MCP (Model Context Protocol) server is a Node.js application that enables programmatic interaction with the WhatsApp desktop application on macOS. Using AppleScript automation, it provides a simple interface for sending messages and checking WhatsApp status without requiring direct interaction with the WhatsApp UI.Features
1. Send Messages to Contacts
Send text messages to specific contacts in your WhatsApp contact list: - Messages are delivered through your connected WhatsApp desktop application - Supports proper formatting of messages including line breaks - Uses AppleScript to automate the WhatsApp desktop interface2. Check WhatsApp Status (WIP)
Verify if the WhatsApp application is currently running: - Returns the current running status of WhatsApp - Helps prevent errors when attempting to send messages3. List Recent Contacts (WIP)
Due to WhatsApp's privacy protections, this feature provides limited functionality: - Informs users about WhatsApp's privacy limitations - Requires exact contact names for messagingTechnical Implementation
Built With
- @modelcontextprotocol/sdk - MCP server and stdio transport - Zod - Schema validation - Node.js built-in modules (child_process, util, fs) - AppleScript for macOS automationArchitecture
- Uses the Model Context Protocol (MCP) for standardized tool communication - Employs stdio transport for communication - Executes AppleScript commands to interact with the WhatsApp desktop application - Implements comprehensive error logging for debuggingRequirements
- macOS operating system - WhatsApp desktop application installed - Node.js v14.0.0 or higher - Internet connectionInstallation
# Clone the repository
git clone https://github.com/yourusername/whatsapp-mcp-server.git
Navigate to the project directory
cd whatsapp-mcp-server
Install dependencies
npm install
Usage
Starting the Server
node index.js
Integrating with Claude
To enable Claude to use the WhatsApp MCP server, follow these steps:
1. Set up your MCP server
- Install and configure the WhatsApp MCP server as described above
- Ensure the server is running properly on your local machine
2. Configure Claude Desktop with your MCP tools
- Modify your claude_desktop_config.json file to include the WhatsApp MCP tools
- This file is typically located in your Claude Desktop application configuration directory
- Add the following configuration to register your WhatsApp MCP tools:
{
"mcpServers": [
{
"name": "whatsapp-mcp",
"transport": {
"command": "node",
"args": ["path/to/your/index.js"]
}
}
]
}
3. Test the Integration
- Create a test conversation with Claude
- Ask Claude to send a WhatsApp message to a test contact
- Verify that the message is sent successfully through the WhatsApp desktop app
MCP Tools Available
1. send-whatsapp-message
Sends a message to a specified WhatsApp contact.Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





