WhatsappSAFE
WhatsApp MCP Server (TypeScript/Baileys)
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://smithery.ai/server/@jlucaso1/whatsapp-mcp-ts)
This is a Model Context Protocol (MCP) server for WhatsApp, built with TypeScript and using the @whiskeysockets/baileys library.
It allows you to connect your personal WhatsApp account to an AI agent (like Anthropic Claude via its desktop app or Cursor) enabling it to:
- Search your personal WhatsApp messages.
- Search your contacts (individuals, not groups).
- List your recent chats.
- Retrieve message history for specific chats.
- Send messages to individuals or groups.
It connects directly to your personal WhatsApp account using the WhatsApp Web multi-device API. All your messages and authentication details are stored locally in a SQLite database (./data/) and authentication cache (./auth_info/). Data is only sent to the connected AI agent when it explicitly uses the provided MCP tools (which you control via the agent's interface).
(Optional: Consider adding a screenshot or GIF similar to the reference example here)
Example
User: Send a whatsapp message to "Meu amor" in whatsapp saying "Te amo"
Assistant: Okay, I need to find the contact first. Using tool: `whatsapp.search_contacts`
{
"query": "Meu amor"
}Tool Result:
[
{
"jid": "[email protected]",
"name": "Meu Amor"
}
]Assistant: Found the contact. Now sending the message. Using tool: `whatsapp.send_message`
{
"recipient": "[email protected]",
"message": "Te amo"
}Tool Result:
Message sent successfully to [email protected] (ID: XXXXXXXXXXX).
Key Features (MCP Tools)
The server exposes the following tools to the connected AI agent:
search_contacts: Search for contacts by name or phone number part (JID).list_messages: Retrieve message history for a specific chat, with
356bd37b059cOBSERVED · 2026-10-07Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add whatsapp-mcp-ts -- npx -y [email protected]
{
"mcpServers": {
"whatsapp-mcp-ts": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Exposed tools (7)
6 read · 1 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
get_chat | read | |
get_message_context | read | |
list_chats | read | |
list_messages | read | |
search_contacts | read | |
search_messages | read | |
send_message | write |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (2)
@modelcontextprotocol/sdk, @whiskeysockets/baileys, open, pino, zod, @types/node, @types/pino, typescript
Gates applied: no_behavioural_pass, no_license.
356bd37b059cfull audit observations/trust-audit/mcp-server/jlucaso1__whatsapp-2.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-07 | 356bd37b059c | SAFE | B | 89 | first audit |
Questions
What is the Whatsapp MCP server?
WhatsApp MCP Server (TypeScript/Baileys)
What tools does Whatsapp expose?
7 in total: 6 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Whatsapp safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Whatsapp need?
No credential environment variables were found in its source, so it appears to need none.
How does Whatsapp run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as whatsapp-mcp-ts at 1.0.0.
How current is this page?
The grade is for one exact copy of the source (356bd37b059c), read on 2026-10-07. The repository is watched and re-audited when it changes.