
whatsapp-mcp-247
by VR-WebSpider
π’ WhatsApp MCP Server (24/7 Cloud & Local Edition)
An open-source Model Context Protocol (MCP) server that connects personal WhatsApp accounts directly to AI agents (Gemini Spark, Claude Desktop, Cursor, VS Code).
Designed for 100% Free 24/7/365 Cloud Hosting via Docker (Render, Koyeb, Railway, Cloud VMs) or local execution.
π Architecture Overview
graph TD
A[WhatsApp Web API] <-->|WebSocket| B[Go WhatsApp Bridge :8080]
B <-->|SQLite DB / REST| C[Python MCP Server]
C <-->|SSE Proxy / stdio| D[Supergateway :8000]
D <-->|HTTPS Tunnel / Cloud| E[AI Assistants: Gemini Spark / Claude / Cursor]
β¨ Features
- π± Multi-Device WhatsApp Connect: Powered by
whatsmeowwith fast SQLite message syncing. - β‘ Pure-Go Build: No CGO/GCC compilation requirements on Windows/Linux.
- βοΈ 24/7 Cloud Dockerized: Deploy to Render.com, Koyeb, or Oracle Cloud for zero-cost continuous hosting without keeping your computer on.
- π Gemini Spark Ready: Built-in Server-Sent Events (SSE) server for instant web LLM connection.
- π Security First: Automatically ignores sensitive SQLite database session stores (
whatsapp.db) to prevent credential leaks.
π οΈ Available MCP Tools
| Tool Name | Description |
|---|---|
search_contacts | Search contacts/groups by name or phone number |
list_chats | View active chat conversations |
list_messages | Retrieve recent message history from specific chats |
send_message | Send text messages to individuals or groups |
send_file | Send documents, photos, or media files |
send_audio_message | Send playable voice notes (requires FFmpeg) |
βοΈ 1-Click Cloud Deployment (24/7 365-Day Free)
Deploy to Render / Koyeb
- Fork or Clone this repository to your GitHub account.
- Go to Render.com or Koyeb.com.
- Create a New Web Service -> Connect your GitHub repository.
- Select Docker environment.
- Mount a Persistent Disk to
/app/whatsapp-bridge/store. - Open container Logs during initial deploy to scan the WhatsApp QR code.
- Connect your generated public SSE URL (
https://your-app.onrender.com/sse) to Gemini Spark.
π₯οΈ Local Installation
Prerequisites
- Go
v1.20+ - Python
v3.11+ - uv package manager
Quick Start
# Clone repository
git clone https://github.com/VR-WebSpider/whatsapp-mcp-247.git
cd whatsapp-mcp-247
# Build Go bridge
cd whatsapp-bridge
go build -o whatsapp-bridge.exe .
# Install Python dependencies
cd ../whatsapp-mcp-server
uv sync
# Run complete stack
..\start_whatsapp_mcp.bat
π Security Measures & Best Practices
- Session Protection: SQLite databases (
whatsapp.db,messages.db) contain sensitive authentication tokens and are explicitly ignored by.gitignore. Never commit.dbfiles to public repositories. - Localhost Binding: The Go REST API binds to
127.0.0.1:8080to prevent unauthorized local network access. - Public Tunnels: When using Cloudflare Tunnels for web LLMs, do not share your generated
trycloudflare.comURL publicly.
π License
Distributed under the MIT License. See LICENSE for more information.
Related servers

n8n
by n8n-io
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
NOASSERTIONβ
198,904

@modelcontextprotocol/server-everything
OfficialMCP server that exercises all the features of the MCP protocol
β
89,105

@modelcontextprotocol/server-filesystem
OfficialMCP server for filesystem access
SEE LICENSE IN LICENSEβ
89,105