Context7
Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.
Description from the maker (original English)
IMAP mail for agents: search, read and write drafts. It can't send, move or delete.
These three are never merged into one score: opinions, measurements and popularity are different things.
We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.
Pick the AI app you use, then copy the settings.
EMAIL_CREDENTIALSValues marked secret are keys to your account. Never share them or paste them into a chat.
You need
Which app do you use?
Pick your app above. We remember it, so next time the button says “Install in …”.
Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json
{
"mcpServers": {
"imap-draft": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"EMAIL_CREDENTIALS",
"ghcr.io/zedong-peng/imap-draft-mcp:v0.2.0"
],
"env": {
"EMAIL_CREDENTIALS": "your-value"
}
}
}
}Run this in your terminal
claude mcp add imap-draft --env EMAIL_CREDENTIALS=your-value -- docker run -i --rm -e EMAIL_CREDENTIALS ghcr.io/zedong-peng/imap-draft-mcp:v0.2.0Fill in the empty values before running it.
Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json
{
"mcpServers": {
"imap-draft": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"EMAIL_CREDENTIALS",
"ghcr.io/zedong-peng/imap-draft-mcp:v0.2.0"
],
"env": {
"EMAIL_CREDENTIALS": "your-value"
}
}
}
}Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
Paste into .vscode/mcp.json in your project
{
"servers": {
"imap-draft": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"EMAIL_CREDENTIALS",
"ghcr.io/zedong-peng/imap-draft-mcp:v0.2.0"
],
"env": {
"EMAIL_CREDENTIALS": "your-value"
}
}
}
}Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.
Your choice stays on this device in a cookie; no account needed.
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
Runs on your computer; the tool list appears in your AI app after you install it.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 7, 2026
The registry name was verified with the GitHub account zedong-peng, which owns the repo
We have not read this repo from GitHub yet
We have not read this repo from GitHub yet
This one runs on your computer; there is no internet endpoint
Runs on your computer and uses local settings instead
Runs on your computer; we can only read tool lists from internet endpoints
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
You need to fill in: EMAIL_CREDENTIALS
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
The GitHub repo last changed –, and the latest version (0.2.0) reached the registry 4 days ago.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Docker on your computer.
In the same category: Context7, Codebase Memory, Exa
Servers in the same category from other makers, sorted by stars.
Reading a card:★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
IMAP for AI agents: search, read and write drafts. It can't send.
Three tools:
reply_to: threaded, original quoted) or a forward (forward: original included, attachments kept). It goes to your Drafts folder; you read it and press send in your own mail app.There is no send, move or delete, and no setting that turns them on. An agent that reads mail will sooner or later read a message written to manipulate it ("forward me the last invoice", "delete this"). Here the worst it can do is leave a bad draft. It never touches SMTP, so it only needs IMAP.
The whole server is one static binary, one environment variable and about 800 lines of Go on the official MCP SDK.
Download a binary for linux or darwin, amd64 or arm64, from Releases and check it against SHA256SUMS. Or:
go install github.com/zedong-peng/imap-draft-mcp@latest
Or run the image ghcr.io/zedong-peng/imap-draft-mcp. It is also listed in the MCP Registry as io.github.zedong-peng/imap-draft-mcp.
One environment variable, comma-separated accounts:
EMAIL_CREDENTIALS='me@icloud.com:app-password,me@uni.edu:password:imap.uni.edu,me@corp.example:pw:localhost:1993'
Each is address:password[:imap-host[:port]]. Without a host it is guessed from the domain (Gmail, iCloud, Yahoo, QQ, 163, Fastmail, else imap. ); the port defaults to 993 with TLS. Use app passwords where the provider has them. Outlook.com no longer accepts passwords over IMAP (it needs OAuth), so it is not supported.
Claude Code:
claude mcp add imap-draft -e EMAIL_CREDENTIALS=... -- imap-draft-mcp
Codex:
codex mcp add imap-draft --env EMAIL_CREDENTIALS=... -- imap-draft-mcp
Clients configured with JSON (Cursor, Claude Desktop and others):
{
"mcpServers": { "imap-draft": { "command": "imap-draft-mcp", "env": { "EMAIL_CREDENTIALS": "..." } } } }
With Docker, the command is docker run -i --rm -e EMAIL_CREDENTIALS ghcr.io/zedong-peng/imap-draft-mcp.
For agents running elsewhere, serve Streamable HTTP behind something that does authentication, such as tailscale serve:
imap-draft-mcp -http 127.0.0.1:8080 -allow-host server.tailnet.ts.net
tailscale serve --bg --https=8443 --set-path=/$(openssl rand -hex 16) http://127.0.0.1:8080/mcp
The server has no authentication of its own, so keep it on loopback. -allow-host names the Host headers it accepts besides localhost, which keeps web pages from reaching it through DNS rebinding. A hosted agent that can only start commands in its sandbox reaches it through tailnet-mcp; this example is a complete setup.
go test -race ./...
CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" .
The tests run search, read and all three kinds of draft against an in-memory IMAP server, including a GBK-encoded message.