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

pop3-mcp

v0.3.1

Published

Strictly read-only POP3 MCP server for listing, reading, and searching email

Readme

Read-only POP3 MCP

A local Node.js MCP server that lets Codex list, read, and search message headers in a POP3 mailbox. It deliberately provides no send, delete, move, mark-as-read, or attachment-download operation.

Safety properties

  • POP3 over TLS with normal certificate verification
  • No SMTP dependency or tool
  • No POP3 DELE command
  • Attachment metadata only; attachment bytes are not returned
  • Message size and returned-body limits
  • On Windows, the password can be read from Windows Credential Manager
  • Cross-platform environment-variable password fallback
  • Email is explicitly labeled as untrusted content in MCP instructions

POP3 does not provide server-side full-text search. search_message_headers therefore scans recent headers only. The server uses UIDL as the stable message identifier.

Requirements

  • Node.js 20 or newer
  • A POP3 server with TLS, normally port 995
  • The mailbox configured to retain server copies if another client such as Outlook also downloads messages

Install

From a cloned repository:

npm install
npm test

Recommended: Windows Credential Manager

Store the password once. The prompt masks the password and the command does not place it in shell history:

npx -y pop3-mcp --set-credential `
  --target "pop3-mcp:[email protected]" `
  --username "[email protected]"

Then configure these non-secret MCP environment values:

POP3_HOST=mail.example.com
POP3_PORT=995
[email protected]
POP3_CREDENTIAL_TARGET=pop3-mcp:[email protected]

The credential is encrypted by Windows for the signed-in user. Do not add POP3_PASSWORD when POP3_CREDENTIAL_TARGET is configured.

Image attachments

get_message returns a zero-based index for each attachment. Use get_image_attachment with the message UIDL and that index to view an inline or attached image. Only image/* MIME types are returned, and the default image limit is 5 MiB (maximum 10 MiB). This remains read-only and never changes the message on the server.

Cross-platform fallback

Set credentials only for the current shell session:

$env:POP3_HOST = "mail.example.com"
$env:POP3_PORT = "995"
$env:POP3_USERNAME = "[email protected]"
$env:POP3_PASSWORD = Read-Host "POP3 password"

An environment variable is visible to processes running as the same user. Prefer Windows Credential Manager on Windows.

Run with npx

npx --yes pop3-mcp

Connect to Codex desktop

Open Settings > MCP servers > Add server, select STDIO, set the command to npx, and set arguments to --yes pop3-mcp. Add POP3_HOST, POP3_PORT, POP3_USERNAME, and POP3_CREDENTIAL_TARGET to the MCP process environment. The target name is not a secret. Do not add POP3_PASSWORD when using Windows Credential Manager.

Restart Codex, then type /mcp to confirm that Read-only POP3 Mail is connected.

Available tools:

  • mailbox_status
  • list_messages
  • get_message
  • search_message_headers

Environment variables

| Name | Required | Default | Purpose | | --- | --- | --- | --- | | POP3_HOST | Yes | - | POP3 server hostname | | POP3_PORT | No | 995 | POP3 TLS port | | POP3_USERNAME | Yes | - | Mailbox login | | POP3_CREDENTIAL_TARGET | Recommended on Windows | - | Windows Credential Manager target name | | POP3_PASSWORD | Fallback | - | Mailbox password or app password | | POP3_TIMEOUT_MS | No | 20000 | Network timeout in milliseconds | | POP3_MAX_MESSAGE_BYTES | No | 10485760 | Maximum retrievable message size |

Data handling warning

Tool results may send company email content to the AI service used by the MCP host. Obtain company approval and follow retention, confidentiality, and personal information policies before use.