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

@dojocoding/whatsapp-mcp

v0.4.0

Published

MCP server exposing @dojocoding/whatsapp-sdk's outbound surface to LLM agents (Claude Desktop, Claude Agent SDK, Cursor, Cline).

Readme

@dojocoding/whatsapp-mcp

A Model Context Protocol (MCP) server that surfaces the WhatsApp Cloud API's outbound side as 16 tools, 2 resources, and 1 prompt for LLM agents (Claude Desktop, the Claude Agent SDK, Cursor, Cline).

Sibling package: @dojocoding/whatsapp-sdk. Use the SDK directly when you're building a server that handles WhatsApp webhooks. Use this MCP server when you're wiring an LLM to send WhatsApp messages. Use both together for the agent ↔ customer loop — see docs/cookbook/hybrid/agent-handoff-loop.md.

Install

Add to your MCP host's config (Claude Desktop shown):

// ~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "whatsapp": {
      "command": "npx",
      "args": ["-y", "@dojocoding/whatsapp-mcp"],
      "env": {
        "WHATSAPP_ACCESS_TOKEN": "EAAG...",
        "WHATSAPP_PHONE_NUMBER_ID": "1234567890",
        "WHATSAPP_BUSINESS_ACCOUNT_ID": "9876543210",
      },
    },
  },
}

Restart Claude Desktop. First spawn pulls the package (~10 MB); subsequent spawns are instant.

Use

In a Claude Desktop chat:

Send the hello_world template (en_US) to +5210000000001 via WhatsApp.

Or open the prompt picker and choose /wa-template-send for a guided walkthrough that lists approved templates, fetches the chosen template's schema, asks you for variables, and sends.

For programmatic embedding (Claude Agent SDK, custom hosts):

import { WhatsAppClient } from "@dojocoding/whatsapp-sdk";
import { WhatsAppMcpServer } from "@dojocoding/whatsapp-mcp";
import { InMemoryTransport } from "@modelcontextprotocol/sdk/inMemory.js";

const client = new WhatsAppClient({
  phoneNumberId: process.env.WHATSAPP_PHONE_NUMBER_ID!,
  wabaId: process.env.WHATSAPP_BUSINESS_ACCOUNT_ID!,
  token: process.env.WHATSAPP_ACCESS_TOKEN!,
  appSecret: process.env.WHATSAPP_APP_SECRET ?? "",
});

const server = new WhatsAppMcpServer({ client, wabaPhoneNumberId: client.phoneNumberId });
const [serverEnd, clientEnd] = InMemoryTransport.createLinkedPair();
await server.connect(serverEnd);
// Hand `clientEnd` to your MCP-compatible agent runtime.

What this package is / is NOT

  • Is: an MCP stdio server exposing every WhatsAppClient.sendX(...) method as a tool, with zod-validated inputs and per-error recovery hints the LLM can act on (WINDOW_CLOSED → "use template", TEMPLATE → "inspect via whatsapp_get_template", etc.).
  • Is NOT: a webhook receiver. The MCP server doesn't see inbound traffic — that's the SDK's job. To make an agent react to customer replies, pair this with the SDK's WebhookReceiver in the same process. See the hybrid cookbook.
  • Is NOT: an HTTP server. v1 supports stdio only; remote hosting via Streamable HTTP is a v2 candidate (see docs/mcp/transports.md).

Docs

docs/mcp/ on GitHub.

Cookbook recipes: docs/cookbook/mcp/ (Claude Desktop + Claude Agent SDK + multi-WABA) and docs/cookbook/hybrid/ (SDK + MCP together — the production-default).

License

MIT © Dojo Coding LLC.