
wapi.kz MCP server
Sends and receives WhatsApp Business messages through a REST API, MCP server and CLI, with CRM and n8n connectors.
read 2026-11-23
How to connect
Add the server to your MCP client config. Claude Desktop, Cursor and most other clients read this shape:
{
"mcpServers": {
"whatsapp": {
"type": "http",
"url": "https://wapi.kz/api/mcp"
}
}
}Add it
Claude Code, in a terminal
claude mcp add --transport http wapi https://wapi.kz/api/mcpclaude.ai, ChatGPT and other clients: add https://wapi.kz/api/mcp as a custom connector in the settings.
send_messagechanges datadescribed by the serverSend a WhatsApp message from a connected number: text, image (image_url, JPEG/PNG/WebP), file (file_url), voice message (voice_url — MP3/M4A/WAV/OGG, converted to a WhatsApp voice message), video (video_url — MP4; MOV/WebM are converted)…
react_messagechanges dataReact to a message with an emoji (or remove the reaction with an empty emoji). message_id — id from get_messages (or wa_message_id). Works for incoming and own messages.
edit_messagechanges dataEdit the text of your own text message (WhatsApp allows it within 15 minutes after sending).
delete_messagechanges dataDelete your own message for everyone in WhatsApp (within about 2 days after sending). The record stays in the history with deleted_at.
list_groupsWhatsApp groups the number is a member of: id (chat_id for send_message to), name, participants count, admins_only (only admins can write), is_admin. The list is cached for 5 minutes.
get_groupOne group of the number and its participants: jid, phone (null if hidden), name, admin.
list_numbersseen, not called yetThe account's WhatsApp numbers: id (for the from parameter), phone, whether it is connected (connected), status (active / paused — balance ran out).
get_messagesdescribed by the serverLatest messages from the log (incoming and outgoing, newest first). source: contact — written by the other party, phone — sent by a person from the phone, api/mcp — sent by a program. chat — the other party's phone or chat_id, to get a…
get_mediadescribed by the serverA message's file (photo, video, voice message, document, sticker) by media.id from get_messages: type, name, size and a fresh download link (valid for 15 minutes).
create_exportchanges datadescribed by the serverBuild a ZIP archive: files and chat history (messages.json + messages.csv) for a period. Built in the background (usually minutes) — get_export returns the status and the link. At most 2 at a time and 10 per day.
get_exportdescribed by the serverExport status (queued, running, done, failed, expired), progress and the archive link when ready (the link is valid for 15 minutes — request it again; the archive is kept for 24 hours).
get_balancedescribed by the serverAccount balance in tenge (KZT), the daily charge (330 ₸ per active number) and how many days it will last.
get_limitsdescribed by the serverThe number's limits for today and its trust score (0–100): how many messages, and first messages to new people, can still be sent.
check_numberdescribed by the serverCheck whether a phone number is on WhatsApp before sending. phone — digits with country code (77011234567). Limit: 200 checks per day per number.
get_statusdescribed by the serverSummary: numbers (connected or not) and balance.
add_numberchanges datadescribed by the serverAdd a WhatsApp number to the account — PAID: 330 ₸ (KZT) per day; the first day is charged immediately (refunded automatically if the human deletes the number within 10 minutes without linking WhatsApp), then daily until the number is…
connect_numberchanges datadescribed by the serverLink WhatsApp to a wapi number (or reconnect it if it dropped). With phone — a pairing code like ABCD-EFGH: the human opens WhatsApp → Linked devices → Link a device → "Link with phone number instead" and enters the code (the most…
set_webhookchanges datadescribed by the serverSet the webhook URL (https) where wapi immediately sends events: message (incoming, with a lead field; location, contact cards and polls parsed into wapi.details), message.out (sent by a person from the phone), message.ack…
get_analyticsdescribed by the serverEnd-to-end WhatsApp attribution: ad spend → leads → sales for a period — shows which ad, link or website brought each WhatsApp chat and whether it turned into a sale. group — row breakdown: campaign (campaigns), adset (ad sets), ad (ads)…
list_leadsseen, not called yetLeads — people who wrote to a WhatsApp number for the first time, each with the source that brought the chat: channel = ctwa (Meta click-to-WhatsApp ad: ad.ad_id, adset_id, campaign_id, ad text and link), link (tracking link wapi.kz/go/……
get_leaddescribed by the serverLead card: source (ad or link), first message, device, first reply (first_reply), stage and amount; conversation — the chat from the log: messages, incoming, outgoing, last_at, incoming_after_reply (how many messages the person sent after…
update_leadchanges datadescribed by the serverChange a lead's stage and/or record a sale. The lead — by id or by the customer's phone (their latest lead is used). Examples: "sale of 45,000 ₸ to customer 77011234567" → phone=77011234567, stage=won, value=45000; "they bought on…
list_linksseen, not called yetTracking links wapi.kz/go/<code>: where they lead (from — number id, phone), first message text, default utm, number of clicks and leads. url — the link for ads, bio, QR; snippet — script code for a website (routes the site's WhatsApp…
create_linkchanges datadescribed by the serverCreate a tracking link to a WhatsApp number — to see which ad, post or website brought each chat: the person taps → lands in WhatsApp with prefilled text that carries an invisible click marker — and their first message is matched to the…
get_link_clicksdescribed by the serverTracking link clicks (newest first): time, IP, geo (country, region, city), device, OS, browser or app (Instagram, TikTok…), source, language, visitor (visitor; returning — clicked before), utm, fbclid/gclid, website page, and the lead…
get_link_statsdescribed by the serverTracking link click stats for a period — which sources, campaigns and pages bring WhatsApp chats and sales: clicks, unique clicks, visitors and returning visitors, how many reached a WhatsApp chat (leads, conversion %), sales and revenue…
set_number_leadschanges datadescribed by the serverTurn counting of organic leads on a number on or off: when on, every new contact who came without an ad or link becomes a lead (organic). Existing contacts do not become leads. Leads from ads and links are always counted.
list_ad_accountsseen, not called yetConnected Meta ad accounts (Facebook / Instagram ads) and the connections to them. For each ad account: id (for the account parameter), external_id (act_…), name, currency, enabled — whether it is synced, synced_at — when data was last…
list_ad_objectsseen, not called yetCampaigns, ad sets and ads from connected Meta ad accounts (data from the last sync, hourly). Fields: external_id (the Meta id — for set_ad_status / set_ad_budget), level (campaign | adset | ad), name, status (what is set: ACTIVE /…
set_ad_statuschanges datadescribed by the serverPause or launch a campaign, ad set or ad in Meta. status: PAUSED — pause (the ad stops showing and spending money), ACTIVE — launch (the ad starts spending the client's budget). Pausing a campaign stops all its ad sets and ads. The change…
set_ad_budgetchanges datadescribed by the serverChange the daily (daily_budget) or lifetime (lifetime_budget) budget of a campaign or ad set in Meta. WARNING: this spends the client's money — raising the budget immediately increases spend charged to their card/account in Meta. Change…
sync_adschanges datadescribed by the serverFetch fresh data from Meta now: campaigns, ad sets, ads, budgets and stats for today and yesterday (on the first run of the day — for 30 days). Normally this happens automatically (structure hourly, stats every 30 minutes) — call it if…
list_ad_changesseen, not called yetLog of ad changes made through wapi (dashboard, API, MCP, CLI): what changed (field: status, daily_budget, lifetime_budget), before → after (budget in the ad account currency), who (by), whether Meta accepted it (ok) and its response…
How we checked it
Should an agent connect it
- On Nov 23, 2026 we called its read-only tools following a fixed scenario, and only 0 of 1 steps returned what the check expects.
Once connected
- Keep approval on for send_message: they delete, send or pay without saying so.
- send_message, edit_message, delete_message, create_export, add_number change data without a sign-in: anyone with the address can call them.
Said by rules from the measurements above. The likely first call is a model's pick from the tool list; read its description before relying on it.
Measured daily
- INITE MCP score51 of 100answers 100 · definitions 99 · context 75 · use 0 · connects 100 · lowered until one of our scenario runs passes · lowered by the warning signs below
- Checked by calling it0 of 1 steps passedlatest run Nov 23, 2026, read-only calls only
- Answered100% of days8 of 8 daily checks
- Median first answer917 ms
- Space in an agent's context≈ 7,493 tokensthe definitions of all its tools (33), which an agent carries on every turn
- Tool definitionsA · 99 of 100
- Typed results0 of 33 toolsdeclared outputSchema: results come typed, read once
- Parameters without a description: in 1 of 33
Worth a look
- Tools that delete, send or pay, marked as not destructive: send_message
- Tools that change data, on a server that answers without a sign-in: send_message, edit_message, delete_message, create_export, add_number
A program checks the server once a day: initialize and tools/list, no model. Tokens are the definitions' length at about four characters a token. The grade averages six checks of every tool's name, description, schema and annotations; it says how well the tools are described, not whether they work. The score weighs what was measured and nothing else: answering (25%), doing the product's job (25%), definitions (20%), context (10%), use (10%) and how readily a client connects (10%). A part that was not measured is left out, and a hidden instruction caps the score at 40. The state of vendors' MCP servers: method and numbers →
Grade A, 98 of 100, checked 2026-11-29 · 18 of 18 checks judged · 1 failed
- Stateanswerschecked 2026-11-25
- Tools33
- Server calls itselfwapi.kz
- Server version0.5.0
- Protocol version2025-06-18
On 2026-11-25 the server answered initialize and tools/list without a sign-in. First answer in 676 ms.
- Registry namekz.wapi/whatsappverified in the MCP registry
The registry name sits under wapi.kz. The registry only lets a publisher use that namespace after proving control of the domain through DNS or HTTP.
OpenAPI spec
51 paths, read 2026-11-23. Open the spec ↗
Each line is something a program found when it went looking: the registry entry, the server's own answer, a spec that parses. A missing line means we did not find it, not that it does not exist.
Before we count this visit
Analytics and ad measurement tell us which pages and which of our ads do their job: Google Analytics and Google Ads, the Meta pixel, Yandex Metrica, and one first-party id of our own. Nothing is stored until you answer, and declining changes nothing about the site.