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

uni-msg-mcp-server

v0.3.1

Published

Model Context Protocol server for uni-msg — drive WhatsApp from Claude, Cursor or any MCP client.

Readme

uni-msg-mcp-server

Drive WhatsApp from Claude, Cursor, or any MCP client — using the same API key as the REST API. No separate credential, no OAuth.

Setup

Create a key in Dashboard → API Keys, then point your client at the hosted endpoint. Nothing to install, and it stays current without anyone upgrading a package.

https://uni-msg.com/mcp        Authorization: Bearer <key>
https://uni-msg.com/mcp/<key>  for clients that cannot send headers

Claude Code

claude mcp add --transport http uni-msg https://uni-msg.com/mcp \
  --header "Authorization: Bearer wsa_your_key"

Cursor — ~/.cursor/mcp.json

{ "mcpServers": { "uni-msg": {
  "url": "https://uni-msg.com/mcp",
  "headers": { "Authorization": "Bearer wsa_your_key" }
} } }

Gemini CLI — ~/.gemini/settings.json

httpUrl selects Streamable HTTP; url would mean SSE.

{ "mcpServers": { "uni-msg": {
  "httpUrl": "https://uni-msg.com/mcp",
  "headers": { "Authorization": "Bearer wsa_your_key" }
} } }

Claude Desktop

Settings → Connectors → Add custom connector, URL https://uni-msg.com/mcp, header Authorization: Bearer wsa_your_key.

ChatGPT

Developer mode (Settings → Apps → Advanced), then add a connector with URL https://uni-msg.com/mcp/wsa_your_key and No authentication. It is the only client that cannot send a header, which is why the key sits in the path — and why nginx disables access logging on /mcp.

Running it locally

Not required — the hosted endpoint above needs no install. Use this if you would rather the API calls left your own machine.

{ "mcpServers": { "uni-msg": {
  "command": "npx",
  "args": ["-y", "uni-msg-mcp-server"],
  "env": { "UNIMSG_API_KEY": "wsa_your_key" }
} } }

Needs Node 20+. ChatGPT cannot use this form — it has no way to run a local process.

Pairing a number

Three steps, and the tool descriptions walk the assistant through them:

  1. create_device with a name and the number in international format
  2. connect_device returns an 8-character pairing code
  3. On the phone holding that number: WhatsApp → Settings → Linked devices → Link a device → Link with phone number instead → type the code

The code expires in about two minutes. If it lapses use request_pairing_code rather than reconnecting — it is cheaper and avoids churning the session. Poll get_device_status until it reports connected.

Notes

Sends are immediate and cannot be recalled. The tool descriptions instruct the assistant to confirm the recipient first, but that is guidance, not a guarantee — treat this as you would a shell with production access.

Only a device whose status is connected can deliver. list_devices first saves a confusing failure later.

Reading message history is exposed: list_conversations finds the peer value, then read_thread returns that thread newest-first with paging.

Errors come back as tool results rather than thrown exceptions, so the model can read the reason and correct itself. Anything key-shaped in an error is redacted before it reaches the model. Diagnostics go to stderr — stdout is the JSON-RPC stream and a stray byte there corrupts the protocol.