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 "Install 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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceMCP 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.73GPL 3.0
- Flicense-qualityDmaintenanceAn 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.
- Alicense-qualityCmaintenanceA unified MCP server for email access across Gmail, Outlook, iCloud, and generic IMAP providers, enabling search, send, organize, and batch operations.18318MIT
- 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
Related MCP Connectors
Read, search, send, organize, draft and schedule email across your inboxes from any MCP client.
Shipmail MCP server for AI agent custom-domain email inboxes with REST API and webhooks.
Hosted email MCP for AI agents with inboxes, send/receive, memory, recovery, and credits.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/rifkyfadillah404/mcp-email-client'
If you have feedback or need assistance with the MCP directory API, please join our Discord server