Skip to content
MCP server
Registry

IMAP Draft MCP Server

IMAP mail for agents: search, read and write drafts. It can't send, move or delete.

IMAP Draft scores 63 (Good), licensed MIT and written in Go. It installs as a local process. It does not declare tools yet. Filed under Communication. GitHub shows 0 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by zedong-pengMITGo0 stars
Trust score
63Good
Trust score 63 of 100, Good

Good trust

63 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 63 comes from

22 + 20 + 0 + 10 + 4 + 7 = 63. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity0 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 0 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "zedong-peng-imap-draft-mcp": {      "command": "docker",      "args": [        "run",        "-i",        "--rm",        "ghcr.io/zedong-peng/imap-draft-mcp:v0.2.0"      ],      "env": {        "EMAIL_CREDENTIALS": "YOUR_EMAIL_CREDENTIALS"      }    }  }}

Environment variables

NameRequiredNotes
EMAIL_CREDENTIALSSecretRequiredComma-separated address:password[:imap-host[:port]], e.g. me@icloud.com:app-password

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

imap-draft-mcp

IMAP for AI agents: search, read and write drafts. It can't send.

Three tools:

  • search: find messages across your accounts, newest first.
  • read: one message's headers, text and attachment names. It stays unread.
  • draft: write a new message, a reply (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.

Install

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.

Configure

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.<domain>); 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.

Run

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.

On a server

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.

Build and test

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.

Frequently asked questions

What is IMAP Draft MCP Server?

IMAP mail for agents: search, read and write drafts. It can't send, move or delete.

How do I install IMAP Draft MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. IMAP Draft MCP Server runs locally from the Docker image ghcr.io/zedong-peng/imap-draft-mcp:v0.2.0 with the command docker run -i --rm ghcr.io/zedong-peng/imap-draft-mcp:v0.2.0.

Is IMAP Draft MCP Server free and open source?

Yes. IMAP Draft MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does IMAP Draft MCP Server support remote (HTTP) connections?

No remote endpoint is listed for IMAP Draft MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is IMAP Draft MCP Server's trust score calculated?

IMAP Draft MCP Server scores 63 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server