MCPSERV.CLUB
jlucaso1

WhatsApp MCP Server

MCP Server

AI-powered WhatsApp integration via Model Context Protocol

Stale(50)
39stars
0views
Updated 12 days ago

About

A TypeScript-based MCP server that connects your personal WhatsApp account to AI agents, enabling search of contacts, chats, and message history, as well as sending messages directly from the agent.

Capabilities

Resources
Access data sources
Tools
Execute functions
Prompts
Pre-built templates
Sampling
AI model interactions

WhatsApp MCP Server (TypeScript/Baileys)

The WhatsApp MCP Server bridges a personal WhatsApp account with AI assistants that understand the Model Context Protocol. By leveraging the Baileys library, it authenticates via WhatsApp Web’s multi‑device API and stores all data locally in SQLite, ensuring privacy while still giving an AI agent powerful access to a user’s messaging ecosystem.

This server solves the common problem of “how do I let an AI read and write my WhatsApp conversations without compromising security?” Traditional integrations often require cloud‑based relays or exposed APIs that risk leaking personal data. Here, the entire stack runs on the user’s machine; authentication tokens and message histories never leave local storage. The AI client only receives information when explicitly requested through the MCP tools, giving developers granular control over data exposure.

Key capabilities are exposed as intuitive tools: searching contacts by name or partial JID, listing chats with pagination and sorting, retrieving a chat’s message history, fetching context around a specific message, and sending text to individuals or groups. These tools translate directly into conversational actions—an AI can ask a user for a contact name, resolve it to a JID, and then send a message—all while the user retains full oversight of what data is transmitted.

Real‑world scenarios include automated customer support bots that pull recent chat logs to provide context, personal assistants that can forward reminders or updates via WhatsApp, and data‑analysis pipelines where an AI reviews message patterns before triggering alerts. Because the server operates locally, developers can integrate it into existing MCP‑compatible workflows—Claude Desktop, Cursor, or any client that supports the protocol—without additional infrastructure.

Unique advantages of this implementation are its TypeScript foundation for type safety, the use of Baileys for reliable Web‑WhatsApp interaction, and a lightweight SQLite persistence layer that keeps the footprint small. By keeping authentication cache in a dedicated folder, developers can easily rotate or delete credentials without affecting the main database. The result is a secure, developer‑friendly bridge that unlocks WhatsApp’s full conversational power for AI agents.