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

@yunori/agent-mail-mcp

v0.2.2

Published

MCP server for Yunori Agent Mail: give an AI assistant the email inboxes an API key can reach — read, search, draft, send within policy.

Readme

@yunori/agent-mail-mcp

A Model Context Protocol server for Yunori Agent Mail. It gives an AI assistant — Claude, or any MCP client — the email inboxes one API key can reach: read and search mail, draft, reply and send, within each inbox's policy.

Runs over stdio. Node 20 or later. Its only dependencies are the official @modelcontextprotocol/server, zod and @yunori/agent-mail.

Set up

Make a key in Yunori under Agent inboxes → API keys. Start from Drafting agent if the assistant should draft but never send, or Sending agent if it may send within policy, and confine the key to the inboxes it needs.

Then add the server to your MCP client's configuration:

{
  "mcpServers": {
    "yunori-mail": {
      "command": "npx",
      "args": ["-y", "@yunori/agent-mail-mcp"],
      "env": {
        "YUNORI_BASE_URL": "https://yunori.email",
        "YUNORI_API_KEY": "tori_pat_…"
      }
    }
  }
}

With Claude Code:

claude mcp add yunori-mail -e YUNORI_BASE_URL=https://yunori.email -e YUNORI_API_KEY=tori_pat_… -- npx -y @yunori/agent-mail-mcp

Tools

| Tool | What it does | | --- | --- | | list_inboxes | The inboxes the key can reach, with what each can do | | list_threads | Conversations in an inbox, newest first | | read_thread | Every message in a conversation, oldest first | | search_messages | Search across the inboxes the key can reach | | read_message | One message with its text, files and security report | | read_attachment_text | The text of a PDF, Office or text attachment | | create_draft | Save a draft — nothing is sent | | send_message | Send a new message, within the inbox's policy | | reply | Reply to the latest message in a conversation | | send_draft | Send a saved draft, within the inbox's policy | | request_approval | Put a draft in front of a person | | delivery_status | Where a message stands: waiting, declined, sent, delivered, bounced, failed | | label_message | Add or remove labels, and mark read | | list_events | What happened recently, or since a given event |

Safety

Every tool is an API call made with your key, so the key's scopes, its inboxes and each inbox's sending policy apply unchanged. There is no tool to approve, release held mail or change a policy — no key can do those; a person does, in Yunori.

Mail is written by strangers. Every answer that can carry a stranger's words (subjects, names, message text) comes back inside one <untrusted_email_…> fence, with the message's risk and the signals Yunori noticed, and a file's text inside <untrusted_attachment_…>. The end of each fence's name is random and picked for that answer, so a sender can't write its closing tag. The server also removes characters a person can't see and the usual spellings of the fence's tag, and its instructions tell the model to treat mail as data, never as instructions.

The fence is a signal to the model, not a lock. What limits an assistant that believes the wrong message is the key's scopes and the inbox's sending policy, so choose those for the worst case.

Documentation

yunori.email/docs/agent-mail-sdk

License

MIT