ME

marlinjai/email-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

26 stars 18 forks 品質 80 トレンド 20MIT

Gmail、Outlook、iCloud、およびIMAPを横断する電子メールアクセスのための統一MCPサーバー

概要

Gmail、Outlook、iCloud、および一般的なIMAPプロバイダ間で電子メールアクセスのための統一されたMCPサーバー。 - -- Gmail (REST API), Outlook (Microsoft Graph), iCloud (IMAP), 汎用 IMAP/SMTP - -- Gmail と Outlook のブラウザーベースの OAuth フロー, 自動トークン更新 - -- ドラフトの検索、読み込み、送信、返信、転送、整理、管理 - -- 単一の呼び出しでメールの数百を削除、移動、またはマーク - -- デフォルトでコンパクトな検索結果 (~20KB と ~1.4MB) オプションのフルボディ検索 - -- AES-256-GCM 機械由来のキーで残りの部分での暗号化 - -- 豊富な機能のために利用可能なGmail APIとMicrosoft Graphを使用して、ユニバーサルの互換性のためにIMAPに戻ります npx で直接実行するか(インストール不要): 1。 インタラクティブなセットアップウィザードを実行して、電子メールアカウントを追加します。 このパッケージは、2つのバイナリ(MCPサーバーのメールmcp、このウィザードのメールmcp-setup)を宣言します.

概要(AI 翻訳)

Gmail、Outlook、iCloud、および一般的なIMAPプロバイダ間で電子メールアクセスのための統一されたMCPサーバー。

##特徴

-マルチプロペラサポート - Gmail(REST API)、Outlook(Microsoft Graph)、iCloud(IMAP)、および汎用IMAP/SMTP

  • OAuth2 認証 – ブラウザベースの OAuth は Gmail と Outlook のフローを流れ、自動トークンが更新されます。
  • フルメールクライアント* – ドラフトの検索、読み込み、送信、返信、転送、整理、管理
  • バッチ操作 – 単一の呼び出しでメールの何百もの削除、移動、マーク
  • 軽量検索 – デフォルトでコンパクトな検索結果 (~20KB と ~1.4MB) オプションのフルボディ検索
  • 暗号化された認証ストレージ – AES-256-GCM マシン由来のキーで残りの部分での暗号化
  • Provider-native APIs – Gmail API と Microsoft Graph を使用して、豊富な機能が利用でき、ユニバーサルの互換性のために IMAP に戻ります

インストール

npmからグローバルにインストールします。

npx で直接実行するか(インストール不要):

クイックスタート

1。 インタラクティブなセットアップウィザードを実行して、電子メールアカウントを追加します。

[-p/[--package]]]フラグが必要です。 このパッケージは、MCP サーバーの [email-mcp-setup] の 2 つのバイナリを宣言します.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

@marlinjai/email-mcp

A unified MCP server for email access across Gmail, Outlook, iCloud, and generic IMAP providers.

Features

  • Multi-provider support – Gmail (REST API), Outlook (Microsoft Graph), iCloud (IMAP), and generic IMAP/SMTP
  • OAuth2 authentication – Browser-based OAuth flows for Gmail and Outlook, with automatic token refresh
  • Full email client – Search, read, send, reply, forward, organize, and manage drafts
  • Batch operations – Delete, move, or mark hundreds of emails in a single call
  • Lightweight search – Compact search results by default (~20KB vs ~1.4MB) with optional full body retrieval
  • Encrypted credential storage – AES-256-GCM encryption at rest with machine-derived keys
  • Provider-native APIs – Uses Gmail API and Microsoft Graph where available for richer features, falls back to IMAP for universal compatibility

Installation

Install globally from npm:

npm install -g @marlinjai/email-mcp

Or run directly with npx (no install needed):

npx @marlinjai/email-mcp

Quick Start

  1. Run the interactive setup wizard to add your email accounts:
npx -y -p @marlinjai/email-mcp@latest email-mcp-setup

The -p/--package flag is required. This package declares two binaries (email-mcp for the MCP server, email-mcp-setup for this wizard). Without -p, npx runs the bin matching the package’s own name (email-mcp, the server) and silently passes email-mcp-setup to it as an ignored argument — the server then sits waiting for MCP protocol input on stdin forever, producing no output at all. It looks exactly like a hang. -p tells npx explicitly which package to resolve and which of its binaries to actually run.

The wizard will walk you through provider selection and authentication. After each account, it asks if you’d like to add another — so you can set up Gmail, Outlook, and iCloud all in one go.

  1. Add the server to your MCP configuration (.mcp.json):
{
  "mcpServers": {
    "email": {
      "command": "npx",
      "args": ["@marlinjai/email-mcp"]
    }
  }
}
  1. Start using email tools in Claude Code — search your inbox, send emails, organize messages, and more.

Provider Setup Guides

Gmail

No configuration needed — the setup wizard handles everything using built-in OAuth credentials (PKCE):

npx -y -p @marlinjai/email-mcp@latest email-mcp-setup
# Select "Gmail" when prompted
# Choose "Full" or "Restricted" permission scope when asked
# A browser window opens for Google authorization
# Grant the requested permissions and return to the terminal

The wizard asks which Gmail permission scope to authorize:

  • Full (default) — everything below, plus immediate, Trash-bypassing permanent deletion (https://mail.google.com/, Gmail’s maximum-permission scope).
GitHub で README 全文を見る

インストール

npx @marlinjai/email-mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "email": { "command": "npx", "args": ["@marlinjai/email-mcp"] } } }