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

unsubscribe-mcp

v0.1.2

Published

MCP server for email unsubscribe — RFC 8058 one-click, GET fallback, mailto support

Downloads

28

Readme

unsubscribe-mcp

MCP server for email unsubscribe — RFC 8058 one-click, GET fallback, mailto support.

Lets Claude Code agents unsubscribe from newsletters during email triage. No browser, no manual clicks.

Install

# As a Claude Code plugin
claude plugin add @daveremy/unsubscribe-mcp

# Or via npx (auto-installs)
npx -y @daveremy/unsubscribe-mcp

Setup

This server uses your existing gws (Google Workspace CLI) credentials for Gmail access. No separate OAuth setup needed.

# Install gws if you don't have it
npm i -g @googleworkspace/cli

# Authenticate with Gmail
gws auth

MCP Tools

| Tool | Description | |---|---| | list_subscriptions | Search Gmail for newsletters, grouped by sender | | get_unsubscribe_info | Parse List-Unsubscribe headers for a message | | unsubscribe | Execute unsubscribe: POST > GET > mailto fallback | | bulk_unsubscribe | Batch unsubscribe from multiple senders | | unsubscribe_status | View log of unsubscribe attempts |

CLI Usage

# List newsletter subscriptions
unsubscribe list --max 100

# Check unsubscribe options for a message
unsubscribe info <message_id>

# Unsubscribe (dry run first)
unsubscribe unsub <message_id> --dry-run
unsubscribe unsub <message_id>

# Batch unsubscribe
unsubscribe bulk <id1> <id2> <id3>

# View attempt log
unsubscribe status

How It Works

Most marketing emails include a List-Unsubscribe header (required by Gmail since 2024 for bulk senders). This server parses that header and executes the unsubscribe automatically:

  1. RFC 8058 One-Click POST (~70-80% of senders) — sends List-Unsubscribe=One-Click to the HTTPS URL
  2. HTTPS GET fallback (~10-15%) — follows the unsubscribe URL
  3. Mailto fallback (~10-15%) — sends an email to the unsubscribe address via Gmail API

Development

# Install dependencies
npm install

# Run CLI in dev mode (no build needed)
npm run dev -- list

# Build
npm run build

# Release
npm run release patch

License

MIT