Meta Business Messaging
mcp-meta
MCP-сервер для Meta Business Messaging: WhatsApp Cloud API, Messenger Platform, Instagram Messaging и Graph API Webhooks.
Охватывает ~55 инструментов, сгруппированных в 4 продукта. Все конечные точки указывают на graph.facebook.com/{version} (по умолчанию v22.0, переопределяется через META_API_VERSION).
Установка
cd /Users/barboza/Solutions/mcp-meta
npm install
npm run buildRelated MCP server: Meta MCP Server
Конфигурация (переменные окружения)
Все они необязательны — их также можно передавать при вызове через access_token / phone_number_id / и т. д. в аргументах инструмента. Env служат только значениями по умолчанию.
Env | Назначение |
| Версия Graph API (по умолчанию |
| Базовый URL (по умолчанию |
| Используется |
| Токен рукопожатия ( |
| Bearer-токен для Cloud API |
| ID по умолчанию номера отправителя |
| WABA ID (шаблоны, номера телефонов) |
| Токен страницы FB |
| ID страницы по умолчанию |
| Токен страницы, связанной с IG (по умолчанию: тот же |
| IG user ID, если применимо |
Использование через Claude Code / MCP-клиент
Добавьте в ~/.claude.json (или эквивалент):
{
"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": "..."
}
}
}
}Для разработки (tsx, без сборки):
"args": ["--import", "tsx", "/Users/barboza/Solutions/mcp-meta/src/index.ts"]Доступные инструменты
Обнаружение
meta_list_tools(product?)— перечисляет все инструменты и сопоставленные конечные точкиРесурс
meta://reference/endpoints.json— полный каталог в JSON
WhatsApp Cloud API (~26 инструментов)
Сообщения: 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
Состояние: whatsapp_mark_as_read
Медиа: whatsapp_upload_media, whatsapp_get_media, whatsapp_delete_media
Шаблоны: whatsapp_list_templates, whatsapp_create_template, whatsapp_delete_template
Профиль/аккаунт: whatsapp_get_business_profile, whatsapp_update_business_profile, whatsapp_list_phone_numbers, whatsapp_register_phone_number, whatsapp_block_users
Messenger Platform (~14 инструментов)
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 инструментов)
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 инструмента)
webhook_verify_challenge, webhook_validate_signature, webhook_parse_event
Источник истины
Файл reference/endpoints.json — это канонический каталог конечных точек, созданный путём обхода официальной документации по адресам developers.facebook.com/documentation/business-messaging/... и developers.facebook.com/docs/messenger-platform/....
Каждый инструмент оборачивает одну конечную точку из этого каталога. Чтобы добавить поддержку новой конечной точки:
Добавить запись в
reference/endpoints.jsonСоздать инструмент в
src/tools/<produto>.ts, используяgraphRequest()изsrc/client.tsЗарегистрировать в
src/index.ts(уже автоматически черезregisterXxxTools)
Лицензия
MIT.
This server cannot be deployed
Maintenance
Related MCP Connectors
Instagram, WhatsApp and Messenger DMs through official Meta Business APIs.
Manage Meta apps: creation, configuration, webhooks, permissions, compliance, and App Review.
18Manage Instagram and Facebook automations, conversations, templates, and analytics with AI.
Messaging tools for AI agents: send messages, manage chats, groups and channels.
Related MCP Servers
- FlicenseBqualityNot gradedmaintenanceEnables AI assistants to interact with Instagram and Facebook accounts through their APIs, supporting messaging, post management, commenting, and content creation.14-
- AlicenseBqualityBmaintenanceConnects AI assistants to Meta's business platforms (Facebook, Instagram, Threads, Ads, Commerce) with 200 tools for publishing, engagement, analytics, ads, and commerce management.100237 npm47MIT
- AlicenseBqualityBmaintenanceEnables managing WhatsApp Business accounts through natural language, including sending messages, managing contacts, and querying conversations.6215 npmISC
- AlicenseNot gradedqualityBmaintenanceEnables 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.22 npmMIT