Messaging Rules
Authoritative source-cited messaging window and draft checks for WhatsApp, Instagram, Messenger, Telegram, and X.
- CCM score
- 58 of 100
- tools
- 3
- transport
- STDIO
- last updated
- Nov 25, 2026
Own this MCP server? Claim it
What it does
- Exposes
check_messaging_windowfor sender, channel, and message-kind eligibility, plusvalidate_messagefor text, caption, attachment, and button limits - Reads from bundled channel rules with
get_channel_rules, returning full sections or a summary of all five channels, each value linked to its official source - Runs as a local stdio server with no network access or API keys, installed from GitHub or the npm package
messaging-rules - Designed for agents and developers who need to confirm a message is allowed before sending it
Tools
3 toolsPublic tool metadata for what this MCP can expose to an agent.
check_messaging_windowMay this sender send this kind of message on this channel now? Returns allowed, reason, windowEndsAt, conditions, allowedAlternatives, sources.
May this sender send this kind of message on this channel now? Returns allowed, reason, windowEndsAt, conditions, allowedAlternatives, sources.
No parameter schema in public metadata yet.
validate_messageDoes this draft fit the channel's text, caption, attachment, media size/type and button limits?
Does this draft fit the channel's text, caption, attachment, media size/type and button limits?
No parameter schema in public metadata yet.
get_channel_rulesThe full source-cited rules for a channel, one section of them, or a summary of all channels.
The full source-cited rules for a channel, one section of them, or a summary of all channels.
No parameter schema in public metadata yet.
Readme
messaging-rules
Can I message this person right now? Source-cited rules for WhatsApp, Instagram, Messenger, Telegram and X, as data, a library and an MCP tool.
canMessage({ channel: 'instagram', lastInboundAt: '2026-11-19T09:00:00Z', sender: 'bot' })
// { allowed: false,
// reason: 'The 24h standard messaging window closed at 2026-11-20T09:00:00.000Z. After it: Only HUMAN_AGENT tagged replies sent by a person, ...',
// allowedAlternatives: [], sources: ['https://developers.facebook.com/...'] }
Why
The rules that decide whether a business may message someone are spread across dozens of platform pages, change several times a year, and are mostly explained second-hand in vendor help centers, each covering a fragment. There is no machine-readable source, so developers and AI agents keep breaking them:
Details
- Repository
- github.com/pinlyx/messaging-rules
- Categories
- Email & Messaging, Security, Developer Tools
- Package
messaging-rules- Transport
- STDIO
- Registry
- MCP registry, active
Questions
Can an AI agent check if it may message a customer on WhatsApp now?
Yes, the messaging-rules MCP server has a check_messaging_window tool that tells whether a sender may send a given kind of message on a channel now. It returns allowed, reason, windowEndsAt, conditions, allowedAlternatives and sources, covering WhatsApp, Instagram, Messenger, Telegram and X.
What tools does the messaging-rules server give an agent?
It exposes three tools: check_messaging_window, validate_message and get_channel_rules. validate_message checks a draft against channel text, caption, attachment, media size and button limits, while get_channel_rules returns the source-cited rules for a channel.
Which category does messaging-rules belong to, and what leads it?
messaging-rules is listed under Email & Messaging on Claude Marketplaces, alongside Agent-Native Dispatch, WhatsApp, MoeMail, Slack and Commonly. It sets itself apart by answering whether a message may be sent now, using source-cited platform rules for five channels.
How do I add the messaging-rules MCP server to my client?
The npm package messaging-rules ships a stdio MCP server, so it runs through a stdio transport. Each rule it returns carries the official source URL it was read from.
More from pinlyx
All 2Similar to Messaging Rules
More Email & Messagingpostkeeppostkeep/postkeepHosted MCP server for Gmail, Outlook, iCloud, Fastmail & Yahoo Mail with per-workspace controls.
cartaregistada.pttalhabestaz/cartaregistada-mcpSend paper letters via CTT, Portugal's postal service: registered mail with proof, quote, track.
Transmitlytransmitly-io/mcpRead Transmitly inboxes, messages, domains, campaigns and usage; reply to inbox threads.
Zalo Business Reference (ZBS Template Message, OA)since98vn/vietnam-mcp-serversZBS (ZNS) message prices, OA plans, template checks, sending rules and Zalo error codes. Unofficial.
Voicent Mcpvoicentmcp/voicent-mcpLet AI agents place calls and texts, run campaigns and use the CRM on your own Voicent Gateway
Agent-Native Mailbuilderio/agent-native7.8K starsAgent-Native Superhuman - email client with keyboard shortcuts and AI triage