Duet
Provides tools for interacting with linked WhatsApp accounts through Duet, including listing accounts, checking connection status, reading and searching chats/messages, drafting or sending replies, and setting up reply watches.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Duet
I started Duet because I wanted two WhatsApp accounts in one window. Duet opens WhatsApp Web in a desktop app and gives agents like Claude Code and Codex a local connection through MCP, the Model Context Protocol. Ask your agent to find an address buried in last month's messages, catch you up on a busy group chat, or draft a reply for you to read before it goes out.
If you're waiting for a reply, Duet can check the chat for you while the app is running and that account has MCP access on. It waits briefly after the last message so a few quick replies arrive together, then passes them to the waiting agent. If nobody is waiting, Duet can notify you or start a configured agent, depending on how the watch was set up. You can see or stop watches in the Agent activity drawer.
Get started
You can hand your agent the install guide or build from this repository yourself. You'll need Git and Node.js 22.12 or newer.
Windows
git clone https://github.com/gvridi/duet.git
cd duet
npm ci
npm test
npm run packageFor an x64 build, open release/WhatsApp-Duet-win32-x64/WhatsApp-Duet.exe. If PowerShell blocks npm, use npm.cmd. Keep the release folder together so the app can find its profile.
On your phone, go to WhatsApp → Linked devices → Link a device and scan the QR code.
In the account's sidebar settings, turn on MCP access and choose Copy MCP config.
Add the server to your agent's MCP settings and reconnect it. Ask the agent to call
list_accountsandaccount_statusto check the connection.
macOS
See the Apple Silicon setup guide for a local build and MCP configuration. It uses an ad-hoc signature. A native Mac build and live Mac use still need verification.
Related MCP server: MCP WhatsApp
One account or several
On a fresh profile, Duet opens with one account. Use + Add account in the sidebar to link up to four numbers. Each has its own sign-in and MCP switch. Focus shows one account in the workspace, and Split shows two side by side. An upgrade keeps the existing accounts, labels, and saved access settings when you reuse the same profile.
The sidebar shows each linked account's WhatsApp photo when available. Open an account's dropdown and choose Delete account to remove its saved sign-in from Duet on this computer. Links in chats open in your default browser.
New accounts have MCP access off. Turn it on only for accounts you want your agents to use. The switch is shared across connected agents and grants access to the account through Duet's tools. Switching it off blocks new agent calls on that account. You can still use WhatsApp yourself, and a send already submitted to WhatsApp can't be called back by the switch.
If you'd like to review a drafted reply yourself, open Agent activity and choose Send reply. Duet shows the account and exact text before you confirm. If an agent sends directly and the outcome is uncertain, check the chat or operation status before retrying.
Where your chats go
The app, its data, and the MCP bridge live on your computer. Duet adds no cloud relay. WhatsApp Web still connects to WhatsApp, and your AI client may pass content it reads to its model provider. Keep your profiles, sessions, drafts, and downloads private.
Duet is an independent project under the MIT License. It uses WhatsApp Web's unofficial interfaces, which can change or break. Linked devices may have only part of your chat history.
Tests and development
Run npm test for the code and MCP tests, npm run smoke for the isolated Electron fixture, and npm run verify:packaged after a fresh package build. The fixture uses synthetic accounts. It checks account isolation, adding accounts from the sidebar, access switches, and a range of chat and draft operations without touching your WhatsApp sessions.
The Windows x64 build, smoke test, and packaged MCP handshake have passed. Those checks don't establish live support for every WhatsApp feature. See the Duet skill for tool usage, reply watches, and how to recover when an action's outcome is uncertain.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted WhatsApp MCP server for AI agents — read, search, send messages, media, polls, and groups.
WhatsMCP connects Claude and other MCP-compatible AI agents directly to WhatsApp. Send and receive text, images, documents, and voice notes; manage groups (create, add/remove members, promote admins); look up contacts and profiles; follow channels; and read call and message history — all through a standard MCP interface. For voice use cases, WhatsMCP offers SIP-based calling plans (inbound-only, or full inbound/outbound) so AI voice agents can answer and place WhatsApp calls, plus low-latency WebSocket integrations with voice agent providers like ElevenLabs. Multiple WhatsApp accounts can be paired and managed per workspace, with webhook support for real-time inbound message delivery to your own infrastructure.
Ask questions across your WhatsApp inbox from Claude, ChatGPT, Cursor or any MCP client.
Give your AI agent its own real WhatsApp number: buy numbers and reply to chats over MCP.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables WhatsApp automation through MCP protocol, allowing users to manage sessions, send messages, handle groups/communities, and access contacts through natural language interactions with AI agents.5 npm-
- AlicenseBqualityBmaintenanceEnables sending messages, images, documents and more on WhatsApp directly from any MCP-compatible AI, with tools for chat management, groups, and webhooks.371MIT
- AlicenseNot gradedqualityBmaintenanceIntegrates WhatsApp with AI agents, enabling message sending, chat search, media sharing, approval workflows, and activity summaries via any MCP client.2Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to send and receive WhatsApp messages, search chats, share media, manage approvals, and get activity summaries through MCP.Apache 2.0