npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@akin01/wasche

v0.2.0

Published

WhatsApp MCP Server & Background Scheduler Sidecar

Readme

wasche

Official Model Context Protocol (MCP) server and background scheduler sidecar for WhatsApp.

npm version License MCP

Wasche provides an official MCP server and persistent background scheduler sidecar for WhatsApp, implemented natively in Rust. It enables AI agents (Claude, Cursor, Codex, Gemini, etc.) to safely orchestrate multiple WhatsApp phone numbers, query contacts, dispatch media, and execute high-durability broadcast campaigns protected by human behavioral emulation heuristics.


Quick Start (npx)

Run the server directly without manual installation:

npx @akin01/wasche

MCP Client Configuration

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "wasche": {
      "command": "npx",
      "args": ["-y", "@akin01/wasche"],
      "env": {
        "RUST_LOG": "info"
      }
    }
  }
}

Cursor & Codex

Add to your workspace .mcp.json:

{
  "mcpServers": {
    "wasche": {
      "command": "npx",
      "args": ["-y", "@akin01/wasche"],
      "env": {
        "RUST_LOG": "info"
      }
    }
  }
}

Key Features

  • 34 Native MCP Tools: Full programmatic control across Account Lifecycle (9), Direct Messaging (3), Contacts (3), Broadcast Campaigns (8), Queue & Media Attachments (7), Execution Runs & Logs (3), and Dashboard Monitoring (1).
  • Primary Daemon & Lightweight MCP Bridge: Multiple AI agent subagents or parallel sessions connect smoothly without TCP socket or SQLite lock collisions; secondary instances auto-proxy via lightweight REST bridge.
  • Multi-Sender Account Pooling & Load Balancing: Pool multiple WhatsApp numbers into a single campaign (account_id: "Grlossy, sales" or "all") with SIM-level typing mutual exclusion.
  • Anti-Ban Pacing Heuristics: Dynamic typing presence (Chatstate::Composing), configurable randomized inter-recipient jitter (e.g. 5–15s or 20–45s), single-flight transaction locks, pre-persisted stanza IDs, and 3-strike circuit breakers.
  • Embedded Web Dashboard (SPA): Modern SolidJS v2 + Vite 8 browser interface on http://127.0.0.1:3030 featuring live progress tracking, auto-opened run logs on re-run, instant campaign search, inline jitter delay editor, multi-account selection popover, and Photo/Video Studios.
  • Persistent Local State: SQLite storage for device session keys, recipient queues, contacts, and delivery audit metrics.
  • Cross-Platform Prebuilt Binaries: Automatic native binary resolution for Windows (x64), Linux (x64), and macOS (arm64 & x64).

Core MCP Tools Catalog (34 Tools)

| Category | Tool Name | Description | | :--- | :--- | :--- | | Account Lifecycle | whatsapp_list_accounts | Lists all registered accounts, connection states, phone numbers, and active indicator. | | | whatsapp_add_account | Registers a new account connection and begins pairing. | | | whatsapp_set_active_account | Switches the default active account for subsequent tool invocations. | | | whatsapp_remove_account | Shuts down account engine, drops connection, and removes local workspace. | | | whatsapp_rename_account | Renames an account identifier across databases and directories. | | | whatsapp_get_status | Checks WhatsApp connection status, paired phone number, and push name. | | | whatsapp_get_qr_code | Generates WhatsApp pairing QR code (raw, deep link, terminal ASCII, local HTML file). | | | whatsapp_pair_with_phone | Requests an 8-character pairing code to link phone without scanning QR. | | | whatsapp_reset_account_pairing | Clears local pairing session and keys for an account, preparing for re-pairing. | | Direct Messaging & Media | whatsapp_send_direct | Sends an immediate 1:1 text, inline media, or document attachment. | | | whatsapp_send_media | Sends an inline photo, video, or audio file (max 16 MB) with optional caption. | | | whatsapp_send_document | Sends a raw uncompressed file attachment (PDF, spreadsheet, raw 4K video up to 100 MB). | | Contacts & Address Book | whatsapp_list_contacts | Searches local address book contacts by name or phone number. | | | whatsapp_sync_contacts | Triggers Peer AppState contact sync (CriticalUnblockLow) to fetch address book names. | | | whatsapp_get_contact_avatar | Fetches high-resolution contact profile avatar picture URL. | | Broadcasts & Pacing | whatsapp_schedule_broadcast | Schedules or launches an anti-ban broadcast campaign with multi-sender pooling. | | | whatsapp_list_broadcasts | Lists broadcast campaigns filtered by status or sender account. | | | whatsapp_get_broadcast_status | Retrieves real-time delivery statistics, progress counts, and logs. | | | whatsapp_control_broadcast | Controls an active campaign (pause, resume, abort, delete, rerun, retry_failed). | | | whatsapp_delete_broadcast | Permanently deletes a campaign and its recipient queue from SQLite. | | | whatsapp_rename_campaign | Renames an existing broadcast campaign. | | | whatsapp_update_campaign_template | Updates the message template of an existing campaign. | | | whatsapp_update_campaign_delay_range| Updates anti-ban jitter delay range (minimum and maximum seconds between messages). | | Queue & Attachments | whatsapp_list_campaign_recipients | Lists recipient queue with search by name/number and status filter (queued, sent, failed). | | | whatsapp_add_campaign_recipients | Adds target recipient contacts with optional custom variable values to a campaign. | | | whatsapp_delete_campaign_recipients | Removes target recipient contacts from a broadcast campaign queue. | | | whatsapp_resend_recipient | Requeues an individual recipient that previously failed or was aborted. | | | whatsapp_attach_campaign_media | Attaches a photo, video, or document to an existing campaign. | | | whatsapp_remove_campaign_attachments| Removes specific or all attachments from an existing broadcast campaign. | | | whatsapp_set_campaign_attachment_mode| Toggles delivery mode (media for inline compressed vs document for uncompressed raw file). | | | whatsapp_add_campaign_sender | Adds a sender WhatsApp account to an existing campaign for multi-account pooling. | | | whatsapp_remove_campaign_sender | Removes a sender WhatsApp account from a campaign (enforces at least 1 remaining sender). | | Runs & Delivery Logs | whatsapp_list_campaign_runs | Lists execution runs for a campaign (Run #1, Run #2, etc.) with sent/failed counts and duration. | | | whatsapp_get_campaign_logs | Retrieves recent delivery logs across all execution runs with search and status filtering. | | | whatsapp_get_run_logs | Retrieves detailed delivery logs for a specific run with search and status filter. | | Dashboard & UI | whatsapp_open_dashboard | Opens the live web dashboard in the default browser (http://127.0.0.1:3030). |

Configuration & Environment Variables

  • WASCHE_DATA_DIR: Custom path for SQLite databases, accounts, and attachments. Defaults to standard OS user application directory:
    • Windows: %APPDATA%\wasche\wasche\data
    • Linux: ~/.local/share/wasche
    • macOS: ~/Library/Application Support/com.wasche.wasche
  • RUST_LOG: Log level filter (info, debug, warn, trace).

License

Licensed under the Apache License, Version 2.0.