
tkhattar14/whatsapp-business-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
WhatsApp Business Cloud API를 위한 MCP 서버. 메시징, 템플릿, 미디어, 분석, 흐름 및 웹훅을위한 50 + 도구.
개요
공식 WhatsApp Business Cloud API의 보안 강화 모델 Context Protocol (MCP) 서버. Claude, Cursor, 또는 WhatsApp Business에 MCP 호환 클라이언트와 같은 AI 조수를 연결합니다. - 8개 모듈에 걸쳐 - 메시징, 템플릿, 미디어, 분석, 흐름, 웹훅, 비즈니스 프로파일, 계정 관리 - - API 키 오, 제한 속도, 입력 유효성 검사, webhook 서명 검증, 오류 위생, 경로 트래버럴 보호 - - - 모든 호출은 graph.facebook.com, unofficial/third-party APIs로 이동 - - stdio (클래드 데스크톱 같은 MCP 클라이언트 용) 및 HTTP (REST API 액세스 용) - CORS, 보안 환경 설정, 환경 설정 가능 환경 설정, 환경 설정, 환경 설정, 환경 설정, 환경 설정, 환경 설정, 환경 설정 - HTTP 엔드포인트 (X-API-Key 헤더) - (META APP SECRET를 통해HMAC-SHA256) - (IP, in-memory 토큰 버킷 당 10의 req/sec) - - - - 전화 번호 형식, 메시지 길이 제한 - - - 오류 응답으로 분류 된 토큰 및 민감한 URL - - - - 허용 된 디렉토리에 제한 된 미디어 업로드 - X-Content-Type-Options, X-Frame-Options, ...
개요(AI 번역)
공식 WhatsApp Business Cloud API의 보안 강화 모델 Context Protocol (MCP) 서버. Claude, Cursor, 또는 WhatsApp Business에 MCP 호환 클라이언트와 같은 AI 조수를 연결합니다.
특징
- ** 50 + 도구 ** 8 개 이상의 모듈 - 메시징, 템플릿, 미디어, 분석, 흐름, 웹훅, 비즈니스 프로파일, 계정 관리 -Security-first — API key auth, rate limiting, 입력 유효성 검사, webhook 서명 검증, 오류 sanitization, 경로 traversal 보호
- ** 공식 메타 API 만 ** - 모든 통화는
graph.facebook.com, unofficial/third-party APIs로 이동 - ** 2개의 수송 모드 ** — stdio (Clarude Desktop와 MCP 클라이언트를 위해) 및 HTTP (REST API 접근을 위해) -Production-ready — CORS 제어, 보안 헤더, 환경 변수를 통해 구성 가능
도구 개요
| 모듈 | 도구 | 설명 |
|---|---|---|
| Messaging | 문자, 미디어, 대화형, 위치, 연락처, 반응, 회신 | 모든 WhatsApp 메시지 유형 |
| Templates | 만들기, list, send, delete, get status | 전체 템플릿 라이프사이클 관리 |
| Media | 업로드, 다운로드, 삭제, 정보를 얻기 | 이미지, 비디오, 오디오, 문서 처리 |
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
WhatsApp Business MCP Server
A security-hardened Model Context Protocol (MCP) server for the official WhatsApp Business Cloud API. Connect AI assistants like Claude, Cursor, or any MCP-compatible client to WhatsApp Business.
Features
- 50+ tools across 8 modules — messaging, templates, media, analytics, flows, webhooks, business profile, account management
- Security-first — API key auth, rate limiting, input validation, webhook signature verification, error sanitization, path traversal protection
- Official Meta API only — all calls go to
graph.facebook.com, no unofficial/third-party APIs - Two transport modes — stdio (for MCP clients like Claude Desktop) and HTTP (for REST API access)
- Production-ready — CORS controls, security headers, configurable via environment variables
Tools Overview
| Module | Tools | Description |
|---|---|---|
| Messaging | Send text, media, interactive, location, contact, reaction, reply | All WhatsApp message types |
| Templates | Create, list, send, delete, get status | Full template lifecycle management |
| Media | Upload, download, delete, get info | Image, video, audio, document handling |
| Analytics | Conversation analytics, quality rating, messaging limits | Business insights |
| Flows | Create, list, send flow messages | WhatsApp interactive experiences |
| Webhooks | Subscribe, unsubscribe, manage webhook fields | Event management |
| Business Profile | Get/update profile, phone numbers | Business identity management |
| Business Account | WABA management, phone operations | Account administration |
Quick Start
1. Clone and install
git clone https://github.com/tkhattar14/whatsapp-business-mcp.git
cd whatsapp-business-mcp
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
2. Configure
cp .env.example .env
# Edit .env with your Meta WhatsApp Business API credentials
# Get them from: https://developers.facebook.com/
3. Run (stdio mode — for MCP clients)
source .env && python main.py
4. Run (HTTP mode — for REST API)
source .env && python main_http.py
MCP Client Configuration
Claude Desktop / Cursor
{
"mcpServers": {
"whatsapp": {
"command": "python",
"args": ["/path/to/whatsapp-business-mcp/main.py"],
"env": {
"META_ACCESS_TOKEN": "your_token",
"META_PHONE_NUMBER_ID": "your_phone_id"
}
}
}
}
mcporter (OpenClaw)
mcporter add whatsapp-business --stdio "python /path/to/main.py"
Environment Variables
| Variable | Required | Description |
|---|---|---|
META_ACCESS_TOKEN |
Yes | Meta API bearer token |
META_PHONE_NUMBER_ID |
Yes | WhatsApp sender phone number ID |
META_BUSINESS_ACCOUNT_ID |
Recommended | Business account ID |
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"whatsapp": {
"command": "python",
"args": ["/path/to/whatsapp-business-mcp/main.py"],
"env": {
"META_ACCESS_TOKEN": "your_token",
"META_PHONE_NUMBER_ID": "your_phone_id"
}
}
}
}