Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PYTHONPATHYesPath to the src directory of the project, required for the Python interpreter to find the whatsapp_mcp package.
WHATSAPP_HEADLESSNoWhether to run the browser in headless mode. Set to 'false' to show the browser window for scanning the QR code.false
WHATSAPP_PROFILE_DIRYesAbsolute path to the directory where the WhatsApp Web session profile (e.g., authentication data) will be persisted.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_auth_status

Open WhatsApp Web if needed and report whether login is complete.

wait_until_ready

Wait until WhatsApp Web is fully authenticated and ready for use.

list_recent_chats

List the most recent chats visible in WhatsApp Web.

send_message

Send a WhatsApp message using either a phone number or an existing chat name.

get_recent_messages

Read recent messages from a chat identified by either a phone number or a chat name.

shutdown_browser

Close the browser context and stop the WhatsApp automation session.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ekaksher/whatsapp-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server