About Wacli MCP
Wacli MCP is an MCP server published by dgallitelli in the Search category: mCP server for WhatsApp via wacli — search messages, list chats, send texts from any AI assistant.
The repository has 2 stars and 0 forks, with the last commit 5 months ago. Recent commit activity is the strongest signal that reported issues will get attention.
Install
git clone https://github.com/dgallitelli/wacli-mcpThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Tools (19)
auth_statusCheck WhatsApp authentication status
Parameters not published.
doctorRun diagnostics on store, auth, and search index
Parameters not published.
download_mediaDownload media from a message
Parameters not published.
group_infoFetch live group info
Parameters not published.
history_backfillRequest older messages from primary device
Parameters not published.
list_chatsList chats with optional search query
Parameters not published.
list_groupsList known groups with optional search
Parameters not published.
list_messagesList messages with date and chat filters
Parameters not published.
message_contextShow surrounding messages for context
Parameters not published.
refresh_contactsRefresh contacts from WhatsApp into local DB
Parameters not published.
Show all 19 tools
resolve_recipientFuzzy-match a person/group name to a JID (searches contacts and groups)
Parameters not published.
search_contactsSearch contacts by name or phone number
Parameters not published.
search_messagesFull-text search (FTS5) with chat/sender/date/media filters
Parameters not published.
send_fileSend a file (image/video/audio/document)
Parameters not published.
send_textSend a text message
Parameters not published.
show_chatShow details for a single chat by JID
Parameters not published.
show_contactShow contact details by JID
Parameters not published.
show_messageShow a single message by ID
Parameters not published.
sync_onceSync new messages then exit
Parameters not published.
Ask AI
Ask AI about Wacli MCP
Powered by Claude · Grounded in docs
Security checks
Static checks derived from the repository 5 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository ships documentation.
- ✓License declaredUsable under a stated license.
- !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
- !Dependencies pinnedNo lockfile. Installs can pull different code over time.
- ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
1 check has not been run yet.
README
wacli-mcp
An MCP server that connects AI assistants to WhatsApp via wacli. Search messages, list chats, manage contacts, and send texts — all from Claude, Cursor, Kiro, or any MCP-compatible client.
Prerequisites
Install wacli and authenticate:
brew install steipete/tap/wacli
wacli auth
Scan the QR code with your WhatsApp mobile app to link the device.
Quick Start
Claude Code
claude mcp add wacli -- uvx --from "git+https://github.com/dgallitelli/wacli-mcp" wacli-mcp
Claude Desktop / Cursor / Windsurf
Add to your MCP config file:
{
"mcpServers": {
"wacli": {
"command": "uvx",
"args": ["--from", "git+https://github.com/dgallitelli/wacli-mcp", "wacli-mcp"]
}
}
}
Kiro
Add to ~/.kiro/settings/mcp.json:
{
"mcpServers": {
"wacli": {
"type": "stdio",
"command": "uvx",
"args": ["--from", "git+https://github.com/dgallitelli/wacli-mcp", "wacli-mcp"],
"disabled": false
}
}
}
Tools
| Tool | Description |
|---|---|
auth_status |
Check WhatsApp authentication status |
doctor |
Run diagnostics on store, auth, and search index |
list_chats |
List chats with optional search query |
show_chat |
Show details for a single chat by JID |
list_messages |
List messages with date and chat filters |
search_messages |
Full-text search (FTS5) with chat/sender/date/media filters |
show_message |
Show a single message by ID |
message_context |
Show surrounding messages for context |
search_contacts |
Search contacts by name or phone number |
show_contact |
Show contact details by JID |
refresh_contacts |
Refresh contacts from WhatsApp into local DB |
list_groups |
List known groups with optional search |
group_info |
Fetch live group info |
send_text |
Send a text message |
send_file |
Send a file (image/video/audio/document) |
download_media |
Download media from a message |
sync_once |
Sync new messages then exit |
history_backfill |
Request older messages from primary device |
resolve_recipient |
Fuzzy-match a person/group name to a JID (searches contacts and groups) |
Resources
MCP clients that support resource browsing can navigate WhatsApp data directly:
| URI | Description |
|---|---|
whatsapp://chats |
All chats |
whatsapp://contacts |
All synced contacts |
whatsapp://groups |
All known groups |
whatsapp://chats/{jid} |
Chat details + recent messages |
whatsapp://contacts/{jid} |
Contact details |
Prompts
Pre-built workflows that MCP clients can surface as suggested actions:
| Prompt | Description |
|---|---|
daily_digest |
Summarize all today's messages, grouped by chat |
catch_up |
Catch up on a specific chat since a given time |
draft_reply |
Draft a contextual reply for a chat |
find_decision |
Find when/where something was decided |
unanswered_messages |
Find messages that expect a reply from you |
shared_media_recap |
Recap photos, docs, and links shared in a chat |
Configuration
| Environment Variable | Description | Default |
|---|---|---|
WACLI_PATH |
Path to the wacli binary |
Auto-detected via PATH |
Note:
wacliitself readsWACLI_STORE_DIRfrom the environment to locate its store directory (default~/.wacli). Since child processes inherit environment variables, you can set it in your MCP client'senvblock andwacliwill pick it up directly.
Important Notes
- Authentication required: Run
wacli authbefore using this server. The MCP server cannot display QR codes. - Store lock: Only one wacli process can access the store at a time. If you're running
wacli syncin the background, send operations will fail with a lock error. Stop the sync process first. - Send confirmation: The server instructs AI assistants to always confirm with the user before sending messages. However, this is advisory — configure your client's approval settings accordingly.
- Local DB: Read operations (search, list, show) query a local SQLite database. Run
sync_onceto pull the latest messages.
Development
git clone https://github.com/dgallitelli/wacli-mcp.git
cd wacli-mcp
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
Run the linter:
ruff check src/
ruff format --check src/
Run the server directly:
wacli-mcp
Acknowledgments
This project is a thin MCP wrapper around wacli by Peter Steinberger. All WhatsApp connectivity, message syncing, and local storage are handled by wacli — this server simply exposes its CLI interface as MCP tools.
License
README fetched from the repository 5 days ago. The original is authoritative.