Better MCP Server

Better MCP server for Email (IMAP/SMTP) with composite tools optimized for AI agents

Remote serverstreamable-httpPython

What is the Better MCP server?

Better MCP server for Email (IMAP/SMTP) with composite tools optimized for AI agents. The better mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 7 defined tools rather than through you.

What it actually does

  • Multi-account support — -- manage 6+ email accounts (Gmail, Outlook, Yahoo, iCloud, Zoho, ProtonMail, custom IMAP)
  • App Passwords — -- no OAuth2 setup required for most providers; clone and run in 1 minute
  • 5 composite tools — with 21 actions (plus help + config__open_relay) -- search, read, send, reply, forward, organize, and credential setup in single calls
  • Auto-discovery — -- provider settings detected from email address, custom IMAP host supported
  • Thread-aware — -- reply/forward maintains In-Reply-To and References headers
  • Tiered token optimization — -- compressed descriptions + on-demand help tool + MCP Resources

Its toolset

Everything the assistant can do here goes through one of these:

  • messages — search, read, mark_read, mark_unread, flag, unflag, move, archive, trash
  • folders — list
  • attachments — list, download
  • send — new, reply, forward
  • config — status, setup_status, setup_start, setup_reset, setup_complete, set, cache_clear
  • config__open_relay — -
  • help — -

Adding it to your client

Being a remote server, there is no local install. You register the endpoint with your client, authorise it once, and the tools appear.

Configuration

You will need 8 environment variables: EMAIL_CREDENTIALS, OUTLOOK_CLIENT_ID, PUBLIC_URL, CREDENTIAL_SECRET, MCP_DCR_SERVER_SECRET, YOUR_ACCOUNT_ID, ACCOUNT_ID, YOUR_PUBLIC_URL. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

When to reach for it

Plenty of team communication servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Better's toolset — messages, folders, attachments and 4 more — is a fair guide to whether it matches your workflow. It is maintained by GitHub Actions; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Caveats

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the better mcp server does with a few real requests.

Available tools

ToolWhat it does
messagessearch, read, mark_read, mark_unread, flag, unflag, move, archive, trash
folderslist
attachmentslist, download
sendnew, reply, forward
configstatus, setup_status, setup_start, setup_reset, setup_complete, set, cache_clear
config__open_relay-
help-

How to install the Better MCP server

{
  "mcpServers": {
    "better-email": {
      "command": "npx",
      "args": ["--yes", "@n24q02m/better-email-mcp@latest"],
      "env": {
        "EMAIL_CREDENTIALS": "user@gmail.com:app-password"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
EMAIL_CREDENTIALSConfiguration value read at startup.Optional
OUTLOOK_CLIENT_IDConfiguration value read at startup.Optional
PUBLIC_URLEndpoint or connection string the server talks to.Yes
CREDENTIAL_SECRETCredential the server authenticates with.Yes
MCP_DCR_SERVER_SECRETCredential the server authenticates with.Yes
YOUR_ACCOUNT_IDConfiguration value read at startup.Optional
ACCOUNT_IDConfiguration value read at startup.Optional
YOUR_PUBLIC_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • Use Better to messages.
  • Use Better to folders.
  • Use Better to attachments.

Frequently asked questions

It connects Better to MCP-compatible AI assistants such as Claude and Cursor, exposing 7 tools (messages, folders, attachments, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Better directly.