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

@mcp-monorepo/mail

v1.2.0

Published

MCP server for mail tools (fetch, read, search, mark as seen).

Downloads

65

Readme

@mcp-monorepo/mail

version repo

MCP server for mail tools (fetch, read, search, mark as seen).

The Mail MCP package provides a set of tools for interacting with one or more email accounts using the IMAP protocol. It allows an AI agent to fetch recent emails, search through mailboxes, read specific messages, and mark emails as seen.

Key Features

  • Multi-Account Connectivity: Connect to and manage multiple IMAP accounts simultaneously, configured via a single environment variable.
  • Comprehensive Mail Search: Search across accounts by subject, sender, and even email body content.
  • Content-Aware Reading: Intelligently reads email content, automatically converting HTML to plain text for clean, readable output.
  • State Management: Includes a tool to mark emails as read (mark-mails-as-seen), allowing the agent to manage the state of an inbox.

Usage

You can run this MCP server directly using npx for local testing:

npx @mcp-monorepo/mail@latest

To integrate this server with a compatible AI model (like Claude), provide the following MCP server configuration:

{
  "mcpServers": {
    "mail": {
      "command": "npx",
      "args": [
        "-y",
        "@mcp-monorepo/mail"
      ],
      "env": {
        "MAIL_ACCOUNTS": "<Your MAIL_ACCOUNTS Here>"
      }
    }
  }
}

Environment Variables

| Variable | Description | Default | | :--- | :--- | :--- | | MAIL_ACCOUNTS | A space-separated list of IMAP account credentials. Each entry must follow the format user:pass@host:port. | <required> |

Tools

fetch-latest-mails

Fetch Latest Mails - Query all mails from the past two days for all configured accounts. No parameters.

Input Schema

This tool has no defined input schema.


search-mails

Search Mails - Find mails by subject, body, or sender address across all configured accounts. At least one of searchString or fromContains must be set.

Input Schema

| Property | Type | Description | | :--- | :--- | :--- | | searchString | string | Substring to search in subject or body. | | searchBody | boolean | If true, also search in mail body. | | fromContains | string | Substring to search in sender address. |


read-mail

Read Mail Content - Reads the content and subject/title of specified mails. If only HTML is present, converts it to plain text.

Input Schema

| Property | Type | Description | | :--- | :--- | :--- | | username | string | | | imapServer | string | | | mailIds | array of string | |


mark-mails-as-seen

Mark Mails as Seen - Marks specified emails as seen/read in the INBOX. Requires username, IMAP server, and a list of mail UIDs.

Input Schema

| Property | Type | Description | | :--- | :--- | :--- | | username | string | Username for IMAP authentication | | imapServer | string | IMAP server hostname | | mailIds | array of string | List of mail UIDs to mark as seen |

Other MCP Servers

This monorepo contains several other MCP server packages available on npm. Each provides a distinct set of tools for use with the Model Context Protocol.

Recent Changes

Version 1.1.4

  • fd22b00: Fixed yarn versioning during publish

Version 1.1.3

  • Updated dependencies [7929a55]

Version 1.1.2

  • 75e8973: migrate monorepo to yarn 4, update CI/husky/scripts and run-on-changed, add yarnrc and packageManager, switch internal deps to workspace:* and simplify bin fields

Authors

  • The MCP Monorepo Team

License

This project is licensed under the AGPL-3.0-only License. See the LICENSE file for details.