Vexa
Meeting bot and transcripts for Google Meet, Teams and Zoom. Live or after, speakers labelled.
作者提供的说明(英文原文)
MCP server for Gmail with OAuth2 (personal) and service account (Workspace) support.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
GMAIL_OAUTH_CLIENT_ID, GMAIL_OAUTH_CLIENT_SECRET, GMAIL_OAUTH_REFRESH_TOKEN, GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL, GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY, GMAIL_IMPERSONATE_EMAIL, GMAIL_ENABLED_TOOLGROUPS标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"gmail": {
"command": "npx",
"args": [
"-y",
"gmail-workspace-mcp-server"
],
"env": {
"GMAIL_OAUTH_CLIENT_ID": "your-value",
"GMAIL_OAUTH_CLIENT_SECRET": "your-value",
"GMAIL_OAUTH_REFRESH_TOKEN": "your-value",
"GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL": "your-value",
"GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY": "your-value",
"GMAIL_IMPERSONATE_EMAIL": "your-value",
"GMAIL_ENABLED_TOOLGROUPS": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add gmail --env GMAIL_OAUTH_CLIENT_ID=your-value --env GMAIL_OAUTH_CLIENT_SECRET=your-value --env GMAIL_OAUTH_REFRESH_TOKEN=your-value --env GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL=your-value --env GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY=your-value --env GMAIL_IMPERSONATE_EMAIL=your-value --env GMAIL_ENABLED_TOOLGROUPS=your-value -- npx -y gmail-workspace-mcp-server运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"gmail": {
"command": "npx",
"args": [
"-y",
"gmail-workspace-mcp-server"
],
"env": {
"GMAIL_OAUTH_CLIENT_ID": "your-value",
"GMAIL_OAUTH_CLIENT_SECRET": "your-value",
"GMAIL_OAUTH_REFRESH_TOKEN": "your-value",
"GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL": "your-value",
"GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY": "your-value",
"GMAIL_IMPERSONATE_EMAIL": "your-value",
"GMAIL_ENABLED_TOOLGROUPS": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"gmail": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"gmail-workspace-mcp-server"
],
"env": {
"GMAIL_OAUTH_CLIENT_ID": "your-value",
"GMAIL_OAUTH_CLIENT_SECRET": "your-value",
"GMAIL_OAUTH_REFRESH_TOKEN": "your-value",
"GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL": "your-value",
"GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY": "your-value",
"GMAIL_IMPERSONATE_EMAIL": "your-value",
"GMAIL_ENABLED_TOOLGROUPS": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL envGMAIL_IMPERSONATE_EMAIL envGMAIL_ENABLED_TOOLGROUPS env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过域名 pulsemcp.com 验证(注册中心会核实域名所有权)
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:GMAIL_OAUTH_CLIENT_ID, GMAIL_OAUTH_CLIENT_SECRET, GMAIL_OAUTH_REFRESH_TOKEN, GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.4.12)于2个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Vexa, emailmd, MCP WhatsApp Cloud
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Meeting bot and transcripts for Google Meet, Teams and Zoom. Live or after, speakers labelled.
Render markdown into email-safe HTML, lint drafts for deliverability problems, and preview emails.
MCP server for WhatsApp Cloud API (Meta) — messages, media, and templates via Graph API
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
An MCP (Model Context Protocol) server that provides Gmail integration for AI assistants. Supports both personal Gmail accounts (via OAuth2) and Google Workspace accounts (via service account with domain-wide delegation).
npm install gmail-workspace-mcp-server
Or run directly with npx:
npx gmail-workspace-mcp-server
This server supports two authentication modes. Choose the one that matches your account type.
Use this for personal @gmail.com accounts or any Google account without Workspace admin access.
Run the built-in setup command:
npx gmail-workspace-mcp-server oauth-setup <client_id> <client_secret>
You can also pass credentials via environment variables:
GMAIL_OAUTH_CLIENT_ID=... GMAIL_OAUTH_CLIENT_SECRET=... npx gmail-workspace-mcp-server oauth-setup
Port conflict? If port 3000 is already in use, specify a different port:
PORT=3001 npx gmail-workspace-mcp-server oauth-setup <client_id> <client_secret>
Desktop app credentials automatically allow http://localhost redirects on any port, so no additional Google Cloud Console configuration is needed.
This will open your browser for Google sign-in and print the refresh token. You only need to do this once — the refresh token does not expire (as long as the OAuth consent screen is published).
| Variable | Required | Description |
|---|---|---|
GMAIL_OAUTH_CLIENT_ID | Yes | OAuth2 client ID from Google Cloud Console |
GMAIL_OAUTH_CLIENT_SECRET | Yes | OAuth2 client secret |
GMAIL_OAUTH_REFRESH_TOKEN | Yes | Refresh token from the setup script |
GMAIL_ENABLED_TOOLGROUPS | No | Comma-separated list of tool groups (default: all) |
{
"mcpServers": { "gmail": { "command": "npx", "args": ["gmail-workspace-mcp-server"], "env": { "GMAIL_OAUTH_CLIENT_ID": "your-client-id.apps.googleusercontent.com", "GMAIL_OAUTH_CLIENT_SECRET": "your-client-secret", "GMAIL_OAUTH_REFRESH_TOKEN": "your-refresh-token" } } } }
Use this for Google Workspace organizations where a domain admin can grant domain-wide delegation.
https://www.googleapis.com/auth/gmail.readonly (read emails)https://www.googleapis.com/auth/gmail.modify (modify labels)https://www.googleapis.com/auth/gmail.compose (create drafts)https://www.googleapis.com/auth/gmail.send (send emails)| Variable | Required | Description |
|---|---|---|
GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL | Yes | Service account email address |
GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY | Yes | Service account private key (PEM format) |
GMAIL_IMPERSONATE_EMAIL | Yes | Email address to impersonate |
GMAIL_ENABLED_TOOLGROUPS | No | Comma-separated list of tool groups to enable (default: all groups) |
You can find the client_email and private_key values in your service account JSON key file.
{
"mcpServers": { "gmail": { "command": "npx", "args": ["gmail-workspace-mcp-server"], "env": { "GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL": "my-service-account@my-project.iam.gserviceaccount.com", "GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY": "[PopNx MCP ตัดค่าที่หน้าตาเหมือนกุญแจออก]", "GMAIL_IMPERSONATE_EMAIL": "user@yourdomain.com" } } } }
Note: For the private key, you can either:
\n for newlines (as shown above)The server supports three tool groups for permission-based access control:
| Group | Tools Included | Risk Level |
|---|---|---|
readonly | list_email_conversations, get_email_conversation, search_email_conversations, list_draft_emails | Low |
readwrite | All readonly tools + change_email_conversation, upsert_draft_email | Medium |
readwrite_external | All readwrite tools + send_email | High |
By default, all tool groups are enabled. To restrict access, set the GMAIL_ENABLED_TOOLGROUPS environment variable:
# Read-only access (no write/send capabilities)
GMAIL_ENABLED_TOOLGROUPS=readonly
GMAIL_ENABLED_TOOLGROUPS=readwrite
GMAIL_ENABLED_TOOLGROUPS=readwrite_external
Security Note: The send_email tool is in a separate readwrite_external group because it can send emails externally, which carries higher risk than internal operations like modifying labels or creating drafts.
List email conversations from Gmail with optional filtering.
Parameters:
count (number, optional): Number of emails to return (default: 10, max: 100)labels (string, optional): Comma-separated label IDs to filter by (default: "INBOX")sort_by (string, optional): Sort order - "recent" (newest first) or "oldest" (default: recent)after (string, optional): Only return emails after this datetime, exclusive (ISO 8601 UTC, e.g., "2024-01-15T14:30:00Z")before (string, optional): Only return emails before this datetime, exclusive (ISO 8601 UTC, e.g., "2024-01-15T14:30:00Z")Example:
{
"count": 20, "labels": "INBOX,STARRED", "after": "2024-01-15T00:00:00Z", "before": "2024-01-20T23:59:59Z" }
Retrieve the full content of a specific email by its ID.
Parameters:
email_id (string, required): The unique identifier of the emailExample:
{
"email_id": "18abc123def456" }
Search emails using Gmail's powerful query syntax.
Parameters:
query (string, required): Gmail search query (e.g., "from:user@example.com", "is:unread", "subject:meeting")count (number, optional): Maximum results to return (default: 10, max: 100)Example:
{
"query": "from:alice@example.com is:unread", "count": 20 }
Modify email labels and status (read/unread, starred, archived).
Parameters:
email_id (string, required): The email ID to modifystatus (string, optional): "read", "unread", or "archived"is_starred (boolean, optional): Star or unstar the emaillabels (string, optional): Comma-separated labels to addremove_labels (string, optional): Comma-separated labels to removeExample:
{
"email_id": "18abc123def456", "status": "read", "is_starred": true }
List draft emails from Gmail with optional thread filtering.
Parameters:
count (number, optional): Maximum number of drafts to return (default: 10, max: 100)thread_id (string, optional): Filter drafts by conversation thread IDExample:
{
"thread_id": "18abc123def456" }
Create, update, or delete a draft email. Optionally as a reply to an existing conversation.
Parameters:
draft_id (string, optional): ID of an existing draft to update or delete (omit to create a new draft)delete (boolean, optional): Set to true to delete the draft specified by draft_id. All other parameters are ignored when deletingto (string, required for create/update): Recipient email addresssubject (string, required for create/update): Email subjectplaintext_body (string): Plain text body content (at least one of plaintext_body or html_body required for create/update)html_body (string): HTML body content for rich text formatting (at least one of plaintext_body or html_body required for create/update)cc (string, optional): CC recipientsbcc (string, optional): BCC recipientsthread_id (string, optional): Thread ID for repliesreply_to_email_id (string, optional): Email ID to reply to (sets References/In-Reply-To headers)For create/update: at least one of plaintext_body or html_body must be provided. If both are provided, a multipart email is sent with both versions.
Example (create new draft):
{
"to": "recipient@example.com", "subject": "Meeting Follow-up", "plaintext_body": "Thanks for the meeting today!" }
Example (update existing draft):
{
"draft_id": "r123456789", "to": "recipient@example.com", "subject": "Meeting Follow-up (revised)", "html_body": " Thanks for the meeting today! Check out the notes . " }
Example (delete a draft):
{
"draft_id": "r123456789", "delete": true }
Send an email directly or from an existing draft.
Parameters:
to (string, conditional): Recipient email (required unless sending from draft)subject (string, conditional): Email subject (required unless sending from draft)plaintext_body (string): Plain text body content (at least one of plaintext_body or html_body required, unless sending a draft)html_body (string): HTML body content for rich text formatting (at least one of plaintext_body or html_body required, unless sending a draft)cc (string, optional): CC recipientsbcc (string, optional): BCC recipients只显示了开头部分;其余内容请在仓库中阅读