WhatsApp MCP Server

Communicationstdio
代码仓库

Community MCP server that connects a personal WhatsApp account to AI assistants. Using the WhatsApp multi-device web API, it lets agents search and read your messages and contacts and send messages, including media. Messages are stored locally in SQLite and only shared with the model when the agent accesses them through tools, keeping data on your machine.

连接

将此配置添加到 .claude/mcp.json

{
  "mcpServers": {
    "whatsapp": {
      "command": "npx",
      "args": []
    }
  }
}

工具 (3)

search_messages

Search local WhatsApp message history by text, contact, or chat.

{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "query": {
      "type": "string",
      "description": "Text to search for"
    },
    "contact": {
      "type": "string",
      "description": "Optional contact or chat to scope the search"
    }
  }
}

send_message

Send a WhatsApp message to a contact or group.

{
  "type": "object",
  "required": [
    "recipient",
    "message"
  ],
  "properties": {
    "message": {
      "type": "string",
      "description": "Message text to send"
    },
    "recipient": {
      "type": "string",
      "description": "Phone number or chat ID of the recipient"
    }
  }
}

list_contacts

List WhatsApp contacts available in the local database.

{
  "type": "object",
  "properties": {}
}

资源

此服务器未提供任何资源。

提示词

此服务器未提供任何提示词。

服务器信息

作者
Luke Harries (@lharries)
代码仓库
https://github.com/lharries/whatsapp-mcp
星标
0
最后更新
2026年7月12日