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

emailguard-cli

v0.1.4

Published

CLI and MCP server for EmailGuard — email deliverability, blacklist monitoring, inbox placement testing, and spam analysis

Downloads

491

Readme

emailguard-cli

CLI and MCP server for EmailGuard — email deliverability, blacklist monitoring, inbox placement testing, and spam analysis.

Features

  • 86 tools covering every EmailGuard API endpoint
  • Dual-mode: Full CLI (emailguard) + MCP server (emailguard-mcp) from one binary
  • 18 command groups: domains, email-accounts, blacklist, dmarc, dns, inbox-tests, spam-check, spamhaus, and more
  • Agent-native: JSON output, --fields, exit codes, MCP protocol for Claude/Cursor
  • Zero config: set EMAILGUARD_API_KEY and go

Install

npm install -g emailguard-cli

Permission error? If you get EACCES, either run with sudo or configure a user-writable npm prefix:

mkdir -p ~/.npm-global && npm config set prefix ~/.npm-global
export PATH="$HOME/.npm-global/bin:$PATH"   # add to ~/.zshrc or ~/.bashrc
npm install -g emailguard-cli

Authentication

Get your API token from https://app.emailguard.io/api-settings → Developer API → Add New API Token.

# Option 1: Environment variable (recommended for agents)
export EMAILGUARD_API_KEY="5|YourTokenHere"

# Option 2: Interactive login
emailguard login

# Option 3: Store a pre-generated token
emailguard login --api-key "5|YourTokenHere"

Quick Examples

# Domain health
emailguard domains list --pretty
emailguard dns spf-lookup --domain example.com
emailguard blacklist check --domain example.com --pretty

# Inbox placement test
emailguard inbox-tests create --name "Campaign A" --pretty
emailguard inbox-tests get <id> --pretty

# Spam content analysis
emailguard spam-check check --content "Subject: Buy now!" --pretty

# Spamhaus intelligence
emailguard spamhaus domain-reputation-check --domain example.com --pretty

MCP Server (AI Agents)

emailguard mcp        # Start MCP server
emailguard-mcp        # Or via dedicated binary

Claude Desktop config:

{
  "mcpServers": {
    "emailguard": {
      "command": "emailguard-mcp",
      "env": { "EMAILGUARD_API_KEY": "5|YourTokenHere" }
    }
  }
}

All Command Groups

| Group | Key Commands | |---|---| | account | get, update-profile, update-password | | workspaces | list, current, create, switch, invite-member | | domains | list, get, add, delete, patch-spf, patch-dkim, patch-dmarc | | email-accounts | list, get, add, delete, test-imap, test-smtp, reputation-builder | | contacts | list, get, upload, download | | blacklist | list-domains, list-accounts, check, get | | surbl | list-domains, check, get | | dmarc | list, insights, sources, failures | | dns | spf-lookup, spf-wizard, dkim-lookup, dkim-generate, dmarc-lookup, dmarc-external | | spam-check | check | | inbox-tests | list, create, get | | spam-filter | list, create, get | | redirects | list, create, get, delete, get-ip | | proxy | list, create, get, delete, get-ip | | lookup | domain, email | | spamhaus | domain-reputation-check/list/get, domain-context-, domain-senders-, a-record-, nameserver- | | tags | list, create, get, delete |

See AGENTS.md for the complete agent reference with all examples and workflows.

Output Options

emailguard domains list              # compact JSON (default)
emailguard domains list --pretty     # pretty-printed JSON
emailguard domains list --quiet      # no output, exit code only
emailguard domains list --fields data.uuid,data.name  # filter fields

License

MIT — github.com/bcharleson/emailguard-cli