Evolution WhatsApp

v0.3.1
io.github.Ewertonslv/evolution-whatsapp-mcp Checked 8 hours ago Published 22 days ago

Send and read WhatsApp messages, send media and manage instances via the Evolution API.

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

send_text

Send a WhatsApp text message to a phone number. The message reaches a real person and can't be unsent. Don't call it twice for the same message: the second call sends a duplicate. Don't use it to test the connection, use connection_status for that.

ParameterTypeDescription
number *stringRecipient phone, e.g. "+55 11 99999-9999".
text *stringMessage body.
instancestringEvolution instance name. Falls back to EVOLUTION_DEFAULT_INSTANCE.

send_media

Send an image, video, document or audio via URL or base64. The file reaches a real person and can't be unsent. Don't call it again after a call that returned a result, or the file is sent twice.

ParameterTypeDescription
media *stringPublic URL or base64-encoded content.
mediatype *string
number *stringRecipient phone.
captionstring
delayintegerDelay in ms before sending.
fileNamestring
instancestringEvolution instance name. Falls back to EVOLUTION_DEFAULT_INSTANCE.
mimetypestringe.g. "image/png".

find_chats

List the WhatsApp chats/conversations on the instance. Returns at most `limit` chats (default 50, max 200).

ParameterTypeDescription
instancestringEvolution instance name. Falls back to EVOLUTION_DEFAULT_INSTANCE.
limitintegerMaximum items to return (1-200, default 50).

find_messages

Read the message history of a chat (by phone or JID).

ParameterTypeDescription
chat *stringPhone ("5511999999999") or JID ("...@s.whatsapp.net").
instancestringEvolution instance name. Falls back to EVOLUTION_DEFAULT_INSTANCE.
limitintegerMessages per page (1-200, default 50).
pageintegerPage number, starting at 1.

create_instance

Create a new Evolution instance (a WhatsApp connection slot). Don't call it for an instance that already exists: check with connection_status first, and use get_qrcode to link a number to an existing instance.

ParameterTypeDescription
instance *stringName for the new instance.

get_qrcode

Get the QR code (base64) to link a WhatsApp number to the instance.

ParameterTypeDescription
instancestringEvolution instance name. Falls back to EVOLUTION_DEFAULT_INSTANCE.

connection_status

Check whether the instance is connected (state "open").

ParameterTypeDescription
instancestringEvolution instance name. Falls back to EVOLUTION_DEFAULT_INSTANCE.

disconnect_instance

Log the WhatsApp number out of the instance. Reconnecting needs a person to scan a new QR code, so don't call it to fix a failed send or to restart the connection. Only call it when the user asks to disconnect.

ParameterTypeDescription
instancestringEvolution instance name. Falls back to EVOLUTION_DEFAULT_INSTANCE.

configure_webhook

Point the instance webhook to a public URL for inbound events. This replaces the current webhook, so whatever was receiving events stops receiving them. Don't call it unless the user gave you the URL.

ParameterTypeDescription
url *stringPublic HTTPS webhook URL (http only for localhost).
eventsarrayEvolution events. Defaults to ["MESSAGES_UPSERT","CONNECTION_UPDATE"].
instancestringEvolution instance name. Falls back to EVOLUTION_DEFAULT_INSTANCE.