Find emails needing follow-up -- unanswered sent emails, flagged unreplied, draft contextual responses
Add this skill
npx mdskills install n24q02m/follow-upActionable workflow for finding unanswered emails and drafting contextual follow-ups
mcp-name: io.github.n24q02m/better-email-mcp
IMAP/SMTP email server for AI agents -- 5 composite tools with multi-account and auto-discovery
help tool + MCP ResourcesVia marketplace (includes skills: /inbox-review, /follow-up):
/plugin marketplace add n24q02m/claude-plugins
/plugin install better-email-mcp@n24q02m-plugins
Set credentials in ~/.claude/settings.local.json or shell profile. See Prerequisites.
Add to ~/.codex/config.toml:
[mcp_servers.better-email-mcp]
command = "npx"
args = ["-y", "@n24q02m/better-email-mcp"]
Prerequisites: Create App Passwords (NOT your regular password):
{
"mcpServers": {
"better-email": {
"command": "npx",
"args": ["-y", "@n24q02m/better-email-mcp@latest"]
}
}
}
Other runners: bun x, pnpm dlx, yarn dlx also work.
{
"mcpServers": {
"better-email": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "EMAIL_CREDENTIALS",
"n24q02m/better-email-mcp:latest"
]
}
}
}
Configure EMAIL_CREDENTIALS in ~/.claude/settings.local.json or your shell profile. See Environment Variables below.
| Tool | Actions | Description |
|---|---|---|
messages | search, read, mark_read, mark_unread, flag, unflag, move, archive, trash | Search, read, and organize emails |
folders | list | List mailbox folders |
attachments | list, download | List and download email attachments |
send | new, reply, forward | Compose, reply, and forward emails |
help | - | Get full documentation for any tool |
| URI | Description |
|---|---|
email://docs/messages | Message operations reference |
email://docs/folders | Folder operations reference |
email://docs/attachments | Attachment operations reference |
email://docs/send | Send/compose reference |
email://docs/help | Full documentation |
No environment variables needed. On first start, the server opens a relay setup page:
npx, or Docker)https://better-email-mcp.n24q02m.com)email:app-password format (comma-separated for multi-account)Your credentials never leave your machine. The relay server only sees encrypted data.
For CI/automation, you can still use environment variables (see below).
Run as a multi-user HTTP server with OAuth 2.1 authentication:
{
"mcpServers": {
"better-email": {
"type": "http",
"url": "https://better-email-mcp.n24q02m.com/mcp"
}
}
}
docker run -p 8080:8080 \
-e TRANSPORT_MODE=http \
-e PUBLIC_URL=https://your-domain.com \
-e DCR_SERVER_SECRET=$(openssl rand -hex 32) \
n24q02m/better-email-mcp:latest
Users provide their own email credentials through the OAuth flow. No server-side EMAIL_CREDENTIALS needed.
Outlook, Hotmail, and Live accounts use OAuth2 automatically. On first use with an Outlook account:
~/.better-email-mcp/tokens.jsonNo App Password is needed for Outlook accounts.
| Variable | Required | Default | Description |
|---|---|---|---|
EMAIL_CREDENTIALS | Yes (stdio) | - | Email credentials (user@gmail.com:app-password, comma-separated for multi-account) |
TRANSPORT_MODE | No | stdio | Set to http for remote mode |
PUBLIC_URL | Yes (http) | - | Server's public URL for OAuth redirects |
DCR_SERVER_SECRET | Yes (http) | - | HMAC secret for stateless client registration |
PORT | No | 8080 | Server port |
OUTLOOK_CLIENT_ID | No | - | Custom Azure AD client ID for self-hosted Outlook OAuth2 |
EMAIL_CREDENTIALS=user1@gmail.com:pass1,user2@outlook.com:pass2,user3@yahoo.com:pass3
EMAIL_CREDENTIALS=user@custom.com:password:imap.custom.com
| Query | Description |
|---|---|
UNREAD | Unread emails |
FLAGGED | Starred emails |
SINCE 2024-01-01 | Emails after date |
FROM boss@company.com | Emails from sender |
SUBJECT meeting | Emails matching subject |
UNREAD SINCE 2024-06-01 | Compound filter |
| Provider | Auth | Save-to-Sent |
|---|---|---|
| Gmail | App Password | Auto (skipped) |
| Yahoo | App Password | Auto (skipped) |
| iCloud/Me.com | App-Specific Password | Auto (skipped) |
| Outlook/Hotmail/Live | OAuth2 (Device Code) | IMAP APPEND |
| Zoho | App Password | IMAP APPEND |
| ProtonMail | ProtonMail Bridge | IMAP APPEND |
| Custom | Via email:pass:imap.host | IMAP APPEND |
git clone https://github.com/n24q02m/better-email-mcp.git
cd better-email-mcp
bun install
bun run dev
MIT -- See LICENSE.
Install via CLI
npx mdskills install n24q02m/follow-upFollow Up is a free, open-source AI agent skill. Find emails needing follow-up -- unanswered sent emails, flagged unreplied, draft contextual responses
Install Follow Up with a single command:
npx mdskills install n24q02m/follow-upThis downloads the skill files into your project and your AI agent picks them up automatically.
Follow Up works with Claude Code, Claude Desktop, Cursor, Vscode Copilot, Windsurf, Continue Dev, Gemini Cli, Amp, Roo Code, Goose. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.