Meta Business Messaging
mcp-meta
用于 Meta Business Messaging 的 MCP 服务器: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 build配置(环境变量)
所有变量均为可选——也可在工具参数中通过 access_token / phone_number_id 等传入。环境变量仅作为默认值。
环境变量 | 用途 |
| Graph API 版本(默认 |
| 基础 URL(默认 |
| 由 |
| 握手令牌( |
| Cloud API 的 Bearer 令牌 |
| 默认发件人号码 ID |
| WABA ID(模板、电话号码) |
| Facebook 主页令牌 |
| 默认主页 ID |
| 与 IG 关联的主页令牌(默认:与 |
| IG 用户 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/client.ts中的graphRequest()在src/tools/<produto>.ts中创建工具在
src/index.ts中注册(已通过registerXxxTools自动完成)
许可证
MIT。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
60+ Meta Ads tools for AI agents: audits, campaign management, audiences and CAPI tracking.
Boost posts and launch community growth campaigns from your AI assistant. OAuth, credit-billed.
Connect any AI agent to 11+ social platforms: schedule, publish & track posts via hosted MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/vertexdevs-hq/mcp-meta'
If you have feedback or need assistance with the MCP directory API, please join our Discord server