Skip to content
MCP server
Registry

messaging-mcp MCP Server

WhatsApp, Instagram, Messenger and Telegram inbox for AI assistants on the official APIs.

messaging-mcp scores 66 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 10 tools. Filed under Communication. GitHub shows 0 stars. Package registries report about 291 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by pinlyxMITTypeScript0 stars
Trust score
66Good
Trust score 66 of 100, Good

Good trust

66 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 66 comes from

22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity0 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 0 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "pinlyx-messaging-mcp": {      "command": "npx",      "args": [        "-y",        "messaging-mcp@0.1.0"      ],      "env": {        "WHATSAPP_ACCESS_TOKEN": "YOUR_WHATSAPP_ACCESS_TOKEN",        "WHATSAPP_PHONE_NUMBER_ID": "",        "WHATSAPP_BUSINESS_ACCOUNT_ID": "",        "META_APP_SECRET": "YOUR_META_APP_SECRET",        "META_VERIFY_TOKEN": "YOUR_META_VERIFY_TOKEN",        "MESSENGER_PAGE_ACCESS_TOKEN": "YOUR_MESSENGER_PAGE_ACCESS_TOKEN",        "MESSENGER_PAGE_ID": "",        "INSTAGRAM_ACCESS_TOKEN": "YOUR_INSTAGRAM_ACCESS_TOKEN",        "INSTAGRAM_ACCOUNT_ID": "",        "TELEGRAM_BOT_TOKEN": "YOUR_TELEGRAM_BOT_TOKEN",        "MESSAGING_MCP_DB": ""      }    }  }}

Environment variables

NameRequiredNotes
WHATSAPP_ACCESS_TOKENSecretOptionalWhatsApp Cloud API access token.
WHATSAPP_PHONE_NUMBER_IDOptionalWhatsApp phone number id that sends messages.
WHATSAPP_BUSINESS_ACCOUNT_IDOptionalWhatsApp Business Account id, needed to list templates.
META_APP_SECRETSecretOptionalMeta app secret, used to verify webhook signatures.
META_VERIFY_TOKENSecretOptionalToken you choose for the Meta webhook subscribe check.
MESSENGER_PAGE_ACCESS_TOKENSecretOptionalFacebook Page access token for Messenger.
MESSENGER_PAGE_IDOptionalFacebook Page id for Messenger.
INSTAGRAM_ACCESS_TOKENSecretOptionalInstagram access token (Instagram API with Instagram Login).
INSTAGRAM_ACCOUNT_IDOptionalInstagram professional account id.
TELEGRAM_BOT_TOKENSecretOptionalTelegram bot token from BotFather.
MESSAGING_MCP_DBOptionalPath of the local message database. Optional.

Tools10Tool docs quality grade D

All capabilities
  • The rules check on its own, without sending.

  • Messages of one conversation plus the "can I message now" summary: window state, end time, alternatives.

  • Source-cited channel rules: windows, tags, limits, rate limits.

  • Which channels are on, the account behind each, demo and read-only state.

  • Conversations across channels, newest first. Filter by channel, unread, search; each row says whether you can reply now.

  • Approved templates of the WhatsApp Business Account, with parameter counts.

  • Clear the unread counter and, where supported, send a read receipt.

  • Case-insensitive search over stored messages.

  • Text reply. Checks length limits and the reply window first; refuses with the reason and alternatives when the platform would reject it.

  • Send an approved template (works outside the 24 hour window).

About

messaging-mcp

npm CI License: MIT MCP Registry

messaging-mcp

Let your AI assistant read and answer your customers' WhatsApp, Instagram, Messenger and Telegram conversations through the official APIs, with a self-hosted MCP server that stops a reply the platform would reject before it is sent.

Why

The most popular WhatsApp MCP server on GitHub drives the unofficial WhatsApp Web protocol: your number can be banned, and the project has not been maintained since mid 2025. Business messaging has official APIs, and they come with rules the assistant has to respect:

  • Official APIs only. WhatsApp Cloud API, the Messenger and Instagram Send APIs, and the Telegram Bot API. No scraping, no session hijacking, no ban risk from protocol abuse.
  • Four channels in one server. One conversation list, one search, one set of tools.
  • Rule aware. WhatsApp, Messenger and Instagram only let you reply freely inside a 24 hour window. send_message checks the window (using messaging-rules) and the channel limits first. If the reply would be rejected, nothing is sent and the assistant gets the reason, when the window closed and what is allowed instead (on WhatsApp: an approved template).
  • Tested and offline-testable. The test suite runs without network access and without keys, and --demo lets you try everything with sample data.

Try it in 60 seconds (no keys)

Add this to your MCP client configuration (Claude Desktop: claude_desktop_config.json, Cursor: .cursor/mcp.json):

{
  "mcpServers": {
    "messaging": {
      "command": "npx",
      "args": ["-y", "messaging-mcp", "--demo"]
    }
  }
}

Claude Code: claude mcp add messaging -- npx -y messaging-mcp --demo

Restart the client and ask: "Which customers are waiting for an answer?" then "Reply to the German customer on WhatsApp." The demo has nine conversations on all four channels in several languages. One WhatsApp window is closed on purpose, so you see the refusal and the template suggestion. Sends in demo mode are marked demo and never leave your machine.

You can also try it without a client: npx -y messaging-mcp --demo starts the server on stdio, and npm run smoke (from a checkout) connects a client and calls a few tools.

Requires Node.js 22.13 or newer (it uses the built-in node:sqlite; on older versions the server falls back to a JSON file).

Connect your channels

A channel turns on when its variables are set. Channels you do not configure stay off, silently.

ChannelVariablesGuide
WhatsAppWHATSAPP_ACCESS_TOKEN, WHATSAPP_PHONE_NUMBER_ID, WHATSAPP_BUSINESS_ACCOUNT_ID (only for template listing)docs/setup-whatsapp.md
MessengerMESSENGER_PAGE_ACCESS_TOKEN, MESSENGER_PAGE_IDdocs/setup-instagram-messenger.md
InstagramINSTAGRAM_ACCESS_TOKEN, INSTAGRAM_ACCOUNT_IDdocs/setup-instagram-messenger.md
TelegramTELEGRAM_BOT_TOKENdocs/setup-telegram.md
Meta webhooksMETA_APP_SECRET, META_VERIFY_TOKENthe guides above
StorageMESSAGING_MCP_DB (default: your user data folder)

Example (Claude Desktop):

{
  "mcpServers": {
    "messaging": {
      "command": "npx",
      "args": ["-y", "messaging-mcp"],
      "env": {
        "TELEGRAM_BOT_TOKEN": "123456:replace-me",
        "WHATSAPP_ACCESS_TOKEN": "replace-me",
        "WHATSAPP_PHONE_NUMBER_ID": "replace-me"
      }
    }
  }
}

More examples are in examples/.

How messages get in

The platforms push (Meta) or hold (Telegram) incoming messages; this server stores them locally so the assistant can read them.

  • Telegram: long polling with getUpdates, on by default. No public URL needed. Use --telegram-webhook https://your.host if you prefer a webhook (needs --webhook-port).
  • WhatsApp, Instagram, Messenger: Meta calls a webhook. Start with --webhook-port 8787 and expose POST/GET /webhooks/meta through a tunnel or reverse proxy. Every POST must carry a valid X-Hub-Signature-256 signature (META_APP_SECRET), otherwise it is rejected with 401. The receiver listens on 127.0.0.1 unless you pass --webhook-host.
  • Messages are captured only while a process is running. An MCP client starts the server when you open it, so for continuous capture run one always-on process with --no-stdio --webhook-port 8787 and point your MCP clients at the same database with --no-ingest (SQLite handles the sharing).

Tools

ToolWhat it does
list_channelsWhich channels are on, the account behind each, demo and read-only state.
list_conversationsConversations across channels, newest first. Filter by channel, unread, search; each row says whether you can reply now.
get_conversationMessages of one conversation plus the "can I message now" summary: window state, end time, alternatives.
search_messagesCase-insensitive search over stored messages.
can_messageThe rules check on its own, without sending.
send_messageText reply. Checks length limits and the reply window first; refuses with the reason and alternatives when the platform would reject it.
send_whatsapp_templateSend an approved template (works outside the 24 hour window).
list_whatsapp_templatesApproved templates of the WhatsApp Business Account, with parameter counts.
mark_readClear the unread counter and, where supported, send a read receipt.
get_rulesSource-cited channel rules: windows, tags, limits, rate limits.

Conversation = (channel, other party id): phone number on WhatsApp, PSID on Messenger, IGSID on Instagram, chat id on Telegram. All tools take plain JSON and validate it with a schema; platform errors come back as readable errors with a code, a hint and retryAfterSec where the platform gave one.

Safety

  • Read-only mode: --read-only does not register send_message or send_whatsapp_template at all, and mark_read then only clears the local counter.
  • Secrets stay in the environment. Tokens are read from environment variables only, sent as Authorization headers, and scrubbed from error messages. Nothing is written to the database or the logs. (Telegram's API puts the bot token in the request path; it is redacted from every error.)
  • Data stays on your machine. Messages are stored in a local SQLite file. The only network traffic is to the platform APIs you configured. There is no telemetry.
  • No automatic retries on sends. A failed or rate limited send is reported, not repeated, so a customer never gets a duplicate. (Telegram's explicit retry_after on a 429 is honored once.)
  • Webhook requests without a valid signature (Meta) or secret (Telegram) are rejected before any parsing.

An assistant can message real customers. Review what it wants to send, use --read-only while you evaluate, and follow the platforms' policies (opt-in for marketing templates, no spam).

Limits

Honest list of what v0.1 does not do or has not verified:

  • X (Twitter) is not supported. Its messaging API is paid; out of scope for v0.1.
  • Text only. Incoming media is stored as attachment metadata (type, id, mime); there is no media download and no sending of images, documents, buttons or lists yet.
  • WhatsApp templates: body text parameters only. Templates with header or button parameters, and named parameters, are not supported. Free-form replies work inside the 24 hour window.
  • Only conversations this server has seen. There is no history import. If a customer wrote before the server was running, the server does not know that, and its window check errs on the side of refusing.
  • Telegram: a bot can only write to people who started it. Updates are kept by Telegram for about 24 hours, so a short downtime is recovered when polling resumes. Edited messages are not tracked.
  • Instagram: the send request follows the Instagram API with Instagram Login (graph.instagram.com). Whether messaging_type and tag are accepted on that host for the human agent tag could not be confirmed on the public documentation page we could read; that case is best-effort. Using Facebook Login tokens instead is possible with INSTAGRAM_API_HOST=https://graph.facebook.com but untested here.
  • Platform error mapping (window closed, rate limited, permission, template) covers the common codes; anything else is passed through verbatim.
  • Platform rules change. Windows, tags and limits come from messaging-rules, which cites the official page for each value. Run get_rules to see the verification date. Meta retired several message tags in 2026; the rules data reflects that.
  • Graph API version is pinned in one constant (v27.0, the version shown in Meta's documentation when this was written).
  • Meta features that need review (App Review, business verification, display name approval, messaging limits for outbound templates) are your responsibility; the setup guides list what to expect.
  • The 24 hour rule is only one of the policies. WhatsApp quality ratings, opt-in requirements and template categories are not checked by this server.

If you do not want to host this yourself, Pinlyx is the hosted version of the same idea.

Related packages

  • unified-message: normalizes Telegram, WhatsApp, Instagram, Messenger and X webhook bodies and verifies their signatures. This server uses it for everything incoming.
  • messaging-rules: source-cited messaging windows, tags and limits as data, a library and a small MCP server. This server uses it before every send.

Development

npm install
npm run build
npm test          # offline, uses recorded webhook fixtures and a mocked fetch
npm run smoke     # starts the built server in --demo mode and calls a few tools

See CONTRIBUTING.md. Changes are listed in CHANGELOG.md.

License

MIT, see LICENSE.

Built and maintained by Pinlyx, the omnichannel inbox and AI agent for Telegram, WhatsApp, Instagram, Messenger, X, email and live chat.

Frequently asked questions

What is messaging-mcp MCP Server?

WhatsApp, Instagram, Messenger and Telegram inbox for AI assistants on the official APIs.

How do I install messaging-mcp MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. messaging-mcp MCP Server runs locally from the npm package messaging-mcp with the command npx -y messaging-mcp@0.1.0.

Is messaging-mcp MCP Server free and open source?

Yes. messaging-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does messaging-mcp MCP Server support remote (HTTP) connections?

No remote endpoint is listed for messaging-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does messaging-mcp MCP Server provide?

messaging-mcp MCP Server provides 10 tools, including can_message, get_conversation, get_rules, and list_channels. See the full tool list for descriptions and parameters.

How is messaging-mcp MCP Server's trust score calculated?

messaging-mcp MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server