Skip to main content
Glama
Meta Business Messaging

Meta Business Messaging

mcp-meta

MCP server for Meta Business Messaging: WhatsApp Cloud API, Messenger Platform, Instagram Messaging, and Graph API Webhooks.

Covers ~55 tools grouped into 4 products. All endpoints point to graph.facebook.com/{version} (default v22.0, override via META_API_VERSION).

Installation

cd /Users/barboza/Solutions/mcp-meta
npm install
npm run build

Related MCP server: Meta MCP Server

Configuration (environment variables)

All are optional — they can also be passed per call via access_token / phone_number_id / etc. in the tool args. Env only serves as default.

Env

Usage

META_API_VERSION

Graph API version (default v22.0)

META_BASE_URL

Base URL (default https://graph.facebook.com)

META_APP_SECRET

Used by webhook_validate_signature

META_VERIFY_TOKEN

Handshake token (hub.verify_token)

WHATSAPP_ACCESS_TOKEN

Bearer for Cloud API

WHATSAPP_PHONE_NUMBER_ID

Default sender phone number ID

WHATSAPP_BUSINESS_ACCOUNT_ID

WABA ID (templates, phone numbers)

MESSENGER_PAGE_ACCESS_TOKEN

Facebook Page token

MESSENGER_PAGE_ID

Default Page ID

INSTAGRAM_PAGE_ACCESS_TOKEN

Token of the Page linked to IG (default: same as MESSENGER_PAGE_ACCESS_TOKEN)

INSTAGRAM_USER_ID

IG user ID, if applicable

Usage via Claude Code / MCP client

Add to ~/.claude.json (or equivalent):

{
  "mcpServers": {
    "meta": {
      "command": "node",
      "args": ["/Users/barboza/Solutions/mcp-meta/dist/index.js"],
      "env": {
        "WHATSAPP_ACCESS_TOKEN": "EAAJB...",
        "WHATSAPP_PHONE_NUMBER_ID": "1234567890",
        "WHATSAPP_BUSINESS_ACCOUNT_ID": "987654321",
        "MESSENGER_PAGE_ACCESS_TOKEN": "EAAJB...",
        "MESSENGER_PAGE_ID": "1111111",
        "META_APP_SECRET": "...",
        "META_VERIFY_TOKEN": "..."
      }
    }
  }
}

For development (tsx, no build):

"args": ["--import", "tsx", "/Users/barboza/Solutions/mcp-meta/src/index.ts"]

Available tools

Discovery

  • meta_list_tools(product?) — lists all mapped tools and endpoints

  • Resource meta://reference/endpoints.json — complete catalog in JSON

WhatsApp Cloud API (~26 tools)

Messages: whatsapp_send_text, whatsapp_send_image, whatsapp_send_audio, whatsapp_send_video, whatsapp_send_document, whatsapp_send_sticker, whatsapp_send_location, whatsapp_send_contacts, whatsapp_send_reaction, whatsapp_send_template, whatsapp_send_reply_buttons, whatsapp_send_list, whatsapp_send_cta_url, whatsapp_send_flow

State: whatsapp_mark_as_read

Media: whatsapp_upload_media, whatsapp_get_media, whatsapp_delete_media

Templates: whatsapp_list_templates, whatsapp_create_template, whatsapp_delete_template

Profile/account: whatsapp_get_business_profile, whatsapp_update_business_profile, whatsapp_list_phone_numbers, whatsapp_register_phone_number, whatsapp_block_users

Messenger Platform (~14 tools)

messenger_send_text, messenger_send_quick_replies, messenger_send_attachment, messenger_send_generic_template, messenger_send_button_template, messenger_send_media_template, messenger_sender_action, messenger_upload_attachment, messenger_get_user_profile, messenger_list_conversations, messenger_set_profile, messenger_get_profile, messenger_pass_thread_control, messenger_take_thread_control

Instagram Messaging (~10 tools)

instagram_send_text, instagram_send_quick_replies, instagram_send_attachment, instagram_send_generic_template, instagram_send_button_template, instagram_send_product_template, instagram_private_reply_to_comment, instagram_react_to_message, instagram_get_user_profile, instagram_list_conversations

Webhooks (3 tools)

webhook_verify_challenge, webhook_validate_signature, webhook_parse_event

Source of truth

The file reference/endpoints.json is the canonical catalog of endpoints — generated by crawling the official documentation at developers.facebook.com/documentation/business-messaging/... and developers.facebook.com/docs/messenger-platform/....

Each tool wraps an endpoint from that catalog. To add support for a new endpoint:

  1. Add an entry to reference/endpoints.json

  2. Create the tool in src/tools/<product>.ts using graphRequest() from src/client.ts

  3. Register in src/index.ts (already automatic via registerXxxTools)

License

MIT.

Available Tools

54 tools
instagram_get_user_profileC

Fetch an IG user's public profile (name, username, profile_pic).

Inputs: igsid (required), fields, access_token.

instagram_list_conversationsC

List Instagram Direct conversations for the linked page.

Inputs: limit, page_id, access_token.

instagram_private_reply_to_commentC

Send a private DM in response to a public comment on an Instagram post/ad.

Inputs: text (required), comment_id (required), access_token.

instagram_react_to_messageC

React to (or unreact) a user's Instagram message with the heart reaction.

Inputs: igsid (required), message_id (required), action, reaction, +1 more.

instagram_send_attachmentC

Send an image, audio, video or file attachment on Instagram DM.

Inputs: url (required), type (required), igsid (required), access_token.

instagram_send_button_templateC

Send a text + buttons template on Instagram DM (max 3 buttons).

Inputs: text (required), igsid (required), buttons (required), access_token.

instagram_send_generic_templateC

Send a horizontally-scrolling generic template on Instagram (all elements must have image_url).

Inputs: igsid (required), elements (required), access_token.

instagram_send_product_templateC

Send a product card template (Instagram Shopping).

Inputs: igsid (required), product_retailer_ids (required), access_token.

instagram_send_quick_repliesC

Send text plus up to 13 quick-reply chips on Instagram DM.

Inputs: text (required), igsid (required), quick_replies (required), access_token.

instagram_send_textC

Send a plain text DM on Instagram.

Inputs: text (required), igsid (required), access_token.

messenger_get_profileC

Retrieve Messenger Profile fields currently configured on the page.

Inputs: fields, access_token.

messenger_get_user_profileB

Fetch a Messenger user's public profile fields (name, locale, profile pic).

Inputs: psid (required), fields, access_token.

messenger_list_conversationsC

List recent Messenger conversations for the page.

Inputs: limit, page_id, access_token.

messenger_pass_thread_controlB

Hand the conversation off to another app (e.g., human agent dashboard).

Inputs: psid (required), target_app_id (required), metadata, access_token.

messenger_send_attachmentC

Send a media attachment (image, audio, video or generic file).

Inputs: psid (required), type (required), url, page_id, +3 more.

messenger_send_button_templateC

Send a text message with up to 3 buttons.

Inputs: psid (required), text (required), buttons (required), page_id, +1 more.

messenger_sender_actionC

Show typing indicator or mark the conversation as seen.

Inputs: psid (required), action (required), page_id, access_token.

messenger_send_generic_templateC

Send a horizontally-scrolling generic template (carousel of cards).

Inputs: psid (required), elements (required), page_id, access_token.

messenger_send_media_templateC

Send a media template (image or video with up to 1 button).

Inputs: psid (required), media_type (required), url, buttons, +3 more.

messenger_send_quick_repliesB

Send a text message with up to 13 quick-reply chips.

Inputs: psid (required), text (required), quick_replies (required), page_id, +1 more.

messenger_send_textC

Send a plain text message on Messenger.

Inputs: psid (required), text (required), tag, page_id, +2 more.

messenger_set_profileC

Upsert one or more Messenger Profile fields (greeting, get_started, persistent_menu, ice_breakers, whitelisted_domains).

Inputs: greeting, get_started, access_token, ice_breakers, +2 more.

messenger_take_thread_controlC

Reclaim conversation control from another app.

Inputs: psid (required), metadata, access_token.

messenger_upload_attachmentB

Upload an asset to Messenger's attachment store so it can be reused (avoids fetching the URL every send).

Inputs: url (required), type (required), page_id, access_token.

meta_list_toolsA

List every tool exposed by this MCP grouped by product. Use before invoking to discover capabilities.

Inputs: product.

webhook_parse_eventA

Inspect a Meta webhook event body and describe which product/event types it contains.

Inputs: body (required).

webhook_validate_signatureC

HMAC-SHA256 verification for Meta POST webhooks (X-Hub-Signature-256 header).

Inputs: raw_body (required), signature (required), app_secret.

webhook_verify_challengeA

Validate Meta's GET webhook handshake. Returns {ok, response} where response is the hub.challenge echo to send back.

Inputs: mode (required), token (required), challenge (required), expected_token.

whatsapp_block_usersC

Block one or more users from messaging the business.

Inputs: users (required), access_token, phone_number_id.

whatsapp_create_templateC

Create a new message template (subject to Meta review).

Inputs: name (required), category (required), language (required), components (required), +2 more.

whatsapp_delete_mediaC

Delete a media asset by ID.

Inputs: media_id (required), access_token, phone_number_id.

whatsapp_delete_templateC

Delete a message template by name.

Inputs: name (required), waba_id, access_token.

whatsapp_get_business_profileB

Fetch the business profile for a phone number (about, description, websites, vertical).

Inputs: access_token, phone_number_id.

whatsapp_get_mediaA

Fetch a short-lived pre-signed URL for a media asset (from an incoming webhook or previous upload).

Inputs: media_id (required), access_token, phone_number_id.

whatsapp_list_phone_numbersB

List all phone numbers registered under a WhatsApp Business Account.

Inputs: waba_id, access_token.

whatsapp_list_templatesC

List all message templates for a WhatsApp Business Account.

Inputs: limit, status, waba_id, access_token.

whatsapp_mark_as_readB

Mark a received message as read, optionally with a typing indicator.

Inputs: message_id (required), access_token, phone_number_id, typing_indicator.

whatsapp_register_phone_numberA

Register a phone number with WhatsApp Cloud (required before sending).

Inputs: pin (required), access_token, phone_number_id.

whatsapp_send_audioA

Send a WhatsApp audio message. Provide either a previously uploaded media.id or a public HTTPS link.

Inputs: to (required), media (required), access_token, phone_number_id.

whatsapp_send_contactsB

Send one or more vCard-like contacts on WhatsApp.

Inputs: to (required), contacts (required), access_token, phone_number_id.

whatsapp_send_cta_urlC

Send an interactive call-to-action URL message (clickable button that opens a URL).

Inputs: to (required), url (required), body_text (required), display_text (required), +4 more.

whatsapp_send_documentB

Send a WhatsApp document message. Provide either a previously uploaded media.id or a public HTTPS link.

Inputs: to (required), media (required), access_token, phone_number_id.

whatsapp_send_flowB

Send a WhatsApp Flow (multi-step form) launcher button.

Inputs: to (required), flow_id (required), flow_cta (required), body_text (required), +8 more.

whatsapp_send_imageB

Send a WhatsApp image message. Provide either a previously uploaded media.id or a public HTTPS link.

Inputs: to (required), media (required), access_token, phone_number_id.

whatsapp_send_listC

Send an interactive list message (up to 10 rows across sections).

Inputs: to (required), sections (required), body_text (required), button_text (required), +4 more.

whatsapp_send_locationC

Send a location pin on WhatsApp.

Inputs: to (required), latitude (required), longitude (required), name, +3 more.

whatsapp_send_reactionA

React to a received WhatsApp message with an emoji (or remove by passing empty string).

Inputs: to (required), emoji (required), message_id (required), access_token, +1 more.

whatsapp_send_reply_buttonsC

Send an interactive message with up to 3 reply buttons.

Inputs: to (required), buttons (required), body_text (required), footer_text, +3 more.

whatsapp_send_stickerB

Send a WhatsApp sticker message. Provide either a previously uploaded media.id or a public HTTPS link.

Inputs: to (required), media (required), access_token, phone_number_id.

whatsapp_send_templateA

Send a pre-approved WhatsApp message template. This is the only message kind allowed outside the 24h customer-service window.

Inputs: to (required), template_name (required), components, access_token, +2 more.

whatsapp_send_textA

Send a plain WhatsApp text message. Only possible inside the 24h customer-service window (see whatsapp_send_template otherwise).

Inputs: to (required), body (required), preview_url, access_token, +2 more.

whatsapp_send_videoB

Send a WhatsApp video message. Provide either a previously uploaded media.id or a public HTTPS link.

Inputs: to (required), media (required), access_token, phone_number_id.

whatsapp_update_business_profileC

Update the business profile shown to customers in WhatsApp.

Inputs: about, email, address, vertical, +4 more.

whatsapp_upload_mediaB

Upload a media asset to WhatsApp servers so it can be reused in messages. Accepts either a public URL (downloaded server-side) or a base64-encoded payload.

Inputs: mime_type (required), base64, filename, source_url, +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 54 tools

    Disambiguation4/5

    Each tool pairs a channel prefix with a distinct message kind (text, image, template, list, flow, etc.), so selection is mostly mechanical. The main soft spots are the overlapping senders within a channel — e.g. messenger_send_generic_template vs messenger_send_media_template vs messenger_send_button_template, and whatsapp_send_text vs whatsapp_send_template — though descriptions do resolve the 24h-window case. meta_list_tools is a discovery aid rather than a competing capability, so it does not add confusion.

    Naming Consistency5/5

    Every tool follows the same snake_case pattern of <product>_<verb>_<object> (whatsapp_send_image, messenger_get_profile, instagram_list_conversations, webhook_validate_signature). Verb choices are drawn from a small, stable vocabulary (send, get, list, create, delete, update, upload, mark, register, react). No camelCase, no legacy variants, and the product prefix makes channel scope obvious at a glance.

    Tool Count2/5

    54 tools is heavy for a single MCP entry point, even covering three messaging products plus webhooks. The bulk comes from one-tool-per-message-type expansion (eight WhatsApp media/interactive senders, six Messenger senders, six Instagram senders), which could have been consolidated with a type parameter and a channel argument. The surface is defensible given meta_list_tools exists, but it is well past a comfortable scoping.

    Completeness3/5

    Outbound coverage is exhaustive — every message type, media lifecycle, templates, phone registration, profiles, and thread control. The notable gap is inbound: there is no way to fetch message history or read an incoming conversation (only messenger_list_conversations / instagram_list_conversations list threads, and WhatsApp has no equivalent at all). Template editing (only create/delete, no update) and webhook subscription management are also missing, which will dead-end some realistic agent workflows.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables reading and replying to direct messages, comments, and templates across Instagram, WhatsApp, and Messenger through official Meta Business APIs, with support for human handover and AI assistant controls.
      40 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Connects AI assistants to Meta's business platform — Facebook Pages, Instagram, Threads, Ads Manager, and Commerce — so users can publish and schedule content, moderate engagement, manage ad campaigns, and pull performance insights through natural language. It also supports catalog management, live broadcasts, competitor ad research, and token/permission diagnostics.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to send text, media, pre-approved templates, and interactive quick-reply buttons through Meta's official WhatsApp Business Cloud API, check phone quality ratings, list message templates, and call arbitrary Graph API endpoints.
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables AI agents to publish Facebook and Instagram content, send and moderate DMs with media and audio, handle reactions and quoted replies, run follow-gated comment funnels, configure interactive chat templates, and retrieve analytics across Facebook, Instagram, and Threads.
      35
      MIT