Repository avatar
Communication
v1.0.0
active

api-supp

io.github.elishosh687-spec/api-supp

Link a WhatsApp number by QR code and use it from Claude or ChatGPT via MCP.

Documentation

wa-bridge-mcp

A small Model Context Protocol (MCP) server that lets an AI assistant (Claude Desktop, Claude Code, etc.) read and send WhatsApp messages through the api-supp WhatsApp bridge.

It's an HTTP client only — every operation goes through the bridge's REST API, so there's no local database, no QR pairing here, and nothing sensitive stored on your machine. You authenticate with a tenant token that scopes the MCP to your own WhatsApp account.

This is a fork of lharries/whatsapp-mcp (MIT), re-worked to talk to a hosted bridge over HTTP. See NOTICE.

What you need

  • Python 3.11+ (and uv recommended)
  • Your bridge URL (default https://api.api-supp.com/v1) and a tenant token (wat_…) — provided to you during onboarding.

Install

git clone https://github.com/yehudashtein/wa-bridge-mcp.git
cd wa-bridge-mcp
uv sync        # or: pip install -e .

Configure

The MCP reads its settings from environment variables:

VariableRequiredDefaultNotes
WHATSAPP_BRIDGE_TOKEN✅—Your tenant bearer (wat_…) — keep it secret
WHATSAPP_BRIDGE_URL—https://api.api-supp.com/v1Bridge base URL (include /v1)
WHATSAPP_HTTP_TIMEOUT—30Per-request timeout (seconds)

Copy .env.example → .env for local runs, or set them in your MCP client config.

Claude Desktop / Claude Code

Add to your MCP config (e.g. claude_desktop_config.json or .claude.json):

{
  "mcpServers": {
    "whatsapp": {
      "command": "uv",
      "args": ["--directory", "/absolute/path/to/wa-bridge-mcp", "run", "main.py"],
      "env": {
        "WHATSAPP_BRIDGE_URL": "https://api.api-supp.com/v1",
        "WHATSAPP_BRIDGE_TOKEN": "wat_your_tenant_token_here"
      }
    }
  }
}

Restart the client and the WhatsApp tools appear.

Tools

ToolWhat it does
search_contactsSearch your contacts by name or number
list_chatsList chats (with last message)
get_chat / get_contact_chats / get_direct_chat_by_contactLook up chats
list_messagesRead messages with filters (chat, time, sender, media, …)
get_message_contextMessages around a specific one
get_last_interactionMost recent message with a contact
send_messageSend a text message
send_file / send_audio_messageSend media / voice notes
download_mediaDownload media from a message
sync_historyAsk the bridge to re-sync history

Notes

  • The token scopes you to your own WhatsApp account; it can't see other users' data.
  • Non-ASCII text (Hebrew/Arabic/emoji) sends fine — the bridge handles encoding.
  • Nothing is stored locally; the MCP is a thin HTTP client.

License

MIT — see LICENSE and NOTICE (derivative of lharries/whatsapp-mcp).

No installation packages available.