Skip to main content
mailferret by DocGerdSoft: read-only IMAP for MCP clients and Claude Code

mcp: stdio server imap: read-only by default ci python: 3.13+ license: MIT

Read-only by default: folders open with EXAMINE and bodies are fetched with BODY.PEEK, so nothing is moved, flagged or marked read.

$ uv tool install mailferret
$ mailferret setup

This puts mailferret on PATH, which every later command below needs, register in particular. Alternatively, run the setup once with uvx, which leaves no mailferret on PATH:

$ uvx mailferret setup

pipx or a venv work too. Requires uv and Python 3.13 or newer.

Status: docs/STATUS.md.

Safety

  • Read-only: no tool moves, flags, deletes or sends. Writing and SMTP exist only as disabled interfaces; the config rejects enabling them.
  • Credentials live in the OS keyring or a command you configure, never in the config, logs or tool output. Store them with mailferret auth set, never by pasting them into a chat.
  • TLS certificate verification is always on. A rejected login is never retried.
  • Mail text is untrusted data, wrapped in delimiters and stripped of hidden content.

Residual risk: mailferret cannot stop a client from obeying instructions hidden in a mail. If your assistant can read mail and also run commands or fetch URLs, an injected mail may steer it to send what it has read elsewhere. Read mail in a context without shell or web tools, and keep other outbound tools out of it. The plugin's mail-reader agent is meant for this, and its runtime tool list is unverified (T-18). A residual path remains: its summary returns to a parent that may have shell and web tools. Details: SECURITY.md and T-18 in docs/SECURITY.md.

Set up

$ mailferret setup
$ mailferret accounts list

setup adds an account, stores its password and tests the connection read-only. Change or store a password later in a terminal:

$ mailferret auth set <account>

Per-platform backends, WSL with pass, and exporting DBUS_SESSION_BUS_ADDRESS for the keyring: docs/user/credentials.md.

Connect a client

  • Claude Code: mailferret register claude-code
  • Claude Desktop: mailferret register claude-desktop, or the plugin from DocGerd/mailferret (Customize, Plugins, Add marketplace); Windows steps: docs/user/clients.md
  • Any MCP client: a stdio entry with command mailferret and args ["serve"]
  • Claude Code plugin (adds the mail-reader agent, doctor and setup skills): /plugin marketplace add DocGerd/mailferret, then /plugin install mailferret@mailferret
  • claude.ai zip upload: unverified

All of it: docs/user/clients.md.

Tools

list_accounts, list_folders, search, get_message, get_thread, list_attachments, get_attachment_text, list_aliases. Overview: docs/user/tools.md.

Docs

Troubleshooting

$ mailferret doctor

It checks config, credentials, the connection and client registrations, and changes nothing.

Contributing and security

CONTRIBUTING.md. Report vulnerabilities privately as described in SECURITY.md.

Metadata

Release files for mailferret 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mailferret 0.1.1
File Size Uploaded Provenance Actions
mailferret-0.1.1.tar.gz 198.6 kB With provenance Details for mailferret-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mailferret 0.1.1
File Interpreter ABI Platform Actions
mailferret-0.1.1-py3-none-any.whl Python 3 none any Details for mailferret-0.1.1-py3-none-any.whl

Total release size: 449.0 kB

Release files / mailferret-0.1.1.tar.gz

Download URL mailferret-0.1.1.tar.gz
Size 198.6 kB
Tags Source
SHA-256 checksum
How to use checksums
dac12356886bdae60fd93efaba2024fcb145c384fbfb884bb7237ef05758ac6f
BLAKE2b-256 checksum
How to use checksums
1279ab28f93124ec09dd3214e0ebcbd9c7405f23b6c1e7b014063c0576e1bc00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / mailferret-0.1.1-py3-none-any.whl

Download URL mailferret-0.1.1-py3-none-any.whl
Size 250.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2130046ee2ac4c89b033879957b2e97866d0f099eb13036cea6af32aa720f254
BLAKE2b-256 checksum
How to use checksums
3cf1e80b34fd4e2d220d35bca417468ee37a2c658bb8388adafcaff323f2fb6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Security for mailferret 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mailferret-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page