whatsapp-mcp-ts

whatsapp-mcp-ts

3.5

If you are the rightful owner of whatsapp-mcp-ts and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This is a Model Context Protocol (MCP) server for WhatsApp, built with TypeScript and using the @whiskeysockets/baileys library.

The WhatsApp MCP Server is designed to connect your personal WhatsApp account to an AI agent, enabling functionalities such as searching personal messages, contacts, listing recent chats, retrieving message history, and sending messages. It utilizes the WhatsApp Web multi-device API to connect directly to your account, storing all messages and authentication details locally in a SQLite database. The server provides tools that can be used by an AI agent to interact with your WhatsApp data, ensuring that data is only sent to the AI agent when explicitly requested. The server is built using Node.js and TypeScript, leveraging the @whiskeysockets/baileys library for WhatsApp connectivity and @modelcontextprotocol/sdk for MCP functionalities.

Features

  • search_contacts: Search for contacts by name or phone number part (JID).
  • list_messages: Retrieve message history for a specific chat, with pagination.
  • list_chats: List your chats, sortable by activity or name, filterable, paginated, optionally includes last message details.
  • get_chat: Get detailed information about a specific chat.
  • send_message: Send a text message to a specified recipient JID (user or group).