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

mailpal-mcp-server

v1.1.3

Published

MCP server for MailPal -- free email for AI agents with hardware attestation

Readme

mailpal-mcp-server

Free email for AI agents -- MCP server for mailpal.com

npx mailpal-mcp-server

npm License


Why MailPal?

  • Free forever -- every AI agent gets a real @mailpal.com email address at no cost
  • Hardware attestation -- emails are cryptographically signed by your TPM, proving they came from real hardware (via 1id.com). Attestation is ON by default.
  • Full protocols -- SMTP, IMAP, JMAP, CalDAV, CardDAV. Not a toy API -- a real mail server powered by Stalwart

Tools

| Tool | Description | |------|------------| | mailpal_activate_account | Create your @mailpal.com email address (two-phase Proof-of-Intelligence challenge) | | mailpal_send_email | Send email with hardware attestation ON by default (mode 2 = SD-JWT, mode 1 = direct TPM CMS, mode 0 = none) | | mailpal_check_inbox | Check inbox for messages -- returns summaries with sender, subject, date, preview | | mailpal_read_message | Read full message content including text body, HTML body, and all metadata | | mailpal_subscribe_to_inbox | Subscribe to real-time "You've Got Mail!" notifications when new email arrives | | mailpal_wait_for_email | Block until new email arrives or timeout (requires subscribe first) | | mailpal_register_email_callback | Register a webhook URL to POST when new email arrives | | mailpal_unregister_email_callback | Remove a previously registered webhook callback | | mailpal_jmap | Raw JMAP passthrough -- delete, move, flag, search, folders, contacts, calendars, sieve filters, blob upload, anything JMAP supports | | oneid_get_or_create_identity | Get or create a hardware-anchored 1id identity for this agent | | oneid_status | Full picture of identity, devices, connected services | | oneid_get_bearer_token | Get an OAuth2 Bearer token for the current identity | | oneid_sign_challenge | Sign a verifier-provided nonce to prove hardware identity | | oneid_verify_peer_identity | Verify another agent's identity proof bundle | | oneid_list_credential_pointers | List credential pointers for an identity |

The mailpal_jmap tool gives your agent access to the full JMAP specification (RFC 8620/8621) and all Stalwart extensions. If a convenience tool doesn't exist for what you need, use this.

Quick Start

1. Get a 1id.com identity

npx 1id enroll

This creates a hardware-anchored identity and gives you a JWT token.

2. Add to your MCP client

Cursor (~/.cursor/mcp.json):

{
  "mcpServers": {
    "mailpal": {
      "command": "npx",
      "args": ["-y", "mailpal-mcp-server"],
      "env": {
        "MAILPAL_TOKEN": "<your-1id-jwt>"
      }
    }
  }
}

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "mailpal": {
      "command": "npx",
      "args": ["-y", "mailpal-mcp-server"],
      "env": {
        "MAILPAL_TOKEN": "<your-1id-jwt>"
      }
    }
  }
}

Windsurf (~/.windsurf/mcp.json):

{
  "mcpServers": {
    "mailpal": {
      "command": "npx",
      "args": ["-y", "mailpal-mcp-server"],
      "env": {
        "MAILPAL_TOKEN": "<your-1id-jwt>"
      }
    }
  }
}

3. Or use the hosted endpoint (zero install)

{
  "mcpServers": {
    "mailpal": {
      "type": "streamable-http",
      "url": "https://mailpal.com/mcp",
      "headers": {
        "Authorization": "Bearer <your-1id-jwt>"
      }
    }
  }
}

The hosted endpoint also supports real-time "You've Got Mail!" notifications via MCP resource subscriptions and SSE.

Environment Variables

| Variable | Required | Description | |----------|----------|-------------| | MAILPAL_TOKEN | Yes | 1id.com JWT token for authentication | | MAILPAL_API_URL | No | Override API base URL (default: https://mailpal.com/api/v1) |

Also Available As

  • Python: mailpal-mcp on PyPI -- pip install mailpal-mcp
  • Hosted endpoint: https://mailpal.com/mcp (Streamable HTTP, supports real-time notifications)
  • REST API: https://mailpal.com/api/v1/ (docs)
  • Direct IMAP/SMTP: imap.mailpal.com:993 / smtp.mailpal.com:587 (standard email clients)

Comparison

| Feature | MailPal | AgentMail | Robotomail | Nylas | |---------|---------|-----------|------------|-------| | Free tier | Unlimited | 100 msgs | Limited | Paid | | Real SMTP/IMAP | Yes | API only | API only | Yes | | Hardware attestation | Yes (ON by default) | No | No | No | | CalDAV/CardDAV | Yes | No | No | Yes | | MCP server | Yes | Yes | No | No | | JMAP passthrough | Yes | No | No | No | | Real-time inbox push | Yes | No | No | No | | Self-hostable | Yes (Stalwart) | No | No | No |

Development

git clone https://github.com/mailpal-com/mcp-server.git
cd mcp-server
npm install
npm run build
node dist/index.js

Test with MCP Inspector:

npx -y @modelcontextprotocol/inspector

License

Apache-2.0 -- see LICENSE.

Built by Crypt Inc. -- the team behind 1id.com and mailpal.com.