ietf-imap-mcp
This MCP server lets you navigate IETF mailing-list archives over IMAP.
Discover mailing-list mailboxes using IMAP LIST patterns.
Search a list by subject, sender, free text, and date range, newest first.
Page through a list’s messages newest first with offset and limit.
Fetch a specific message by UID with headers and an optional, truncatable plain-text body.
Operates read-only and rate-limited against shared IETF infrastructure.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ietf-imap-mcp Search ietf mailing list for recent messages on QUIC"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ietf-imap-mcp (superseded)
This project is no longer maintained. Use mnot/ietf-llm instead. It gathers a working group's mailing list (read from the IETF IMAP mirror), charter, drafts, RFCs, agendas, minutes, attendance and GitHub issues into one searchable corpus, and serves it through an MCP server with live Datatracker lookups. It is MIT licensed and in beta.
pipx install 'ietf-llm[local-embeddings]' ietf-llm httpbis # any WG or IRTF RG shortname claude mcp add ietf-llm -- ietf-llm-mcpDetails: Running the MCP server locally. This repo is kept for reference only and will receive no further fixes.
The rest of this README describes the legacy server.
An MCP server for navigating IETF
mailing-list archives over the IETF IMAP service
(imap.ietf.org:993). It lets an MCP-capable assistant search, page through,
and read list traffic — handy when chairing a working group or BoF and you need
to track what the list is actually saying.
Built to be a good citizen of shared IETF infrastructure. See Respecting IETF resources.
Tools
Tool | What it does |
| Discover list mailboxes (IMAP |
| Search a list; returns message summaries, newest first. |
| Page through a list's messages, newest first. |
| Fetch one message (headers + plain-text body) by UID. |
Related MCP server: InboxTether MCP
Configuration
All configuration is via environment variables — no credentials are ever stored in the code or the repo.
Variable | Purpose | Default |
|
|
|
| Email used as the password for anonymous access | — |
| Datatracker password (authenticated access) — plaintext | — |
| Shell command whose stdout is the password (e.g. | — |
| Path to a file containing the password | — |
| Minimum seconds between IMAP commands |
|
| Prefix for bare list names |
|
See .env.example for a copy-paste starting point.
Authentication
Per the IETF lists page, the IMAP service supports two modes.
Anonymous (recommended for public lists)
IMAP anonymous login uses your email address in the password field — this is not a secret. This is all you need for public list archives:
{
"mcpServers": {
"ietf-imap": {
"command": "uv",
"args": ["run", "--directory", "/path/to/ietf-imap-mcp", "python", "-m", "ietf_imap_mcp"],
"env": { "IETF_IMAP_USER": "anonymous", "IETF_IMAP_EMAIL": "you@example.org" }
}
}
}Authenticated (Datatracker — only when anonymous is not possible)
Set IETF_IMAP_USER to your Datatracker username and supply the password.
The password is resolved in this order of preference:
IETF_IMAP_PASSWORD → IETF_IMAP_PASSWORD_CMD → IETF_IMAP_PASSWORD_FILE.
⚠️ Keep the secret out of the config file. Values in an MCP client's
envblock sit in plaintext on disk (and often sync to the cloud). PreferIETF_IMAP_PASSWORD_CMD(resolve from a secret manager at launch) orIETF_IMAP_PASSWORD_FILE(achmod 600file). AvoidIETF_IMAP_PASSWORDexcept for throwaway local testing, and never put a real password in a file you commit.
Recommended — resolve from a secret manager (no secret on disk):
{
"mcpServers": {
"ietf-imap": {
"command": "uv",
"args": ["run", "--directory", "/path/to/ietf-imap-mcp", "python", "-m", "ietf_imap_mcp"],
"env": {
"IETF_IMAP_USER": "your-datatracker-username",
"IETF_IMAP_PASSWORD_CMD": "op read \"op://Private/IETF Datatracker/password\""
}
}
}
}(op is the 1Password CLI; substitute pass, gopass, security find-generic-password,
vault kv get, etc.)
Alternative — a permission-restricted file:
install -m 600 /dev/null ~/.config/ietf-imap/datatracker.pw
printf '%s' 'your-password' > ~/.config/ietf-imap/datatracker.pw"env": {
"IETF_IMAP_USER": "your-datatracker-username",
"IETF_IMAP_PASSWORD_FILE": "~/.config/ietf-imap/datatracker.pw"
}Run
uv run ietf-imap-mcp # stdio MCP server
# or
uv run python -m ietf_imap_mcpRespecting IETF resources
The IMAP server is shared infrastructure. This server:
Read-only — mailboxes are opened with
EXAMINE, neverSELECT; it cannot flag, move, or delete anything.Rate-limited — a minimum interval (default 1s) is enforced between IMAP commands.
Bounded — result counts are hard-capped (≤ 100 per call) so one call can't pull thousands of messages.
Connection-reusing — one TLS connection is kept open rather than reconnecting per call.
Please don't lower the interval or remove the caps to hammer the service. For bulk needs, use rsync archive downloads instead.
Development
uv run pytest # tests are fully mocked — no network, no live IMAPLicense
MIT © 2026 Orie Steele
Available Tools
4 toolsget_messageA
Fetch a single message by UID (from a prior search/page result).
Args:
list_name: Mailbox / list name, e.g. "agent2agent".
uid: The message UID returned by search_list / page_list.
include_body: Include the plain-text body (default True).
max_body_chars: Truncate the body to this many characters.
Inputs: uid (required), list_name (required), include_body, max_body_chars.
list_mailing_listsA
List IETF mailing-list mailboxes available over IMAP.
Args:
pattern: IMAP LIST pattern, e.g. "agent*" or "*".
limit: Maximum mailbox names to return (hard-capped at 100).
Inputs: limit, pattern.
page_listA
Page through a list's messages, newest first.
Args:
list_name: Mailbox / list name, e.g. "agent2agent".
offset: How many messages back from the newest to start (0 = newest).
limit: Page size (default 25, hard-capped at 100).
Inputs: list_name (required), limit, offset.
search_listA
Search a mailing list, returning matching message summaries (newest first).
Args:
list_name: Mailbox / list name, e.g. "agent2agent".
subject: Substring to match in the Subject header.
from_addr: Substring to match in the From header.
text: Free-text search across the whole message.
since: Only messages on/after this ISO date (YYYY-MM-DD).
before: Only messages before this ISO date (YYYY-MM-DD).
limit: Max summaries to return (default 25, hard-capped at 100).
Inputs: list_name (required), text, limit, since, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
The tools are mostly distinct: list_mailing_lists discovers lists, search_list filters by criteria, page_list browses without filters, and get_message fetches a specific message. However, search_list with no criteria could overlap with page_list, though descriptions clarify the intended use.
All four tool names follow a consistent verb_noun pattern (list_mailing_lists, search_list, page_list, get_message) with underscore separation, making the naming predictable and easy to navigate.
With only 4 tools, the server is well-scoped for a read-only IMAP mailing list client. Each tool serves a clear purpose and the count is appropriate for the domain.
The core workflows are covered: discovering lists, searching or browsing messages, and fetching a full message. Minor gaps exist, such as no direct message count or raw header retrieval, but these are not critical for typical usage.
Related MCP Connectors
Your IMAP mailbox as an MCP server: read, search and (if you allow it) organize mail. Open source.
Your own IMAP mailbox in any MCP client: search, read, flag, move; send and delete need confirm.
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
Your mailbox for MCP clients: search, read, draft, send, rules and notes. Sending is off by default.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables read-only IMAP email access through MCP, including listing accounts and folders, searching messages, retrieving message bodies and attachments, and viewing threads without modifying mail state.MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients and AI assistants to search and read email through read-only IMAP access, including bounded message reads and explicitly selected attachment retrieval.MIT
- AlicenseAqualityBmaintenanceEnables MCP clients to manage multiple IMAP/SMTP mailboxes by listing folders, searching and reading messages, preparing Markdown drafts and replies, and sending only a draft the user has reviewed and confirmed.914 npmMIT
- AlicenseAqualityCmaintenanceEnables MCP clients to search and read an IMAP mailbox, extract attachment text, reconstruct threads, and prepare plain-text drafts for review and manual sending, without sending, moving, deleting, modifying, or marking messages as read.6MIT