# Messaging MCP

> Messaging MCP is an open-source MCP server for communication. MCP server letting AI assistants read and reply to WhatsApp, Instagram, Messenger. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted, API, WhatsApp, Telegram
- **Repository:** https://github.com/pinlyx/messaging-mcp
- **MCP Registry name:** com.pinlyx/messaging-mcp
- **Categories:** [communication](https://ai-powered.com/categories/communication)
- **Listing updated:** 2026-11-27

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
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
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```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>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```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.

### Cursor (~/.cursor/mcp.json)

```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.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

```sh
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-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```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>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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 (~/.config/devin/mcp_config.json)

```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 (cline_mcp_settings.json)

```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 (Zed settings.json)

```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 (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```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>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```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 (~/.kiro/settings/mcp.json)

```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.

### Other clients (your client's MCP settings (most use this shape))

```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>"
      }
    }
  }
}
```

## Tools

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_channels` (name suggests: reads): Shows which channels are on, the account behind each, and demo and read-only state.
- `list_conversations` (name suggests: reads): Lists conversations across channels, newest first, with filters for channel, unread and search.
- `get_conversation` (name suggests: reads): Returns messages of one conversation and whether the user can message now.
- `search_messages` (name suggests: reads): Case-insensitive search over stored messages.
- `can_message`: Runs the messaging rules check without sending.
- `send_message` (name suggests: changes): Sends a text reply after checking length limits and the reply window.
- `send_whatsapp_template` (name suggests: changes): Sends an approved WhatsApp template, including outside the 24-hour window.
- `list_whatsapp_templates` (name suggests: reads): Lists approved WhatsApp templates with parameter counts.
- `mark_read` (name suggests: reads): Clears the unread counter and sends a read receipt where supported.
- `get_rules` (name suggests: reads): Returns source-cited channel rules for windows, tags and limits.

## 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.

## Alternatives

- [WhatsApp MCP](https://ai-powered.com/mcp/whatsapp-mcp-3): WhatsApp MCP is an MCP server for communication.
- [WhatsApp MCP by TimelinesAI](https://ai-powered.com/mcp/whatsapp-mcp-by-timelinesai): WhatsApp MCP by TimelinesAI is an MCP server for communication.
- [InboxMCP](https://ai-powered.com/mcp/inboxmcp): InboxMCP is an MCP server for communication.
- [Whatsapp MCP](https://ai-powered.com/mcp/whatsapp-mcp): Whatsapp MCP is an open-source MCP server for communication.
- [ChatPush](https://ai-powered.com/mcp/chatpush): ChatPush is an open-source MCP server for communication.
- [WhatsApp MCP server (wacli)](https://ai-powered.com/mcp/whatsapp-mcp-server-wacli): WhatsApp MCP server (wacli) is an open-source MCP server for communication.
- [SetSmart](https://ai-powered.com/mcp/setsmart): SetSmart is a freemium MCP server for communication.
- [WhatsApp Connect](https://ai-powered.com/mcp/whatsapp-connect): WhatsApp Connect is an open-source MCP server for communication.

---
Source: https://ai-powered.com/mcp/messaging-mcp
