mcp-email-client
Provides tools for reading, searching, and managing email threads, creating drafts, and sending email replies through Gmail, with support for both Gmail API (OAuth) and IMAP/SMTP app passwords.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-email-clientsearch for unread emails from my manager"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-email-client
MCP server yang menjembatani LLM (Claude) dengan inbox email kamu — bisa baca thread, bikin draft, reply, dan kirim email langsung dari chat. Fokus ke thread-aware write, bukan cuma baca inbox.
Fitur
Baca & cari email —
search_messages,get_message,get_threadDraft-first safety — semua write jadi draft dulu, kirim butuh
confirm: trueeksplisit. LLM bisa salah, ini safety net.Thread-aware reply — reply nempel di thread aslinya (
In-Reply-To+Referencesheader), rapi di Gmail/Outlook.Multi-backend — Gmail API (OAuth) atau IMAP/SMTP (App Password), satu interface.
Token local-first — refresh token disimpan di direktori user (
~/.mcp-email/), bukan server pihak ketiga.
Related MCP server: Email MCP Server
Cara kerja
Claude ──► search_messages("invoice") ──► thread: "194abc"
──► get_thread("194abc") ──► isi thread kronologis
──► draft_reply("194abc", ...) ──► DRAFT (belum terkirim)
──► send_reply(...) ──► VERIFIKASI (confirm) → SENTDetail arsitektur & alur: docs/FLOW.md.
Instalasi
# install via npm
npm install -g mcp-email-client
# lalu daftarkan ke MCP host:
# command: mcp-email, args: []Setup
Mode A — App Password (recommended, tanpa OAuth)
Aktifkan 2-Step Verification: https://myaccount.google.com/security
Buat App Password: https://myaccount.google.com/apppasswords
Salin
.env.examplejadi.env, isi:
GMAIL_EMAIL=emailanda@gmail.com
GMAIL_APP_PASSWORD=abcd efgh ijkl mnopMode B — OAuth Gmail API
Buat Google Cloud Project + OAuth client (tipe "Desktop app"): https://console.cloud.google.com/apis/credentials
Set
GMAIL_CLIENT_ID+GMAIL_CLIENT_SECRET(hapusGMAIL_EMAIL/GMAIL_APP_PASSWORD)Login sekali:
npm install
npm run auth # buka browser, izinkan gmail.modify
npm run auth:status # cek statusConnect ke Claude (MCP host)
Tambah ke config MCP host (.mcp.json / claude_desktop_config.json):
{
"mcpServers": {
"email": {
"command": "node",
"args": ["C:/code/mcp-email-client/dist/index.js"]
}
}
}Tools (12)
Kategori | Tools |
Read |
|
Draft (aman) |
|
Send (butuh |
|
Manipulasi |
|
Health |
|
* schedule_send masih stub.
Status
✅ Semua milestone (M0–M4) selesai — 12 tool MCP, mode OAuth + App Password.
Struktur:
src/gmailAuth.ts— OAuth2 + PKCE, callback loopback, token exchange & refreshsrc/imapClient.ts/src/smtpTransport.ts— backend App Password (IMAP read, SMTP send)src/tokenStore.ts— refresh token simpan local-first (~/.mcp-email/)src/cli.ts—login/status/logoutsrc/index.ts— entry point MCP server
Test: npm test
Docs
File | Isi |
Arsitektur, data flow, auth flow | |
Semua tool + param + tipe return | |
Status implementasi per milestone |
This server cannot be deployed
Maintenance
Related MCP Connectors
A MCP server for Gmail that lets you search, read, and draft emails and replies.
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
Email inboxes for AI agents: send, receive, reply, search, and manage threaded email over MCP.
An MCP server that provides email capabilities, hosted on Alpic platform
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server that integrates with Gmail to enable sending, reading, and managing emails through tools like send-email, trash-email, get-unread-emails, and read-email.72GPL 3.0
- FlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI models to read, search, and send emails via IMAP and SMTP protocols. It supports various providers like Gmail and Outlook, allowing for tasks such as retrieving unread messages, searching by sender, and managing mailbox folders.-
- AlicenseNot gradedqualityAmaintenanceA unified MCP server for email access across Gmail, Outlook, iCloud, and generic IMAP providers, enabling search, send, organize, and batch operations.236 npm22MIT
- AlicenseAqualityBmaintenanceMCP server that enables email management (send, read, search, delete, etc.) via IMAP/SMTP, compatible with Gmail, Outlook, Yahoo, iCloud, and other standard mail servers.11MIT