プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Email (IMAP/SMTP)

作者:boutquinバージョン 1.0.1i★ –iパソコンで動く
レジストリ名io.github.boutquin/email

インストール

概要

作者による説明(英語の原文)

Multi-account IMAP/SMTP email server with 22 tools for reading, sending, searching, and organizing.

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: チャット・メール
  • 入力が必要なもの:EMAIL_ACCOUNTS

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • 自分で入力するもの: EMAIL_CONFIG_FILE, EMAIL_ACCOUNTS

「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。

必要なもの

  • DockerDockerのインストール

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "email": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "EMAIL_CONFIG_FILE",
        "-e",
        "EMAIL_ACCOUNTS",
        "ghcr.io/boutquin/mcp-server-email:latest"
      ],
      "env": {
        "EMAIL_CONFIG_FILE": "your-value",
        "EMAIL_ACCOUNTS": "your-value"
      }
    }
  }
}

ターミナルでこれを実行します

claude mcp add email --env EMAIL_CONFIG_FILE=your-value --env EMAIL_ACCOUNTS=your-value -- docker run -i --rm -e EMAIL_CONFIG_FILE -e EMAIL_ACCOUNTS ghcr.io/boutquin/mcp-server-email:latest

動かす前に、空欄の値を入力してください。

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "email": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "EMAIL_CONFIG_FILE",
        "-e",
        "EMAIL_ACCOUNTS",
        "ghcr.io/boutquin/mcp-server-email:latest"
      ],
      "env": {
        "EMAIL_CONFIG_FILE": "your-value",
        "EMAIL_ACCOUNTS": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "email": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "EMAIL_CONFIG_FILE",
        "-e",
        "EMAIL_ACCOUNTS",
        "ghcr.io/boutquin/mcp-server-email:latest"
      ],
      "env": {
        "EMAIL_CONFIG_FILE": "your-value",
        "EMAIL_ACCOUNTS": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

自分で入力する値

  • EMAIL_CONFIG_FILE env
    Path to account JSON config file
  • EMAIL_ACCOUNTS 秘密 env
    Inline JSON array of account configs

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月6日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント boutquin で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

チャット・メールのほかのサーバーとの比較i

  • このカテゴリのほかの1769件のうち0%よりスターが多い
  • このカテゴリのほかの1769件のうち4%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの1769件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Email (IMAP/SMTP)は安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

入力が必要なもの:EMAIL_ACCOUNTS

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(1.0.1)がレジストリに届いたのは8 か月前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにDockerも必要です。

代わりに使えるものは?

同じカテゴリには:Vexa, emailmd, MCP WhatsApp Cloud

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Vexa

作者:Vexa-ai

Meeting bot and transcripts for Google Meet, Teams and Zoom. Live or after, speakers labelled.

クラウドで動く★ 2,949Apache-2.02 か月前更新
インストール

emailmd

作者:anypost

Render markdown into email-safe HTML, lint drafts for deliverability problems, and preview emails.

パソコンでもクラウドでも★ 1,385MIT31 日前更新
インストール

MCP WhatsApp Cloud

作者:codespar

MCP server for WhatsApp Cloud API (Meta) — messages, media, and templates via Graph API

パソコンで動く★ 277MIT5 か月前更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

mcp-server-email

Multi-account email server for the Model Context Protocol. Gives LLMs full email access — read, send, search, organize — over IMAP/SMTP with connection pooling, rate limiting, and retry. Designed as the remote-email counterpart to apple-bridge (local Mail.app access).

Quick Start

  1. Install
   go install github.com/boutquin/mcp-server-email/cmd/mcp-server-email@latest
  1. Create a config file (~/.config/mcp-email/accounts.json)

For well-known providers (Gmail, Outlook, Yahoo, iCloud, Fastmail, Zoho), host and port are auto-detected from the email domain — just provide credentials:

   [

{ "id": "hello", "email": "hello@gmail.com", "username": "hello@gmail.com", "password": "app-password-here" } ]

For custom mail servers, specify host and port explicitly:

   [

{ "id": "work", "email": "hello@example.com", "imap_host": "mail.example.com", "imap_port": 993, "smtp_host": "mail.example.com", "smtp_port": 465, "username": "hello@example.com", "password": "app-password-here" } ]

   chmod 600 ~/.config/mcp-email/accounts.json
  1. Add to Claude Code (~/.claude.json)
   {

"mcpServers": { "email": { "command": "mcp-server-email", "env": { "EMAIL_CONFIG_FILE": "~/.config/mcp-email/accounts.json" } } } }

  1. Restart Claude Code — the email_* tools are now available.

Installation

Go Install (recommended for Go developers)
go install github.com/boutquin/mcp-server-email/cmd/mcp-server-email@latest
Homebrew (macOS/Linux)
brew install boutquin/tap/mcp-server-email
Binary Download

Download pre-built binaries for your platform from GitHub Releases.

Available for: Linux (amd64, arm64), macOS (amd64, arm64), Windows (amd64, arm64).

Docker
docker run --rm \

-e EMAIL_ACCOUNTS='[{"id":"main","email":"user@example.com","imap_host":"mail.example.com","imap_port":993,"smtp_host":"mail.example.com","smtp_port":465,"username":"user@example.com","password":"app-password"}]' \ ghcr.io/boutquin/mcp-server-email:latest

MCP Bundle (Claude Desktop)

Download the .mcpb file from Releases and open in Claude Desktop.

Build from source
git clone https://github.com/boutquin/mcp-server-email.git

cd mcp-server-email go build -o mcp-server-email ./cmd/mcp-server-email

Configuration

Accounts are loaded once at startup. Changes require a server restart.

Config file vs environment variable
ApproachBest for
EMAIL_CONFIG_FILE — path to a JSON fileProduction use. File can be permission-locked (chmod 600)
EMAIL_ACCOUNTS — inline JSON in env varTesting, CI, or containerized deployments

If both are set, EMAIL_ACCOUNTS takes precedence.

Account JSON schema
[

{ "id": "hello", "email": "hello@example.com", "imap_host": "mail.example.com", "imap_port": 993, "smtp_host": "mail.example.com", "smtp_port": 465, "username": "hello@example.com", "password": "app-password-here" } ]

FieldRequiredDescription
idYesUnique account identifier
emailYesEmail address
imap_hostNo*IMAP server hostname
imap_portNo*IMAP port (993 = implicit TLS, 143 = STARTTLS)
smtp_hostNo*SMTP server hostname
smtp_portNo*SMTP port (465 = implicit TLS, 587 = STARTTLS)
usernameYesLogin username
passwordYes**App password or account password
use_starttlsNoOverride TLS auto-detection (true/false)
insecure_skip_verifyNoSkip TLS certificate verification (dev/testing)
auth_methodNo"password" (default) or "oauth2"
oauth_client_idNoOAuth2 client ID (required when auth_method is "oauth2")
oauth_client_secretNoOAuth2 client secret
oauth_token_fileNoOverride token file path

*Host and port are auto-detected for well-known providers (see below). Required for custom servers. **Not required when using OAuth2 authentication.

Provider auto-detection

When imap_host/smtp_host are omitted, the server detects settings from the email domain:

ProviderDomainsIMAPSMTP
Gmailgmail.com, googlemail.comimap.gmail.com:993smtp.gmail.com:587
Outlookoutlook.com, hotmail.com, live.comoutlook.office365.com:993smtp.office365.com:587
Yahooyahoo.comimap.mail.yahoo.com:993smtp.mail.yahoo.com:587
iCloudicloud.com, me.com, mac.comimap.mail.me.com:993smtp.mail.me.com:587
Fastmailfastmail.com, fastmail.fmimap.fastmail.com:993smtp.fastmail.com:587
Zohozoho.com, zohomail.comimap.zoho.com:993smtp.zoho.com:587

Explicit host/port in the config always takes precedence over auto-detection.

TLS modes

TLS mode is auto-detected from port:

PortProtocolMode
993IMAPImplicit TLS
143IMAPSTARTTLS
465SMTPImplicit TLS
587SMTPSTARTTLS

Override with "use_starttls": true or "use_starttls": false in the account object. Omit for auto-detection (recommended).

OAuth2 authentication

For providers that support it (Gmail, Outlook), you can use OAuth2 instead of app passwords. This uses the device code flow (RFC 8628) — no browser redirect needed.

  1. Create OAuth2 credentials in the provider's developer console (Google Cloud Console or Azure AD)
  1. Configure the account with auth_method: "oauth2":
   [

{ "id": "gmail", "email": "user@gmail.com", "username": "user@gmail.com", "auth_method": "oauth2", "oauth_client_id": "your-client-id.apps.googleusercontent.com", "oauth_client_secret": "your-client-secret" } ]

  1. On first connection, the server initiates the device code flow — printing a verification URL and code to stderr. Visit the URL and enter the code to authorize.
  1. Tokens are persisted in ~/.config/mcp-email/tokens/ and automatically refreshed. Subsequent connections reuse the stored token without re-authorization.

Supported OAuth2 providers: Gmail (gmail.com, googlemail.com) and Outlook (outlook.com, hotmail.com, live.com).

Environment variables
VariableRequiredDefaultDescription
EMAIL_CONFIG_FILEYes*—Path to JSON config file
EMAIL_ACCOUNTSYes*—JSON array of account configs (inline)
EMAIL_DEFAULT_ACCOUNTNoFirst accountDefault account ID
EMAIL_IMAP_TIMEOUT_MSNo30000IMAP operation timeout (ms)
EMAIL_SMTP_TIMEOUT_MSNo30000SMTP operation timeout (ms)
EMAIL_IMAP_RATE_LIMITNo60IMAP requests/minute/account
EMAIL_SMTP_RATE_LIMITNo100SMTP sends/hour/account
MAX_ATTACHMENT_SIZE_MBNo18Max size per attachment (MB)
MAX_TOTAL_ATTACHMENT_SIZE_MBNo18Max total attachment size per message (MB)
MAX_DOWNLOAD_SIZE_MBNo25Max attachment download size (MB)
EMAIL_POOL_CLOSE_TIMEOUT_MSNo5000Pool close timeout (ms)
EMAIL_DEBUGNofalseDebug logging to stderr
LOG_LEVELNoinfoLog level: debug, info, warn, error
LOG_FORMATNojsonLog format: json or text

*One of EMAIL_CONFIG_FILE or EMAIL_ACCOUNTS is required.

Config file permissions

The config file contains account passwords. Always restrict access:

chmod 600 ~/.config/mcp-email/accounts.json

Tools (22)

Account & folder tools
ToolDescriptionKey params
email_accountsList configured accounts with connection status—
email_foldersList all folders with unread/total countsaccount?
email_folder_createCreate new foldername, account?
Message listing
ToolDescriptionKey params
email_listList messages in folderfolder?, limit?, offset?, includeBody?, account?
email_unreadList unread messagesfolder?, limit?, includeBody?, account?
email_searchSearch subject and bodyquery, from?, to?, since?, before?, folder?, limit?, includeBody?, account?
Message operations
ToolDescriptionKey params
email_getGet full message by IDid
email_read_bodyRead email body with paginationid, offset?, limit?, format?
email_moveMove message to folderid, destination
email_copyCopy message to folderid, destination
email_deleteDelete message (trash or permanent expunge)id, permanent?
email_mark_readMark as read/unreadid, read
email_flagFlag/unflag messageid, flagged
email_replyReply to a message (sets In-Reply-To, References, quotes body)id, body, all?, cc?, bcc?, isHtml?, account?
email_forwardForward a message (re-attaches original attachments)id, to, body?, cc?, bcc?, isHtml?, account?
email_batchBatch operations on multiple messagesaction, ids, destination?, permanent?, read?, flagged?
Attachments & threads
ToolDescriptionKey params
email_attachment_listList attachments on a messageid
email_attachment_getDownload attachment by indexid, index, saveTo?
email_threadGet conversation thread (searches across INBOX, Sent, Archive, and All Mail)id
Send & drafts
ToolDescriptionKey params
email_sendSend via SMTP with optional attachmentsto, subject, body, cc?, bcc?, replyTo?, isHtml?, attachments?, account?
email_draft_createSave draft with optional attachmentsto?, subject?, body?, cc?, bcc?, isHtml?, attachments?, account?
email_draft_sendSend existing draftid

All optional account params default to the configured default account.

Search

email_search searches both subject and body using IMAP SEARCH OR (SUBJECT "q") (BODY "q").

Optional filters narrow the candidate set server-side before body scanning:

FilterFormatExample
fromEmail address or name"alice@example.com"
toEmail address or name"bob@example.com"
sinceYYYY-MM-DD"2026-01-01"
beforeYYYY-MM-DD"2026-02-01"

The existing operation timeout (default 30s) prevents hung body searches on large mailboxes.

Attachments

email_send and email_draft_create accept an attachments p

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く