Messaging MCP
MCP server letting AI assistants read and reply to WhatsApp, Instagram, Messenger
Messaging MCP is an open-source MCP server for communication. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted, API
- Runs
- Locally
- What it can do
- Can change data (2 tools)
- Version
- 0.1.0
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add messaging-mcp --env WHATSAPP_ACCESS_TOKEN='<WHATSAPP_ACCESS_TOKEN>' --env META_APP_SECRET='<META_APP_SECRET>' --env META_VERIFY_TOKEN='<META_VERIFY_TOKEN>' --env MESSENGER_PAGE_ACCESS_TOKEN='<MESSENGER_PAGE_ACCESS_TOKEN>' --env INSTAGRAM_ACCESS_TOKEN='<INSTAGRAM_ACCESS_TOKEN>' --env TELEGRAM_BOT_TOKEN='<TELEGRAM_BOT_TOKEN>' -- npx -y messaging-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"messaging-mcp": {
"command": "npx",
"args": [
"-y",
"messaging-mcp"
],
"env": {
"WHATSAPP_ACCESS_TOKEN": "<WHATSAPP_ACCESS_TOKEN>",
"META_APP_SECRET": "<META_APP_SECRET>",
"META_VERIFY_TOKEN": "<META_VERIFY_TOKEN>",
"MESSENGER_PAGE_ACCESS_TOKEN": "<MESSENGER_PAGE_ACCESS_TOKEN>",
"INSTAGRAM_ACCESS_TOKEN": "<INSTAGRAM_ACCESS_TOKEN>",
"TELEGRAM_BOT_TOKEN": "<TELEGRAM_BOT_TOKEN>"
}
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"messaging-mcp": {
"command": "npx",
"args": [
"-y",
"messaging-mcp"
],
"env": {
"WHATSAPP_ACCESS_TOKEN": "<WHATSAPP_ACCESS_TOKEN>",
"META_APP_SECRET": "<META_APP_SECRET>",
"META_VERIFY_TOKEN": "<META_VERIFY_TOKEN>",
"MESSENGER_PAGE_ACCESS_TOKEN": "<MESSENGER_PAGE_ACCESS_TOKEN>",
"INSTAGRAM_ACCESS_TOKEN": "<INSTAGRAM_ACCESS_TOKEN>",
"TELEGRAM_BOT_TOKEN": "<TELEGRAM_BOT_TOKEN>"
}
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"messaging-mcp": {
"command": "npx",
"args": [
"-y",
"messaging-mcp"
],
"env": {
"WHATSAPP_ACCESS_TOKEN": "<WHATSAPP_ACCESS_TOKEN>",
"META_APP_SECRET": "<META_APP_SECRET>",
"META_VERIFY_TOKEN": "<META_VERIFY_TOKEN>",
"MESSENGER_PAGE_ACCESS_TOKEN": "<MESSENGER_PAGE_ACCESS_TOKEN>",
"INSTAGRAM_ACCESS_TOKEN": "<INSTAGRAM_ACCESS_TOKEN>",
"TELEGRAM_BOT_TOKEN": "<TELEGRAM_BOT_TOKEN>"
}
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"messaging-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"messaging-mcp"
],
"env": {
"WHATSAPP_ACCESS_TOKEN": "<WHATSAPP_ACCESS_TOKEN>",
"META_APP_SECRET": "<META_APP_SECRET>",
"META_VERIFY_TOKEN": "<META_VERIFY_TOKEN>",
"MESSENGER_PAGE_ACCESS_TOKEN": "<MESSENGER_PAGE_ACCESS_TOKEN>",
"INSTAGRAM_ACCESS_TOKEN": "<INSTAGRAM_ACCESS_TOKEN>",
"TELEGRAM_BOT_TOKEN": "<TELEGRAM_BOT_TOKEN>"
}
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add messaging-mcp --env WHATSAPP_ACCESS_TOKEN='<WHATSAPP_ACCESS_TOKEN>' --env META_APP_SECRET='<META_APP_SECRET>' --env META_VERIFY_TOKEN='<META_VERIFY_TOKEN>' --env MESSENGER_PAGE_ACCESS_TOKEN='<MESSENGER_PAGE_ACCESS_TOKEN>' --env INSTAGRAM_ACCESS_TOKEN='<INSTAGRAM_ACCESS_TOKEN>' --env TELEGRAM_BOT_TOKEN='<TELEGRAM_BOT_TOKEN>' -- npx -y messaging-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.messaging-mcp]
command = "npx"
args = ["-y", "messaging-mcp"]
env = { WHATSAPP_ACCESS_TOKEN = "<WHATSAPP_ACCESS_TOKEN>", META_APP_SECRET = "<META_APP_SECRET>", META_VERIFY_TOKEN = "<META_VERIFY_TOKEN>", MESSENGER_PAGE_ACCESS_TOKEN = "<MESSENGER_PAGE_ACCESS_TOKEN>", INSTAGRAM_ACCESS_TOKEN = "<INSTAGRAM_ACCESS_TOKEN>", TELEGRAM_BOT_TOKEN = "<TELEGRAM_BOT_TOKEN>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"messaging-mcp": {
"command": "npx",
"args": [
"-y",
"messaging-mcp"
],
"env": {
"WHATSAPP_ACCESS_TOKEN": "<WHATSAPP_ACCESS_TOKEN>",
"META_APP_SECRET": "<META_APP_SECRET>",
"META_VERIFY_TOKEN": "<META_VERIFY_TOKEN>",
"MESSENGER_PAGE_ACCESS_TOKEN": "<MESSENGER_PAGE_ACCESS_TOKEN>",
"INSTAGRAM_ACCESS_TOKEN": "<INSTAGRAM_ACCESS_TOKEN>",
"TELEGRAM_BOT_TOKEN": "<TELEGRAM_BOT_TOKEN>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "messaging-mcp": { "command": "npx", "args": [ "-y", "messaging-mcp" ], "env": { "WHATSAPP_ACCESS_TOKEN": "<WHATSAPP_ACCESS_TOKEN>", "META_APP_SECRET": "<META_APP_SECRET>", "META_VERIFY_TOKEN": "<META_VERIFY_TOKEN>", "MESSENGER_PAGE_ACCESS_TOKEN": "<MESSENGER_PAGE_ACCESS_TOKEN>", "INSTAGRAM_ACCESS_TOKEN": "<INSTAGRAM_ACCESS_TOKEN>", "TELEGRAM_BOT_TOKEN": "<TELEGRAM_BOT_TOKEN>" } } } }Or run: gemini mcp add -s user -e WHATSAPP_ACCESS_TOKEN='<WHATSAPP_ACCESS_TOKEN>' -e META_APP_SECRET='<META_APP_SECRET>' -e META_VERIFY_TOKEN='<META_VERIFY_TOKEN>' -e MESSENGER_PAGE_ACCESS_TOKEN='<MESSENGER_PAGE_ACCESS_TOKEN>' -e INSTAGRAM_ACCESS_TOKEN='<INSTAGRAM_ACCESS_TOKEN>' -e TELEGRAM_BOT_TOKEN='<TELEGRAM_BOT_TOKEN>' messaging-mcp npx -- -y messaging-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "messaging-mcp": { "command": "npx", "args": [ "-y", "messaging-mcp" ], "env": { "WHATSAPP_ACCESS_TOKEN": "<WHATSAPP_ACCESS_TOKEN>", "META_APP_SECRET": "<META_APP_SECRET>", "META_VERIFY_TOKEN": "<META_VERIFY_TOKEN>", "MESSENGER_PAGE_ACCESS_TOKEN": "<MESSENGER_PAGE_ACCESS_TOKEN>", "INSTAGRAM_ACCESS_TOKEN": "<INSTAGRAM_ACCESS_TOKEN>", "TELEGRAM_BOT_TOKEN": "<TELEGRAM_BOT_TOKEN>" } } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "messaging-mcp": { "command": "npx", "args": [ "-y", "messaging-mcp" ], "env": { "WHATSAPP_ACCESS_TOKEN": "<WHATSAPP_ACCESS_TOKEN>", "META_APP_SECRET": "<META_APP_SECRET>", "META_VERIFY_TOKEN": "<META_VERIFY_TOKEN>", "MESSENGER_PAGE_ACCESS_TOKEN": "<MESSENGER_PAGE_ACCESS_TOKEN>", "INSTAGRAM_ACCESS_TOKEN": "<INSTAGRAM_ACCESS_TOKEN>", "TELEGRAM_BOT_TOKEN": "<TELEGRAM_BOT_TOKEN>" } } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "messaging-mcp": { "command": "npx", "args": [ "-y", "messaging-mcp" ], "env": { "WHATSAPP_ACCESS_TOKEN": "<WHATSAPP_ACCESS_TOKEN>", "META_APP_SECRET": "<META_APP_SECRET>", "META_VERIFY_TOKEN": "<META_VERIFY_TOKEN>", "MESSENGER_PAGE_ACCESS_TOKEN": "<MESSENGER_PAGE_ACCESS_TOKEN>", "INSTAGRAM_ACCESS_TOKEN": "<INSTAGRAM_ACCESS_TOKEN>", "TELEGRAM_BOT_TOKEN": "<TELEGRAM_BOT_TOKEN>" } } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "messaging-mcp": { "command": "npx", "args": [ "-y", "messaging-mcp" ], "env": { "WHATSAPP_ACCESS_TOKEN": "<WHATSAPP_ACCESS_TOKEN>", "META_APP_SECRET": "<META_APP_SECRET>", "META_VERIFY_TOKEN": "<META_VERIFY_TOKEN>", "MESSENGER_PAGE_ACCESS_TOKEN": "<MESSENGER_PAGE_ACCESS_TOKEN>", "INSTAGRAM_ACCESS_TOKEN": "<INSTAGRAM_ACCESS_TOKEN>", "TELEGRAM_BOT_TOKEN": "<TELEGRAM_BOT_TOKEN>" } } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "messaging-mcp": { "command": "npx", "args": [ "-y", "messaging-mcp" ], "env": { "WHATSAPP_ACCESS_TOKEN": "<WHATSAPP_ACCESS_TOKEN>", "META_APP_SECRET": "<META_APP_SECRET>", "META_VERIFY_TOKEN": "<META_VERIFY_TOKEN>", "MESSENGER_PAGE_ACCESS_TOKEN": "<MESSENGER_PAGE_ACCESS_TOKEN>", "INSTAGRAM_ACCESS_TOKEN": "<INSTAGRAM_ACCESS_TOKEN>", "TELEGRAM_BOT_TOKEN": "<TELEGRAM_BOT_TOKEN>" } } } }The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.
Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "messaging-mcp": { "command": "npx", "args": [ "-y", "messaging-mcp" ], "env": { "WHATSAPP_ACCESS_TOKEN": "<WHATSAPP_ACCESS_TOKEN>", "META_APP_SECRET": "<META_APP_SECRET>", "META_VERIFY_TOKEN": "<META_VERIFY_TOKEN>", "MESSENGER_PAGE_ACCESS_TOKEN": "<MESSENGER_PAGE_ACCESS_TOKEN>", "INSTAGRAM_ACCESS_TOKEN": "<INSTAGRAM_ACCESS_TOKEN>", "TELEGRAM_BOT_TOKEN": "<TELEGRAM_BOT_TOKEN>" } } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "messaging-mcp": { "command": "npx", "args": [ "-y", "messaging-mcp" ], "env": { "WHATSAPP_ACCESS_TOKEN": "<WHATSAPP_ACCESS_TOKEN>", "META_APP_SECRET": "<META_APP_SECRET>", "META_VERIFY_TOKEN": "<META_VERIFY_TOKEN>", "MESSENGER_PAGE_ACCESS_TOKEN": "<MESSENGER_PAGE_ACCESS_TOKEN>", "INSTAGRAM_ACCESS_TOKEN": "<INSTAGRAM_ACCESS_TOKEN>", "TELEGRAM_BOT_TOKEN": "<TELEGRAM_BOT_TOKEN>" } } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
WHATSAPP_ACCESS_TOKENWhatsApp Cloud API access token.WHATSAPP_PHONE_NUMBER_IDWhatsApp phone number id that sends messages.WHATSAPP_BUSINESS_ACCOUNT_IDWhatsApp Business Account id, needed to list templates.META_APP_SECRETMeta app secret, used to verify webhook signatures.META_VERIFY_TOKENToken you choose for the Meta webhook subscribe check.MESSENGER_PAGE_ACCESS_TOKENFacebook Page access token for Messenger.MESSENGER_PAGE_IDFacebook Page id for Messenger.INSTAGRAM_ACCESS_TOKENInstagram access token (Instagram API with Instagram Login).INSTAGRAM_ACCOUNT_IDInstagram professional account id.TELEGRAM_BOT_TOKENTelegram bot token from BotFather.MESSAGING_MCP_DBPath of the local message database. Optional.
About Messaging MCP
Messaging MCP connects an AI assistant to customer conversations on WhatsApp, Instagram, Messenger and Telegram through each platform's official API. Incoming messages are stored in a local SQLite database, so the assistant can list unread chats, search history and draft or send replies from one place.
Before a reply goes out, the server checks the platform's messaging window and channel length limits. If a WhatsApp, Messenger or Instagram reply would be rejected, nothing is sent and the assistant receives the reason along with alternatives, such as an approved WhatsApp template. A read-only mode disables the send tools entirely, and a demo mode runs on sample data without any keys.
It suits support and sales teams who run business accounts on these channels and want an assistant to handle the inbox under clear rules. Setup requires each channel's own credentials, and Meta webhooks need a publicly reachable endpoint for WhatsApp, Instagram and Messenger traffic.
Tools this server provides (10)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 2 of 10 tools change data; 1 name doesn't say.
From the server's own tool labels and tool names; not verified by us.
- list_channelsName suggests: reads
- Shows which channels are on, the account behind each, and demo and read-only state.
- list_conversationsName suggests: reads
- Lists conversations across channels, newest first, with filters for channel, unread and search.
- get_conversationName suggests: reads
- Returns messages of one conversation and whether the user can message now.
- search_messagesName suggests: reads
- Case-insensitive search over stored messages.
- can_message
- Runs the messaging rules check without sending.
- send_messageName suggests: changes
- Sends a text reply after checking length limits and the reply window.
- send_whatsapp_templateName suggests: changes
- Sends an approved WhatsApp template, including outside the 24-hour window.
- list_whatsapp_templatesName suggests: reads
- Lists approved WhatsApp templates with parameter counts.
- mark_readName suggests: reads
- Clears the unread counter and sends a read receipt where supported.
- get_rulesName suggests: reads
- Returns source-cited channel rules for windows, tags and limits.
What it does
- Unified conversation inbox
- Lists chats from four channels in one newest-first view with unread and search filters.
- Reply window enforcement
- Checks the 24-hour window and length limits before sending and explains any refusal.
- WhatsApp template sending
- Sends approved message templates when a free-form reply is no longer allowed.
- Read-only mode
- Removes send tools from the server so an assistant can only read conversations.
- Local message storage
- Keeps stored messages in a local SQLite file, with no telemetry beyond configured platform APIs.
- Signed webhook intake
- Accepts Meta webhooks only with a valid signature and polls Telegram for updates.
Good for
- Asking an assistant which customers are waiting for a reply across channels
- Drafting and sending replies to WhatsApp customers without breaking the 24-hour rule
- Searching past customer messages on Instagram, Messenger or Telegram
- Trying out the inbox workflow with demo data before connecting live accounts
- Running a read-only assistant that summarises open conversations without sending
Pricing
Open source
Open source under MIT; self-hosted. A separate hosted version is offered by the vendor.
Messaging MCP FAQ
Does Messaging MCP use unofficial WhatsApp Web access?
No. It is built on the WhatsApp Cloud API, the Messenger and Instagram Send APIs and the Telegram Bot API.
Can I try Messaging MCP without API keys?
Yes. Running the server with the --demo flag uses sample conversations, and sends in demo mode are marked and never leave the machine.
Where are messages stored?
In a local SQLite file on your machine. Only the platform APIs you configure receive network traffic.
Which Node.js version is required?
Node.js 22.13 or newer.
Is X (Twitter) supported?
Not in version 0.1, because its messaging API is paid.
Is Messaging MCP free?
Yes. Messaging MCP is open source, so you can use and self-host it for free.
How do I add Messaging MCP to Claude Code?
Run this command in your terminal: claude mcp add messaging-mcp --env WHATSAPP_ACCESS_TOKEN='<WHATSAPP_ACCESS_TOKEN>' --env META_APP_SECRET='<META_APP_SECRET>' --env META_VERIFY_TOKEN='<META_VERIFY_TOKEN>' --env MESSENGER_PAGE_ACCESS_TOKEN='<MESSENGER_PAGE_ACCESS_TOKEN>' --env INSTAGRAM_ACCESS_TOKEN='<INSTAGRAM_ACCESS_TOKEN>' --env TELEGRAM_BOT_TOKEN='<TELEGRAM_BOT_TOKEN>' -- npx -y messaging-mcp
What are the best alternatives to Messaging MCP?
The closest alternatives to Messaging MCP are WhatsApp MCP, WhatsApp MCP by TimelinesAI, InboxMCP, Whatsapp MCP and ChatPush.
Where this comes from
- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.
