Command Palette

Search for a command to run...

Весь каталог
MCP-сервер № 96183

Mail Mcp Bridge

Connect macOS Mail to AI through Model Context Protocol

Бесплатно
GitHubEmbed

Установка Mail Mcp Bridge

Сборка из исходников

У сервера нет опубликованного npm/PyPI-пакета — склонируй репозиторий и собери по его README, затем добавь получившуюся команду в свой клиент.

Открыть репозиторий
github.com/fatbobman/mail-mcp-bridge

Описание

Connect macOS Mail to AI through Model Context Protocol

README

Connect macOS Mail to AI through Model Context Protocol (MCP)

Mail MCP Bridge enables AI assistants (like Claude, ChatGPT) to directly access and analyze your macOS Mail emails. Simply copy a Message-ID from Mail and paste it to AI — no manual email exporting needed.

Demo: See it in action (Click to watch)

Demo Video

Shows: Copy Message-ID from Mail → AI analyzes email content

🇨🇳 中文版

🎯 What & Why

The Problem: Much of real-world communication happens through email — project collaborations, client communications, business negotiations, technical support. Manually exporting emails for AI analysis is tedious and inefficient.

The Solution: Mail MCP Bridge lets AI directly read your emails through a simple workflow:

  • Copy Message-ID from Mail (one keyboard shortcut)
  • Paste to AI
  • AI analyzes email content instantly

Use Cases:

  • 📋 Track project progress via email threads
  • 💼 Extract key information from business communications
  • 🔍 Summarize long email conversations
  • 📊 Extract structured data (requirements, feedback, commitments)
  • 🤝 Review conversation history
  • 📎 Analyze email attachments (invoices, reports, documents)

✨ Features

  • 📧 Direct Access - AI reads your emails through MCP protocol
  • 🧵 Thread Support - Retrieve entire conversations with one Message-ID
  • 📎 Attachment Extraction - Extract email attachments for AI analysis (PDFs, documents, images)
  • 🎨 Claude Code Plugins - Pre-built commands and skills for intelligent email analysis
  • ⚡ Fast - Millisecond-level query response
  • 🎯 Clean Text - Optimized text extraction for AI (excludes HTML, embedded images)
  • 🔒 Privacy First - Runs locally, emails never leave your Mac

🚀 Quick Start

Prerequisites

  • macOS 12.0+ (with Mail app)
  • Python 3.9+
  • MCP-compatible AI assistant (e.g., Claude Desktop)

Installation

# Clone the repository
git clone https://github.com/fatbobman/mail-mcp-bridge.git
cd mail-mcp-bridge

# Install MCP dependencies
pip3 install mcp

Configure Claude Desktop

  1. Find config location:

    ~/Library/Application Support/Claude/claude_desktop_config.json
    
  2. Edit config (create if doesn't exist):

    {
      "mcpServers": {
        "mail": {
          "command": "python3",
          "args": [
            "/path/to/mail-mcp-bridge/src/mail_mcp_server.py"
          ]
        }
      }
    }
    

    Important: Replace /path/to/mail-mcp-bridge with your actual project path.

    Optional: Configure attachment temp directory (defaults to /tmp/mail-mcp-attachments):

    {
      "mcpServers": {
        "mail": {
          "command": "python3",
          "args": [
            "/path/to/mail-mcp-bridge/src/mail_mcp_server.py"
          ],
          "env": {
            "MAIL_ATTACHMENT_PATH": "/tmp"
          }
        }
      }
    }
    
  3. Restart Claude Desktop (quit completely, then reopen)

Install Claude Code Plugins (Optional but Recommended)

Mail MCP includes ready-to-use Claude Code plugins that provide intelligent email analysis capabilities:

What you get:

  • 🎯 Smart Attachment Analysis - Automatically detects important attachments (invoices, contracts, tax docs)
  • 🧵 Thread Tracking - Tracks document evolution across email conversations
  • 🚀 3 Analysis Modes - Quick/Interactive/Auto modes to optimize token usage
  • 📋 Action Item Extraction - Finds deadlines and tasks in emails

Install:

# 1. Add the Mail MCP plugin marketplace
/plugin marketplace add /path/to/mail-mcp-bridge/plugins

# 2. Install the attachment analyzer
/plugin install mail-attachment-analyzer@mail-mcp

# 3. Restart Claude Code

Replace /path/to/mail-mcp-bridge with your actual installation path.

Usage:

After installation, the plugin works automatically:

You: Analyze this email <[email protected]>
AI: [Automatically detects attachments and analyzes intelligently]

Or use manual commands:

/mail-mcp:analyze-attachment

📖 → Plugin Documentation

Setup Mail Quick Action

Add a "Copy Message-ID" button to Mail app:

Step-by-Step:

  1. Open Automator (⌘ + Space, type "Automator")

  2. Create new Quick Action:

    • File → New (⌘ + N)
    • Select "Quick Action"
    • Workflow receives current: no input
    • in: Mail.app
  3. Add Run Shell Script action:

    • Search "Run Shell Script" in left panel
    • Drag to workflow area
    • Shell: `/bin/bash**
  4. Copy script content:

    cat automator_script.sh
    

    Paste entire output into Automator script area

  5. Save as "Copy Message-ID"

  6. (Optional) Assign keyboard shortcut:

    • System Settings → Keyboard → Keyboard Shortcuts
    • Services → Mail → "Copy Message-ID"
    • Add shortcut (e.g., ⌘ + ⇧ + C)

Automator Setup Example:

Automator setup example

Test It:

  1. Open Mail app
  2. Select any email
  3. Press your keyboard shortcut (if configured)
  4. You should hear a sound confirming Message-ID copied

📖 Usage

Basic Workflow

1. Select email in Mail
2. Press your keyboard shortcut (e.g., ⌘⇧C)
3. Paste Message-ID to AI

Example Conversations

Read Single Email:

You: Please analyze this email: <[email protected]>

AI: I'll read that email for you...
[AI reads and analyzes the email content]

Read Email Thread:

You: What's the full conversation for <[email protected]>?

AI: I'll retrieve the entire thread...
[AI shows all emails in the conversation]

Real-World Use Case:

You: Please summarize all communication with our business partner,
including their requirements, promised timelines, and action items.

AI: I'll read the relevant email threads and extract key information...
[AI analyzes email content, organizes project progress, commitments, and action items]

Extract Email Attachments:

You: Extract and analyze the PDF invoice from this email: <[email protected]>

AI: I can see this email has an invoice.pdf attachment (1.2MB). Let me extract it...
[AI extracts attachment and analyzes the content]

🛠️ MCP Tools

Tool Description
get_email_path Get single email file path
get_thread_paths Get all paths in email thread
read_email Read single email content (includes attachment metadata)
read_thread Read entire email thread
extract_attachments Extract specific attachments from email
cleanup_attachments Clean up temporary attachment files

📖 → Detailed API Documentation

🏗️ How It Works

┌─────────────┐
│  Mail App   │ Select email → Copy Message-ID (⌘⇧C)
└──────┬──────┘
       │
       ↓ Message-ID
┌─────────────┐
│MCP Server   │ 1. Query Mail SQLite database
│             │ 2. Locate .emlx file by ROWID
│             │ 3. Parse email content
│             │ 4. Extract plain text
└──────┬──────┘
       │
       ↓ Structured Data
┌─────────────┐
│ AI Assistant│ Analyze email content
└─────────────┘

🔧 → Technical Architecture

🐛 Troubleshooting

MCP server not found

Solution:

# Verify the path in claude_desktop_config.json
cat ~/Library/Application\ Support/Claude/claude_desktop_config.json

# Restart Claude Desktop (quit completely, then reopen)

Email not found

Possible causes:

  1. Message-ID format incorrect (must include < >)
  2. Email deleted from Mail
  3. Email in different Mail account database

Permission denied

Solution:

# Make scripts executable
chmod +x *.py *.sh

🔒 Privacy & Security

  • ✅ Local Processing: All operations run locally on your Mac
  • ✅ No External Servers: No data sent to external servers
  • ✅ No Telemetry: No analytics or tracking
  • ✅ Read-Only: Only reads email data, never modifies

📚 Documentation

📝 License

MIT License - see LICENSE file for details.

🤝 Contributing

Contributions welcome! Please feel free to submit a Pull Request.

🌟 Acknowledgments

  • Built for the MCP (Model Context Protocol) ecosystem
  • Inspired by the need to bridge email and AI
  • Tested with Claude Desktop on macOS 26 (Tahoe)

📮 Contact

☕ Buy Me a Coffee

If you find this project helpful, consider buying me a coffee!

Buy Me A Coffee


Made with ❤️ for the AI community

from github.com/fatbobman/mail-mcp-bridge

FAQ

Mail Mcp Bridge MCP бесплатный?

Да, Mail Mcp Bridge MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Mail Mcp Bridge?

Нет, Mail Mcp Bridge работает без API-ключей и переменных окружения.

Mail Mcp Bridge — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Mail Mcp Bridge в Claude Desktop, Claude Code или Cursor?

Открой Mail Mcp Bridge на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

№ 85205

Gmail

GoogleGoogle

Read, send and search emails from Claude

googleemailinbox
Установить
№ 37159

Slack

SlackSlack

Send, search and summarize Slack messages

slackchatmessaging
Установить
№ 82944

Runbear

Community

No-code MCP client for team chat platforms, such as Slack, Microsoft Teams, and Discord.

runbearforclients
ПровереноУстановить
№ 03169

Discord Server

Community

A community discord server dedicated to MCP by [Frank Fiegel](https://github.com/punkpeye)

discordserverresources
ПровереноУстановить
№ 48334

Klavis AI

Community

Open Source MCP Infra. Hosted MCP servers and MCP clients on Slack and Discord.

klavisresources
ПровереноУстановить
№ 42410

Work90210/APIFold

Work90210Work90210

Turn any REST API into a hosted MCP server, with ready-made public servers for GitHub, Stripe, Slack, OpenAI, Notion and more.

work90210apifoldname
Установить
№ 47625

arikusi/deepseek-mcp-server

arikusiarikusi

DeepSeek AI chat and reasoning with multi-turn sessions, function calling, thinking mode and cost tracking.

arikusideepseekmcp
Установить
№ 36170

hashgraph-online/hashnet-mcp-js

hashgraph-onlinehashgraph-online

Discover, register and chat with AI agents on the Hashgraph network via the Registry Broker.

hashgraphonlinehashnet
Установить
№ 76290

profullstack/mcp-server

profullstackprofullstack

Developer utilities: SEO optimization, document conversion, domain lookup, email validation, QR codes, weather data, social media posting and security scanning.

profullstackmcpserver
Установить
№ 61408

WayStation-ai/mcp

waystation-aiwaystation-ai

Connect MCP hosts to apps such as Notion, Slack, Monday and Airtable.

waystationmcpname
Установить

Сравнить Mail Mcp Bridge с

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории communication