WhatsApp MCP Server logo

WhatsApp MCP Server

by krusleung

A Multi-Channel Platform server for WhatsApp integration that allows you to send and receive messages programmatically through a REST API.

View on GitHub

Last updated: N/A

What is WhatsApp MCP Server?

The WhatsApp MCP Server is a Node.js application that acts as a Multi-Channel Platform server for WhatsApp. It provides a REST API to programmatically send and receive WhatsApp messages, manage contacts, and access chat history.

How to use WhatsApp MCP Server?

To use the server, clone the repository, install dependencies using npm install, configure the .env file, and start the server using npm run dev or npm start. Authenticate by scanning the QR code displayed in the console with your WhatsApp mobile app. Use the provided API endpoints to send messages, manage contacts, and retrieve chat history.

Key features of WhatsApp MCP Server

  • WhatsApp connection management with QR code authentication

  • Send and receive text messages

  • Send media messages (images, documents, etc.)

  • Contact management

  • Chat history

  • Session persistence

  • REST API for integration with other applications

Use cases of WhatsApp MCP Server

  • Automated WhatsApp messaging for customer support

  • Sending notifications and alerts via WhatsApp

  • Integrating WhatsApp with other business applications

  • Building chatbots for WhatsApp

  • Programmatically managing WhatsApp contacts and chats

FAQ from WhatsApp MCP Server

What is the purpose of this server?

It allows programmatic access to WhatsApp functionality via a REST API.

What are the prerequisites for running this server?

Node.js (v14 or higher), MongoDB (optional but recommended), and a WhatsApp account.

How do I authenticate with WhatsApp?

Scan the QR code displayed in the console with your WhatsApp mobile app.

What kind of messages can I send?

You can send text and media messages (images, documents, etc.).

Is MongoDB required?

No, but it's recommended for persistent message storage.