MCP Hub
Back to servers

whatsapp-mcp-extended

Extended WhatsApp MCP server with 41 tools - reactions, group management, polls, presence, newsletters & more. Fork of lharries/whatsapp-mcp

GitHub
Stars
4
Updated
Jan 4, 2026
Validated
Feb 3, 2026

WhatsApp MCP Extended

An extended Model Context Protocol (MCP) server for WhatsApp with 41 tools - advanced messaging, group management, webhooks, presence, and more.

Built on AdamRussak/whatsapp-mcp (webhooks, containers) which forked lharries/whatsapp-mcp (original). Extended with reactions, message editing, polls, group management, presence, newsletters, and more.

WhatsApp MCP

What's New (vs Original)

FeatureOriginalExtended
MCP Tools1241
Reactions-
Edit/Delete Messages-
Group Management-
Polls-
History Sync-
Presence/Online Status-
Newsletters-
Webhooks-
Custom Nicknames-

Architecture

┌─────────────────────┐     ┌─────────────────────┐     ┌─────────────────────┐
│   whatsapp-bridge   │     │   whatsapp-mcp      │     │    webhook-ui       │
│   (Go + whatsmeow)  │◄────│   (Python + MCP)    │     │   (HTML/JS SPA)     │
│   Port: 8080        │     │   Ports: 8081,8082  │     │   Port: 8089        │
└─────────────────────┘     └─────────────────────┘     └─────────────────────┘
         │                           │
         ▼                           ▼
    ┌─────────────────────────────────────┐
    │           SQLite (store/)           │
    │  messages.db │ whatsapp.db          │
    └─────────────────────────────────────┘

Quick Start

Docker (Recommended)

git clone https://github.com/felixisaac/whatsapp-mcp-extended
cd whatsapp-mcp-extended

docker network create n8n_n8n_traefik_network
docker-compose up -d

# Scan QR code to authenticate
docker-compose logs -f whatsapp-bridge

Claude Desktop / Cursor Integration

Add to your MCP config (claude_desktop_config.json or Cursor settings):

{
  "mcpServers": {
    "whatsapp": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/whatsapp-mcp-extended/whatsapp-mcp-server", "python", "main.py"]
    }
  }
}

MCP Tools (41 Total)

Messaging

ToolDescription
send_messageSend text message
send_fileSend image/video/document
send_audio_messageSend voice message
download_mediaDownload received media
send_reactionReact to message with emoji
edit_messageEdit sent message
delete_messageDelete/revoke message
mark_readMark messages as read (blue ticks)

Chats & Messages

ToolDescription
list_chatsList all chats
get_chatGet chat by JID
list_messagesSearch messages with filters
get_message_contextGet messages around a specific message
get_direct_chat_by_contactFind DM with contact
get_contact_chatsAll chats involving contact
get_last_interactionMost recent message with contact
request_historyRequest older message history

Contacts

ToolDescription
search_contactsSearch by name/phone
list_all_contactsList all contacts
get_contact_detailsFull contact info
set_nicknameSet custom nickname
get_nicknameGet custom nickname
remove_nicknameRemove nickname
list_nicknamesList all nicknames

Groups

ToolDescription
get_group_infoGroup metadata & participants
create_groupCreate new group
add_group_membersAdd members
remove_group_membersRemove members
promote_to_adminPromote to admin
demote_adminDemote admin
leave_groupLeave group
update_groupUpdate name/topic
create_pollCreate poll in chat

Presence & Profile

ToolDescription
set_presenceSet online/offline status
subscribe_presenceSubscribe to contact's presence
get_profile_pictureGet profile picture URL
get_blocklistList blocked users
block_userBlock user
unblock_userUnblock user

Newsletters (Channels)

ToolDescription
follow_newsletterFollow channel
unfollow_newsletterUnfollow channel
create_newsletterCreate new channel

Webhook System

Real-time HTTP webhooks for incoming messages with:

  • Triggers: all, chat_jid, sender, keyword, media_type
  • Matching: exact, contains, regex
  • Security: HMAC-SHA256 signatures
  • Retry: Exponential backoff

Access webhook UI at http://localhost:8089

Development

Manual Setup

# Bridge (Go 1.24+)
cd whatsapp-bridge && go run main.go

# MCP Server (Python 3.11+)
cd whatsapp-mcp-server && uv sync && uv run python main.py

# Webhook UI
cd whatsapp-webhook-ui && python3 -m http.server 8089

Pre-build Checks

cd whatsapp-mcp-server
uv run python check.py  # Catches errors before docker build

Updating whatsmeow

When you see Client outdated (405) errors:

cd whatsapp-bridge
go get -u go.mau.fi/whatsmeow@latest
go mod tidy
docker-compose build whatsapp-bridge
docker-compose up -d whatsapp-bridge

Ports

ServicePortDescription
Bridge API8080 (→8180)REST API
MCP Server8081SSE transport
Gradio UI8082Web testing UI
Webhook UI8089Webhook management

Troubleshooting

Messages Not Delivering

If API returns success but messages show single checkmark:

docker-compose restart whatsapp-bridge
docker-compose logs --tail=10 whatsapp-bridge
# Should see: "✓ Connected to WhatsApp!"

QR Code Issues

docker-compose logs -f whatsapp-bridge
# Scan QR with WhatsApp mobile app

Credits

Fork chain:

Libraries:

License

MIT License - see LICENSE file.

Reviews

No reviews yet

Sign in to write a review