Gemini CLI runs MCP servers from its settings file, so a WhatsApp MCP server in Gemini CLI is one JSON block away. Once it is there, Gemini can list your groups, read a chat, transcribe a voice note and draft replies from the terminal. This guide uses WACrew's open-source server, wacrew-mcp.
Before you start
You need a WACrew collector holding your WhatsApp session (a VPS or Railway, with HTTPS in front of the panel; see the connection guide) and Node 20 or newer where Gemini CLI runs.
Add the server to settings.json
Gemini CLI reads ~/.gemini/settings.json for every project, or .gemini/settings.json inside a project for that project only. Add:
{
"mcpServers": {
"wacrew": {
"command": "npx",
"args": ["-y", "wacrew-mcp"],
"env": {
"WAC_CLOUD_URL": "https://your-panel.example.com",
"WAC_CLOUD_USER": "admin",
"WAC_CLOUD_PASS": "change-me"
}
}
}
}
If the file already has other keys, add mcpServers next to them; JSON allows no duplicate keys.
Check it
Start gemini and type /mcp. The wacrew server should be listed as connected, with its tools. Then ask "who is waiting for a reply on WhatsApp?" and Gemini will call caixa_de_entrada.
Gemini CLI or Antigravity?
Both are Google's, and they keep MCP servers in different places. Gemini CLI uses settings.json as above. Antigravity (the editor and its agy CLI) has its own config and a plugin system, and WACrew installs there as a plugin with its skills; see WhatsApp MCP in Antigravity.
What changes from Claude Code
Nothing on the WhatsApp side: the same 37 tools, the same confirm mode per chat, the same review before anything is sent. The server's instructions tell the model to load the operator's voice skill before writing; in Gemini CLI that skill is not loaded automatically, so write your preferences in a GEMINI.md or paste them, and keep chats in confirm mode until the drafts sound like you.
FAQ
Does Gemini CLI support stdio MCP servers? Yes, through command and args in mcpServers, which is what wacrew-mcp uses.
Can I connect two WhatsApp numbers? Yes, one server can hold several panels with WAC_CONTAS. See multiple accounts.
Where is my WhatsApp history stored? In your collector. Gemini only sees what a tool returns in the session.
Is this the official WhatsApp API? No, the collector connects as a linked device. Use it with people who already talk to you.

