
seejux/waha-whatsapp-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
AI 조수가 WAHA (WhatsApp HTTP API) 플랫폼을 통해 WhatsApp과 상호 작용 할 수있는 모델 콘텍스 프로토콜 (MCP) 서버.
개요
AI 조수가 WAHA (WhatsApp HTTP API) 플랫폼을 통해 WhatsApp과 상호 작용 할 수있는 모델 콘텍스 프로토콜 (MCP) 서버. - : 최근 WhatsApp 채팅 개요 - : 읽음, 전송 및 표시 메시지 - : 캐시 인식 리소스로 WhatsApp 데이터 액세스 - : MCP 클라이언트와 전체 호환성 (스트 다이 교통) 1. Clone 이 저장소 2. 종속성 설치: 3. WAHA API 연결을 구성하십시오: 그런 다음 WAHA 인스턴스 세부 사항으로 .env를 편집합니다. - WAHA BASE URL: WAHA 서버 URL(예: [T0]]] - WAHA API KEY: 인증을위한 WAHA API 키 - WAHA SESSION: WhatsApp 세션 이름 (기본값: 기본값) MCP Inspector는 MCP 서버가 상호 작용적으로 테스트하는 웹 기반 도구입니다. 이것은: 1. WAHA MCP 서버 2. 시작 MCP Inspector 웹 UI 3 출시 브라우저를 자동으로 엽니다. inspector를 사용하여: - 모든 도구를 대화식으로 테스트 - 도구 스키마 보기 - request/response data - Debug 도구 호출
개요(AI 번역)
AI 조수가 WAHA (WhatsApp HTTP API) 플랫폼을 통해 WhatsApp과 상호 작용 할 수있는 모델 콘텍스 프로토콜 (MCP) 서버.
특징
-Chat Management: 최근 WhatsApp 채팅 개요 -Message Operations: 읽기, 전송 및 표시 메시지
- MCP Resources: 캐싱과 컨텍스트웨어 리소스로 WhatsApp 데이터 접근
- MCP 통합: MCP 클라이언트와 전체 호환성 (스트디오 전송)
설치
-
Clone 이 저장소
-
의존성 설치:
-
WAHA API 연결 구성:
다음 편집 .env 당신의 WAHA 인스턴스 세부 사항.
구성
.env에 필요한 환경 변수:
WAHA_BASE_URL: WAHA 서버 URL (예: [T3]])WAHA_API_KEY: WAHA API 키 인증WAHA_SESSION: WhatsApp 세션 이름 (기본:default)
개발
프로젝트 구축
자동차 로드와 개발 모드에서 실행
MCP 검사를 가진 시험
MCP Inspector는 MCP 서버가 상호 작용적으로 테스트하는 웹 기반 도구입니다.
이것은:
- WAHA MCP 서버 시작
- MCP Inspector 웹 UI 출시
- 브라우저를 자동적으로 여십시오
검사기를 사용하여:
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
WAHA MCP Server
A Model Context Protocol (MCP) server that enables AI assistants to interact with WhatsApp through the WAHA (WhatsApp HTTP API) platform.
Features
- Chat Management: Get overview of recent WhatsApp chats
- Message Operations: Retrieve, send, and mark messages as read
- MCP Resources: Access WhatsApp data as context-aware resources with caching
- MCP Integration: Full compatibility with MCP clients (stdio transport)
Installation
-
Clone this repository
-
Install dependencies:
npm install -
Configure your WAHA API connection:
cp .env.example .envThen edit
.envwith your WAHA instance details.
Configuration
Required environment variables in .env:
WAHA_BASE_URL: Your WAHA server URL (e.g.,http://localhost:3000)WAHA_API_KEY: Your WAHA API key for authenticationWAHA_SESSION: WhatsApp session name (default:default)
Development
Build the project
npm run build
Run in development mode with auto-reload
npm run dev
Test with MCP Inspector
The MCP Inspector is a web-based tool to test your MCP server interactively:
npm run inspector
This will:
- Start the WAHA MCP server
- Launch the MCP Inspector web UI
- Open your browser automatically
Use the inspector to:
- Test all tools interactively
- View tool schemas
- See request/response data
- Debug tool calls
Run in production
npm start
Usage with Claude Desktop
Add this to your Claude Desktop MCP configuration:
Windows:
{
"mcpServers": {
"waha": {
"command": "node",
"args": ["C:\\Users\\YourUsername\\path\\to\\waha\\dist\\index.js"],
"env": {
"WAHA_BASE_URL": "http://localhost:3000",
"WAHA_API_KEY": "your-api-key-here",
"WAHA_SESSION": "default"
}
}
}
}
Mac/Linux:
{
"mcpServers": {
"waha": {
"command": "node",
"args": ["/absolute/path/to/waha-mcp-server/dist/index.js"],
"env": {
"WAHA_BASE_URL": "http://localhost:3000",
"WAHA_API_KEY": "your-api-key-here",
"WAHA_SESSION": "default"
}
}
}
}
Note: Windows users should use double backslashes (
\\) in paths.
Available Tools
Chat Management
| Tool | Description |
|---|---|
waha_get_chats |
Get overview of recent WhatsApp chats |
waha_get_messages |
Get messages from a specific chat |
waha_mark_chat_read |
Mark messages in a chat as read |
waha_mark_chat_unread |
Mark a chat as unread |
waha_clear_chat_messages |
Clear all messages from a chat (destructive) |
waha_delete_chat |
Delete a chat completely (destructive) |
waha_archive_chat |
Archive a chat |
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"waha": {
"command": "node",
"args": ["C:\\Users\\YourUsername\\path\\to\\waha\\dist\\index.js"],
"env": {
"WAHA_BASE_URL": "http://localhost:3000",
"WAHA_API_KEY": "your-api-key-here",
"WAHA_SESSION": "default"
}
}
}
}