Skip to main content
Glama
tarun101

WhatsApp Read Agent MCP Server

by tarun101

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
WHATSAPP_DATA_DIRYesAbsolute path to the data directory containing the WhatsApp archive.
WHATSAPP_MEDIA_DIRYesAbsolute path to the media directory containing downloaded attachments.
WHATSAPP_ATTACHMENT_ALLOWLISTNoOptional comma-separated list of JIDs allowed for attachment access. Empty string allows all.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_sync_statusA

Report the local archive status: whether a device is linked, when it last synced, and how many chats/messages are archived. Reads nothing from WhatsApp.

list_chatsA

List archived chats (1:1 and group), ordered deterministically by name. Optionally filter by a name substring. Paginate with the returned cursor.

find_chats_by_nameA

Find chats whose resolved name matches (case-insensitive substring). Use this to locate a named contact or group, e.g. before reading their full history.

get_historyA

Read a deterministic page of a chat's message history. direction "forward" reads oldest→newest; "backward" scrolls up (newest→oldest). Returned messages are always chronological; pass the cursor back to continue. Iterate until hasMore is false for complete readback.

get_messageA

Fetch a single archived message by chat JID and message id, with exact timestamp and content.

list_attachmentsA

List archived messages in a chat that carry an attachment (image/video/audio/document/sticker), with metadata and whether bytes are downloaded. Deterministic forward pagination.

get_attachmentA

Return an approved attachment's locally-archived bytes. Requires approved: true for the specific message (and passes the operator allowlist, if configured). Never fetches from WhatsApp — only surfaces bytes the collector already downloaded.

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/tarun101/whatsapp-mcp'

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