Gmail

io.github.markswendsen-code由 GitHub 账号 markswendsen-code 发布v0.1.0更新于 Oct 25, 2026

Gmail MCP server — send, read, and search email. By Strider Labs.

已验证STDIO仅桌面效率与工作流沟通与协作

概览

AI 生成的概览

本地 Gmail 连接器,让助手用用户自己的 Google 账号发送、搜索、列出和读取邮件。

可以做什么
从用户的 Gmail 账号发送邮件,可带抄送和密送收件人,主题和正文由助手或用户提供。使用 Gmail 搜索语法检索邮箱,并可限制返回结果数量。列出收件箱最近的邮件,可按 INBOX、UNREAD 等标签筛选。按 Gmail 邮件 ID 读取某封邮件的完整内容。
适用场景
适合让助手分拣来信、查找历史对话、起草或发送回复,或代你发送消息。适用于只需一个 Gmail 账号的个人或小团队场景。
运行要求
通过 npx 在本地运行,需要 Node.js。需要一个启用 Gmail API 的 Google Cloud 项目及 OAuth 2.0 凭据:必须在客户端配置中设置 GOOGLE_CLIENT_ID、GOOGLE_CLIENT_SECRET 和 GOOGLE_REFRESH_TOKEN。需要访问 Google 的网络连接。
安装前请注意
刷新令牌可长期访问该 Gmail 账号,并保存在客户端配置中,应按密码级别保护。发送工具能以你的地址发出真实邮件,包括抄送和密送,且没有内置的确认步骤;启用前应审核或加一道批准流程。读取和搜索会把邮箱内容暴露给助手及其模型提供方。

安装

在 SourceWeft 中

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

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@striderlabs/mcp-gmail

MCP server that gives AI agents the ability to send, read, and search email via Gmail.

For Agents

Agents use this connector to handle email autonomously on behalf of their human — reading important messages, searching for information, composing thoughtful replies, and sending communications.

Example agent workflows:

  1. Triage emails: Agent reads new messages, summarizes important ones, and flags urgent items for user attention
  2. Answer routine questions: Agent searches email history to find information, composes replies with context from past conversations
  3. Send on behalf: Agent drafts and sends professional emails based on user intent ("Let the team know I'll be late"), then logs a copy to the conversation

Usage example:

User: "Has anyone replied to my email about the Q2 budget proposal?"

Agent:

  1. gmail_search → "to:me subject:budget"
  2. gmail_read → Read each message
  3. Return summary: "Sarah replied yes on Monday. Mark asked for revisions. No word from Finance yet."

Then agent might automatically draft a follow-up to Finance and ask for approval before sending.

Installation

bash
npx @striderlabs/mcp-gmail

Configuration

Add to your MCP client configuration (e.g., Claude Desktop):

json
{  "mcpServers": {    "strider-gmail": {      "command": "npx",      "args": ["-y", "@striderlabs/mcp-gmail"],      "env": {        "GOOGLE_CLIENT_ID": "your-client-id",        "GOOGLE_CLIENT_SECRET": "your-client-secret",        "GOOGLE_REFRESH_TOKEN": "your-refresh-token"      }    }  }}

Available Tools

gmail_send

Send an email from the user's Gmail account.

Parameters:

  • to (required): Recipient email address
  • subject (required): Email subject line
  • body (required): Email body content
  • cc (optional): CC recipients
  • bcc (optional): BCC recipients

gmail_search

Search emails using Gmail search syntax.

Parameters:

  • query (required): Gmail search query (e.g., "from:[email protected]")
  • maxResults (optional): Maximum results (default: 10)

gmail_read

Read the full content of a specific email.

Parameters:

  • messageId (required): The Gmail message ID

gmail_list

List recent emails from the inbox.

Parameters:

  • maxResults (optional): Maximum emails to list (default: 10)
  • label (optional): Filter by label (e.g., "INBOX", "UNREAD")

Getting Google OAuth Credentials

  1. Go to Google Cloud Console
  2. Create a new project or select existing
  3. Enable the Gmail API
  4. Create OAuth 2.0 credentials
  5. Use the OAuth playground or your app to get a refresh token

Response Format

All tools return structured JSON:

json
{  "success": true,  "messageId": "...",  "message": "Email sent successfully"}

Part of Strider Labs

Strider Labs builds action execution infrastructure for AI agents.

License

MIT

来源:README.md,提交 0d8196d

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 40%

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

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

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

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

    请在仓库或注册中心条目中声明许可证。