
An AI receptionist platform with an MCP server for accessing business calls, contacts and appointments from AI assistants.

A Model Context Protocol server that interacts with Gmail accounts via IMAP and SMTP for email search, retrieval, label management, and sending.
Gmail MCP Server is cataloged as an MCP server attributed to david-strejc. A Model Context Protocol server that interacts with Gmail accounts via IMAP and SMTP for email search, retrieval, label management, and sending. It is categorized under communication social. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Gmail MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes, it can send new emails and forward existing emails including attachments when SMTP is configured.
Yes, it supports applying labels to and removing labels from multiple emails at once, and moving multiple emails to a label.
README.md · 86930e63782f · 采集于 2026-11-13 11:59:55 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
This project implements a Model Context Protocol (MCP) server that allows interaction with Gmail accounts via IMAP and SMTP. It provides tools for searching emails, retrieving content, managing labels (creating, deleting, renaming, applying, removing), and sending/forwarding emails.
X-GM-RAW extension for efficient inbox searching (e.g., filtering by category:primary)..
├── .gitignore # Specifies intentionally untracked files that Git should ignore
├── .python-version # Specifies Python version (used by pyenv)
├── LICENSE # Project license file
├── pyproject.toml # Python project configuration (dependencies, build system)
├── README.md # This file
├── task_list.md # Tracks development progress
├── uv.lock # Lock file for uv package manager
├── src/
│ └── email_client/
│ ├── __init__.py
│ ├── config.py # Handles loading configuration from environment variables (.env)
│ ├── handlers.py # Implements the logic for handling MCP tool calls
│ ├── imap_client.py # Contains functions for interacting with IMAP server
│ ├── server.py # Main MCP server script using @modelcontextprotocol/sdk
│ ├── smtp_client.py # Contains functions for interacting with SMTP server
│ ├── tool_definitions.py # Defines the available MCP tools and their schemas
│ └── utils.py # Utility functions (e.g., email parsing, date formatting)
└── ... (other potential files like test scripts, helper scripts)
Clone the repository (if applicable):
git clone https://github.com/david-strejc/gmail-mcp-server.git
cd gmail-mcp-server
Install Dependencies: This project uses uv for package management.
# Ensure uv is installed (e.g., pip install uv)
uv venv # Create virtual environment (.venv)
uv sync # Install dependencies from pyproject.toml and uv.lock
source .venv/bin/activate # Activate the virtual environment
(Alternatively, if not using uv, create a virtual environment and install using pip install -r requirements.txt if a requirements.txt is generated).
Configure Environment Variables: Create a .env file in the project root directory and add your Gmail credentials and server settings:
# .env file
GMAIL_EMAIL=your_email@gmail.com
GMAIL_PASSWORD=your_app_password # Use an App Password if 2FA is enabled
GMAIL_IMAP_SERVER=imap.gmail.com
GMAIL_SMTP_SERVER=smtp.gmail.com
GMAIL_SMTP_PORT=587 # Or 465 for SSL
Activate the virtual environment and run the server script:
source .venv/bin/activate
python src/email_client/server.py
The server will start and listen for MCP requests via standard input/output.
Add the server configuration to your MCP client's settings file (e.g., cline_mcp_settings.json or claude_desktop_config.json).
Example cline_mcp_settings.json entry:
{
"mcpServers": {
"gmail": {
"command": "/path/to/your/project/gmail-mcp-server/.venv/bin/python",
"args": ["/path/to/your/project/gmail-mcp-server/src/email_client/server.py"],
"env": {}, // Environment variables are loaded from .env by the script
"enabled": true, // Set to true to enable
"autoApprove": [] // Configure auto-approval if desired
}
// ... other servers
}
}
/path/to/your/project/gmail-mcp-server with the actual absolute path to this project directory.command points to the python executable within the project's virtual environment (.venv/bin/python).Once configured and enabled, the client should connect to the server, and the defined tools will become available.
search-emails: Search emails.get-email-content: Get full email details.count-daily-emails: Count emails per day.list-labels: List all labels/folders.create-label: Create a new label.rename-label: Rename an existing label.delete-label: Delete a label.apply-label: Apply a label to one email.remove-label: Remove a label from one email.apply-label-batch: Apply a label to multiple emails.remove-label-batch: Remove a label from multiple emails.move-email: Move a single email to a label.move-email-batch: Move multiple emails to a label.send-email: Send a new email.forward-email: Forward an existing email.Refer to src/email_client/tool_definitions.py for detailed input schemas for each tool.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Gmail MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/gmail-mcp-server-david-strejc)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

An AI receptionist platform with an MCP server for accessing business calls, contacts and appointments from AI assistants.
Pidgeon provides an MCP server and an email inbox API that gives AI agents their own addresses for sending, awaiting, and replying to email.

A Telegram CLI with background sync that can run an optional MCP server for a personal account using MTProto, not the bot API.