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.2

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.2
File Size Uploaded Provenance Actions
mailferret-0.1.2.tar.gz 204.2 kB With provenance Details for mailferret-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 460.6 kB

Release files / mailferret-0.1.2.tar.gz

Download URL mailferret-0.1.2.tar.gz
Size 204.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d46013c8c79e62e096059406f61b5d3b65942d6b4d342f4b5616bd1b6dba2a48
BLAKE2b-256 checksum
How to use checksums
b9ce2f3253ab5a4df419d09cb03d20d73299928f15cb4f7d7979e3de50f00fd8
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 2, 2026.

Transparency log

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

Download URL mailferret-0.1.2-py3-none-any.whl
Size 256.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
921b6ce06e079dd3063dc5b25634abc80c7b0c11f5df228e964a6a2931fb40b7
BLAKE2b-256 checksum
How to use checksums
458ca68fa0a3f6e005b5172698c34f0887de7a2762367b62e179bd1a4bb34e33
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 2, 2026.

Transparency log

Security for mailferret 0.1.2

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.2.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 2, 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