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

@ujexdev/postbox-mcp

v0.2.0

Published

Model Context Protocol server that exposes Ujex Postbox to any MCP client (Claude Desktop, Cursor, Cline, Zed).

Readme

@ujexdev/postbox-mcp

Model Context Protocol server that exposes Ujex Postbox to any MCP client — Claude Desktop, Cursor, Cline, Zed, Continue, etc. Drop the JSON snippet below into your client config and your agent gets a full, zod-validated email toolkit without writing a line of glue code.

Postbox is Ujex's outbound/inbound email service: DKIM/SPF/DMARC-aware, with per-message prompt-injection scoring and require_human approval gates. This MCP server is the Postbox edge of the wider Ujex core loop: Postbox email, human Approvals, Audit, and Recall memory. It is a thin stdio-based bridge — no data is stored locally.

Install

npm i -g @ujexdev/postbox-mcp

or run it on demand with npx (no global install needed — most MCP clients do this automatically):

npx -y @ujexdev/postbox-mcp

Configuration

All config is via environment variables. The MCP client config blocks below show where to set them.

| Variable | Required | Default | Notes | | --- | --- | --- | --- | | UJEX_DEVICE_KEY | yes | — | Agent device key (ap_live_...) or inbox-scoped key (apk_sc_...) from the dashboard. | | UJEX_BASE_URL | no | https://us-central1-axy-ujex.cloudfunctions.net | Firebase Functions base URL. Override for self-hosted Postbox. | | UJEX_AGENT_ID | no | — | Pins a default agent so tool calls don't need agent_id every time. Also enables the postbox://inbox/{id} resource. | | UJEX_FIREBASE_API_KEY | no | Ujex production key | Firebase Web API key used to exchange the session custom token. Override for self-hosted Postbox. | | UJEX_TIMEOUT_MS | no | 30000 | Per-call HTTP timeout in milliseconds. |

Drop-in client configs

Claude Desktop

File: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows).

{
  "mcpServers": {
    "ujex-postbox": {
      "command": "npx",
      "args": ["-y", "@ujexdev/postbox-mcp"],
      "env": {
        "UJEX_DEVICE_KEY": "ap_live_...",
        "UJEX_AGENT_ID": "agent-hello"
      }
    }
  }
}

Restart Claude Desktop — you should see six postbox_* tools and an inbox resource under the attachments (paperclip) menu.

Cursor

File: ~/.cursor/mcp.json.

{
  "mcpServers": {
    "ujex-postbox": {
      "command": "npx",
      "args": ["-y", "@ujexdev/postbox-mcp"],
      "env": {
        "UJEX_DEVICE_KEY": "ap_live_...",
        "UJEX_AGENT_ID": "agent-hello"
      }
    }
  }
}

Cline (VS Code extension)

In the Cline settings (gear icon -> MCP Servers -> Edit Configuration):

{
  "mcpServers": {
    "ujex-postbox": {
      "command": "npx",
      "args": ["-y", "@ujexdev/postbox-mcp"],
      "env": {
        "UJEX_DEVICE_KEY": "ap_live_...",
        "UJEX_AGENT_ID": "agent-hello"
      }
    }
  }
}

Zed

File: ~/.config/zed/settings.json under context_servers:

{
  "context_servers": {
    "ujex-postbox": {
      "command": {
        "path": "npx",
        "args": ["-y", "@ujexdev/postbox-mcp"],
        "env": {
          "UJEX_DEVICE_KEY": "ap_live_...",
          "UJEX_AGENT_ID": "agent-hello"
        }
      }
    }
  }
}

Tools

All six tools validate input and output with zod. Network errors are surfaced as structured MCP tool errors — the client/model stays in a clean state.

| Tool | Does | | --- | --- | | postbox_send_email | Send an email on behalf of the agent. Supports thread keys, idempotency, and require_human for approval gating. | | postbox_list_messages | List messages (inbound / outbound / both). Each item carries pi_score, pi_reasons, and a {dkim, spf, dmarc} auth verdict. | | postbox_read_message | Fetch one message's full body by id. | | postbox_list_inboxes | Enumerate mailbox addresses owned by an agent. | | postbox_create_plus_address | Local. Derive base+task@domain for per-task tagged addresses. | | postbox_verify_inbound | Local. Timing-safe HMAC-SHA256 verification of an inbound webhook body. |

Resources

| URI | Contents | | --- | --- | | postbox://inbox/{agent_id} | JSON snapshot of the 20 latest inbound messages. Exposed only when UJEX_AGENT_ID is set. |

Development

npm install
npm run typecheck
npm test         # vitest, network mocked
npm run build    # emits dist/
  • Strict TypeScript (strict: true, noUncheckedIndexedAccess: true).
  • Stdio transport by default; the server is a pure data-in / data-out Node process and can run in any sandbox that allows outbound HTTPS.

Security

  • HMAC verification uses node:crypto.timingSafeEqual.
  • The device key is sent only to the Ujex session callable, then cached Firebase ID tokens authenticate Postbox callables.
  • Tool handlers do not shell out and do not touch the filesystem.

License

Apache-2.0.