Sebastianall1977 Gmail Mcp

ai.smithery由 smithery.ai 发布官方发布者v1.7.4更新于 Oct 24, 2026

Manage Gmail end-to-end: search, read, send, draft, label, and organize threads. Automate workflow…

发布方自己的服务:222wcnm Bilistalkermcp

已验证Streamable HTTP可网页运行效率与工作流沟通与协作

概览

AI 生成的概览

Gmail MCP 服务器,让助手搜索、读取、发送、起草、加标签并整理 Gmail 邮件、会话和账户设置。

可以做什么
  • 搜索、读取邮件及附件,并修改邮件标签
  • 发送邮件,或将单封及批量邮件移入回收站、恢复、永久删除
  • 列出、读取并修改会话,进行会话级管理
  • 创建、更新、发送和删除草稿
  • 创建、更新和删除标签,包括颜色与可见性设置
  • 读取和修改账户设置:假期自动回复、IMAP/POP、自动转发、语言、委托、过滤器、转发地址、代发别名和 S/MIME
适用场景
适合让助手直接操作真实 Gmail 邮箱:分拣和标记邮件、起草或发送回复、清理会话,或调整假期回复、过滤器等邮箱设置。
运行要求
需要一个启用 Gmail API 的 Google Cloud 项目及 OAuth 2.0 桌面应用客户端;每位用户须完成 OAuth 授权以获取刷新令牌。使用托管远程连接时需提供 CLIENT_ID、CLIENT_SECRET 和 REFRESH_TOKEN,并以 Authorization bearer 令牌形式提供 Smithery API 密钥。本地安装需 Node.js 18+(从源码构建还需 pnpm)。
安装前请注意
服务器持有可访问整个邮箱的 OAuth 凭据(CLIENT_ID、CLIENT_SECRET、REFRESH_TOKEN),密钥文件和凭据文件都应视为机密。许多工具会写入或销毁数据:发送邮件、永久删除邮件和会话、修改过滤器、委托、转发和代发别名。匿名遥测默认开启,可通过 TELEMETRY_ENABLED 关闭。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Sebastianall1977 Gmail Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/ai.smithery%2Fsebastianall1977-gmail-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "sebastianall1977-gmail": {
      "type": "http",
      "url": "https://server.smithery.ai/@sebastianall1977/gmail-mcp/mcp"
    }
  }
}

README

A Model Context Protocol (MCP) server implementation for the Gmail API, providing a standardized interface for email management, sending, and retrieval.

[图片]

Features

  • Complete Gmail API coverage including messages, threads, labels, drafts, and settings
  • Support for sending, drafting, and managing emails
  • Label management with customizable colors and visibility settings
  • Thread operations for conversation management
  • Settings management including vacation responder, IMAP/POP, and language settings
  • History tracking for mailbox changes
  • Secure OAuth2 authentication using Google Cloud credentials

Prerequisites

Dependencies

For simplest installation, install Node.js 18+. If you would like to build locally, you will also need to install pnpm.

Google Workspace Setup

To run this MCP server, you will need to set up a Google API Client for your organization, with each user running a script to retrieve their own OAuth refresh token.

Google API Client Setup (once per organization)
  1. Go to the Google Cloud Console.
  2. Create a new project or select an existing one.
  3. Enable the Gmail API for your project.
  4. Go to Credentials and create an OAuth 2.0 Client ID. Choose "Desktop app" for the client type.
  5. Download and save the OAuth keys JSON as ~/.gmail-mcp/gcp-oauth.keys.json. ⚠️ NOTE: to create ~/.gmail-mcp/ through MacOS's Finder app you need to enable hidden files first.
  6. (Optional) For remote server installation (ex. using Smithery CLI), note the CLIENT_ID and CLIENT_SECRET from this file.
Client OAuth (once per user)
  1. Have the user copy ~/.gmail-mcp/gcp-oauth.keys.json to their computer at the same path.
  2. Run npx @shinzolabs/gmail-mcp auth.
  3. A browser window will open where the user may select a profile, review the requested scopes, and approve.
  4. (Optional) For remote server installation, note the file path mentioned in the success message (~/.gmail-mcp/credentials.json by default). The user's REFRESH_TOKEN will be found here.

Client Configuration

There are several options to configure your MCP client with the server. For hosted/remote server setup, use Smithery's CLI with a Smithery API Key. For local installation, use npx or build from source. Each of these options is explained below.

Smithery Remote Server (Recommended)

To add a remote server to your MCP client config.json, run the following command from Smithery CLI:

bash
npx -y @smithery/cli install @shinzo-labs/gmail-mcp

Enter your CLIENT_ID, CLIENT_SECRET, and REFRESH_TOKEN when prompted.

Smithery SDK

If you are developing your own agent application, you can use the boilerplate code here.

NPX Local Install

To install the server locally with npx, add the following to your MCP client config.json:

javascript
{  "mcpServers": {    "gmail": {      "command": "npx",      "args": [        "@shinzolabs/gmail-mcp"      ]    }  }}

Build from Source

  1. Download the repo:
bash
git clone https://github.com/shinzo-labs/gmail-mcp.git
  1. Install packages and build with pnpm (inside cloned repo):
bash
pnpm i && pnpm build
  1. Add the following to your MCP client config.json:
javascript
{  "mcpServers": {    "gmail": {      "command": "node",      "args": [        "/path/to/gmail-mcp/dist/index.js"      ]    }  }}

Config Variables

VariableDescriptionRequired?Default
AUTH_SERVER_PORTPort for the temporary OAuth authentication serverNo3000
CLIENT_IDGoogle API client ID (found in GMAIL_OAUTH_PATH)Yes if remote server connection''
CLIENT_SECRETGoogle API client secret (found in GMAIL_OAUTH_PATH)Yes if remote server connection''
GMAIL_CREDENTIALS_PATHPath to the user credentials fileNoMCP_CONFIG_DIR/credentials.json
GMAIL_OAUTH_PATHPath to the Google API Client fileNoMCP_CONFIG_DIR/gcp-oauth.keys.json
MCP_CONFIG_DIRDirectory for storing configuration filesNo~/.gmail-mcp
REFRESH_TOKENOAuth refresh token (found in GMAIL_CREDENTIALS_PATH)Yes if remote server connection''
PORTPort for Streamable HTTP transport methodNo3000
TELEMETRY_ENABLEDEnable telemetryNotrue

Supported Endpoints

User Management

  • get_profile: Get the current user's Gmail profile
  • stop_mail_watch: Stop receiving push notifications
  • watch_mailbox: Set up push notifications for mailbox changes

Message Management

Managing Messages
  • list_messages: List messages with optional filtering
  • get_message: Get a specific message
  • get_attachment: Get a message attachment
  • modify_message: Modify message labels
  • send_message: Send an email message to specified recipients
  • delete_message: Permanently delete a message
  • trash_message: Move message to trash
  • untrash_message: Remove message from trash
  • batch_modify_messages: Modify multiple messages
  • batch_delete_messages: Delete multiple messages

Label Management

  • list_labels: List all labels
  • get_label: Get a specific label
  • create_label: Create a new label
  • update_label: Update a label
  • patch_label: Partial update of a label
  • delete_label: Delete a label

Thread Management

  • list_threads: List email threads
  • get_thread: Get a specific thread
  • modify_thread: Modify thread labels
  • trash_thread: Move thread to trash
  • untrash_thread: Remove thread from trash
  • delete_thread: Delete a thread

Draft Management

  • list_drafts: List drafts in the user's mailbox
  • get_draft: Get a specific draft by ID
  • create_draft: Create a draft email in Gmail
  • update_draft: Replace a draft's content
  • delete_draft: Delete a draft
  • send_draft: Send an existing draft

Settings Management

Auto-Forwarding
  • get_auto_forwarding: Get auto-forwarding settings
  • update_auto_forwarding: Update auto-forwarding settings
IMAP Settings
  • get_imap: Get IMAP settings
  • update_imap: Update IMAP settings
POP Settings
  • get_pop: Get POP settings
  • update_pop: Update POP settings
Vacation Responder
  • get_vacation: Get vacation responder settings
  • update_vacation: Update vacation responder
Language Settings
  • get_language: Get language settings
  • update_language: Update language settings
Delegates
  • list_delegates: List account delegates
  • get_delegate: Get a specific delegate
  • add_delegate: Add a delegate
  • remove_delegate: Remove a delegate
Filters
  • list_filters: List email filters
  • get_filter: Get a specific filter
  • create_filter: Create a new filter
  • delete_filter: Delete a filter
Forwarding Addresses
  • list_forwarding_addresses: List forwarding addresses
  • get_forwarding_address: Get a specific forwarding address
  • create_forwarding_address: Create a forwarding address
  • delete_forwarding_address: Delete a forwarding address
Send-As Settings
  • list_send_as: List send-as aliases
  • get_send_as: Get a specific send-as alias
  • create_send_as: Create a send-as alias
  • update_send_as: Update a send-as alias
  • patch_send_as: Partial update of a send-as alias
  • verify_send_as: Send verification email
  • delete_send_as: Delete a send-as alias
S/MIME Settings
  • list_smime_info: List S/MIME configurations
  • get_smime_info: Get a specific S/MIME config
  • insert_smime_info: Upload a new S/MIME config
  • set_default_smime_info: Set default S/MIME config
  • delete_smime_info: Delete an S/MIME config

Contributing

Contributions are welcomed and encouraged! Please read CONTRIBUTING.md for guidelines on issues, contributions, and contact information.

Data Collection and Privacy

Shinzo Labs collects limited anonymous telemetry from this server to help improve our products and services. No personally identifiable information is collected as part of this process. Please review the Privacy Policy for more details on the types of data collected and how to opt-out of this telemetry.

License

MIT

来源:README.md,提交 66b06b9

工具

0
SourceWeft 尚未读取此服务器的工具。

版本历史

1
  1. v1.7.4最新Sep 16, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Smithery 集成