WhatsApp Messaging API

v2.0.0
io.github.jevil25/whatsapp-messaging-api-mcp Checked 2 days ago Published 18 days ago

Send WhatsApp messages from Claude.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_sessions

List all WhatsApp sessions belonging to this API key.

create_session

Create a new WhatsApp session. Needs an account key (ak_live_...). Returns the session name and its own session token; pair it with get_qr_code next.

get_session_status

Get the current status of a session (STARTING, SCAN_QR_CODE, WORKING, FAILED, STOPPED).

ParameterTypeDescription
sessionstringSession name. Leave out when using a session token (ch_live_...).

get_qr_code

Get the QR code to authenticate a session by scanning with WhatsApp (Settings > Linked Devices).

ParameterTypeDescription
sessionstringSession name. Leave out when using a session token (ch_live_...).

request_pairing_code

Request an 8-digit pairing code as an alternative to scanning a QR code.

ParameterTypeDescription
phoneNumber *stringPhone number, 10-15 digits, no + or spaces
sessionstringSession name. Leave out when using a session token (ch_live_...).

check_contact_exists

Check whether a phone number is registered on WhatsApp before sending to it.

ParameterTypeDescription
phone *stringPhone number, 10-15 digits, no + or spaces
sessionstringSession name. Leave out when using a session token (ch_live_...).

send_text_message

Send a WhatsApp text message to a contact, group, or channel.

ParameterTypeDescription
chatId *stringRecipient: a phone number (e.g. "14155552671"), a group ID, or a channel ID
text *stringMessage text
sessionstringSession name. Leave out when using a session token (ch_live_...).

send_image

Send an image to a contact, group, or channel via a public URL.

ParameterTypeDescription
chatId *stringRecipient: phone number, group ID, or channel ID
imageUrl *stringPublic URL of the image
captionstringOptional caption
sessionstringSession name. Leave out when using a session token (ch_live_...).

send_file

Send a file (PDF, document, etc.) to a contact, group, or channel via a public URL.

ParameterTypeDescription
chatId *stringRecipient: phone number, group ID, or channel ID
fileUrl *stringPublic URL of the file
filenamestringFilename to display in the chat
sessionstringSession name. Leave out when using a session token (ch_live_...).