Gmail MCP Server
@david-strejc
关于 Gmail MCP Server
MCP Server for interacting with Gmail via IMAP and SMTP
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"gmail-mcp-server-david-strejc": {
"command": "uv",
"args": [
"venv",
"#",
"Create",
"virtual",
"environment",
"(.venv)"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Gmail MCP Server?
The Gmail MCP Server is a Model Context Protocol (MCP) server that enables interaction with a Gmail account via IMAP and SMTP. It provides tools for email search, content retrieval, label management, batch operations, sending, and forwarding emails.
How to use Gmail MCP Server?
Clone the repository, create a Python virtual environment with uv, install dependencies, and configure environment variables in a .env file (Gmail credentials and server addresses). Run src/email_client/server.py, then add a configuration entry to your MCP client (e.g., Cline) pointing to the server script.
Key features of Gmail MCP Server
- Search emails by date range, keyword, or raw Gmail query.
- Retrieve full email content including headers, body, and attachments.
- Manage Gmail labels (create, rename, delete, apply, remove).
- Batch apply/remove labels and move multiple emails.
- Send new emails and forward existing ones with attachments.
- Count emails received per day within a date range.
Use cases of Gmail MCP Server
- Automate email triage and folder organization via an AI assistant.
- Perform bulk label operations on messages from specific queries.
- Integrate email sending/forwarding into automated workflows.
- Retrieve and process email content programmatically without a web browser.
- Schedule daily email count summaries for reporting or monitoring.
FAQ from Gmail MCP Server
What are the runtime dependencies?
The server requires Python 3.x, the uv package manager, and IMAP/SMTP libraries installed via uv sync. No additional runtime is needed beyond standard Python.
How do I authenticate with Gmail?
Set GMAIL_EMAIL and GMAIL_PASSWORD in a .env file. If 2‑Factor Authentication is enabled, you must generate and use a Gmail App Password. Standard passwords will not work.
What transport does the server use?
The server communicates with MCP clients via standard input/output (stdio). It runs as a subprocess that reads JSON‑RPC requests from stdin and writes responses to stdout.
Can I use this with any MCP client?
Yes, the server is designed to work with any client that supports the Model Context Protocol, such as Cline or other compatible tools. Configuration is done per‑client in a JSON settings file.
Where does my email data reside?
All email data stays within your Gmail account. The server communicates directly with Gmail’s IMAP and SMTP servers; no data is cached or stored outside your account.
沟通协作 分类下的更多 MCP 服务器
Twilio MCP Monorepo
twilio-labsMonorepo providing 1) OpenAPI to MCP Tool generator 2) Exposing all of Twilio's API as MCP Tools
Teams Mcp
floriscornelMCP server providing comprehensive Microsoft Teams and Graph API access for AI assistants including messaging, search, and user management.
MCP Communicator (Telegram)
qpd-vAn MCP server that enables communication with users through Telegram. This server provides a tool to ask questions to users and receive their responses via a Telegram bot.
Telegram MCP server
chaindeadTelegram MCP for managing dialogs, messages, drafts, read statuses, and more.
Email sending MCP 💌
ykhliThe official MCP server to send emails and interact with Resend
评论