360 Secure SkillHub
360 安全技能中心

Strider Gmail

Strider Labs 的 Gmail MCP 连接器,提供发送邮件、搜索收件箱、读取邮件、创建草稿、回复以及增删标签等工具;经 OAuth 授权访问 Gmail API,令牌按用户加密存储并自动刷新,并给出常见错误码与处理建议。需在 MCP 客户端中配置并安装对应 npm 包。

markswendsen-code
markswendsen-code
热度 37.53
最近更新 2026-04-06 15:26:39
分类:协作依赖:MCP 服务 / 第三方 API应用场景:邮件起草 / 工作流 / 任务管理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add strider-gmail
Metadata
name
strider-gmail
description
Send and manage Gmail via Strider Labs MCP connector. Compose emails, search inbox, manage labels, and handle drafts through the Gmail API.
metadata
{"openclaw":{"requires":{"bins":["npx"]},"category":"productivity","author":"Strider Labs","homepage":"https://striderlabs.ai"}}

Strider Gmail Connector

MCP connector for Gmail operations via the Gmail API. Part of the Strider Labs action execution layer for AI agents.

Installation

npm install @striderlabs/mcp-gmail

MCP Configuration

Add to your MCP client configuration (Claude Desktop, Cursor, etc.):

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

Available Tools

gmail.send_email

Compose and send an email.

Input Schema:

{
  "to": "string | string[]",
  "subject": "string",
  "body": "string (plain text or HTML)",
  "cc": "string[] (optional)",
  "bcc": "string[] (optional)",
  "attachments": "[{filename, content_base64}] (optional)"
}

gmail.search_emails

Search inbox using Gmail query syntax.

Input:

{
  "query": "string (e.g., 'from:boss@company.com is:unread')",
  "max_results": "number (optional, default 10)"
}

Output:

{
  "emails": [{
    "id": "string",
    "from": "string",
    "to": "string[]",
    "subject": "string",
    "snippet": "string",
    "date": "string",
    "labels": ["string"]
  }]
}

gmail.get_email

Retrieve full email content by ID.

gmail.create_draft

Save an email as draft without sending.

gmail.reply_to_email

Reply to an existing email thread.

gmail.add_label / gmail.remove_label

Manage email labels for organization.

Authentication

First use triggers OAuth authorization flow:

  1. User is redirected to Google to authorize Gmail access
  2. Tokens are stored encrypted per-user
  3. Automatic refresh handles token expiration

No API key required — connector manages OAuth flow via Gmail API.

Usage Examples

Send a quick email:

Send an email to john@example.com with subject "Meeting tomorrow" saying I'll be 10 minutes late

Search for important messages:

Search Gmail for unread emails from my manager in the last week

Draft for later:

Draft a follow-up email to the client about the proposal, don't send yet

Error Handling

Code Meaning Action
AUTH_EXPIRED Gmail session expired Re-authenticate
AUTH_MFA_REQUIRED Google verification needed Notify user
RATE_LIMITED Gmail API quota exceeded Retry after delay
INVALID_INPUT Bad recipient or format Check email format

Use Cases

  • Email triage: search and organize inbox
  • Quick replies: respond to messages without opening Gmail
  • Scheduled sends: compose emails for later
  • Bulk operations: apply labels or archive multiple emails

Security Notes

  • OAuth scopes are limited to email operations
  • No access to other Google services through this connector
  • Use @striderlabs/mcp-gcal for calendar operations

Links