@node2flow/gmail-mcp
Provides tools for interacting with Gmail via the Gmail API: search, list, read, send, delete, trash, and modify messages; manage attachments, drafts, labels, threads, profile details, and vacation auto-reply settings.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
@node2flow/gmail-mcp
MCP server for Gmail — send, search, read, organize emails and manage labels through 28 tools via the Model Context Protocol.
Quick Start
Claude Desktop / Cursor
Add to your MCP config:
{
"mcpServers": {
"gmail": {
"command": "npx",
"args": ["-y", "@node2flow/gmail-mcp"],
"env": {
"GOOGLE_CLIENT_ID": "your-client-id",
"GOOGLE_CLIENT_SECRET": "your-client-secret",
"GOOGLE_REFRESH_TOKEN": "your-refresh-token"
}
}
}
}HTTP Mode
GOOGLE_CLIENT_ID=xxx GOOGLE_CLIENT_SECRET=xxx GOOGLE_REFRESH_TOKEN=xxx npx @node2flow/gmail-mcp --httpMCP endpoint: http://localhost:3000/mcp
Cloudflare Worker
Available at: https://gmail-mcp-community.node2flow.net/mcp
POST https://gmail-mcp-community.node2flow.net/mcp?GOOGLE_CLIENT_ID=xxx&GOOGLE_CLIENT_SECRET=xxx&GOOGLE_REFRESH_TOKEN=xxxRelated MCP server: Gmail MCP Server
Tools (28)
Messages (10)
Tool | Description |
| List messages with Gmail search syntax |
| Get message content (full/metadata/minimal/raw) |
| Send email with to, cc, bcc, subject, body, HTML |
| Permanently delete a message |
| Move message to trash |
| Remove message from trash |
| Add/remove labels on a message |
| Delete multiple messages (up to 1000) |
| Modify labels on multiple messages |
| Get attachment data (base64) |
Drafts (6)
Tool | Description |
| List all drafts |
| Get draft content |
| Create a new draft |
| Update an existing draft |
| Delete a draft |
| Send an existing draft |
Labels (5)
Tool | Description |
| List all labels (system + user) |
| Get label details with counts |
| Create a new label with color |
| Update label name/visibility/color |
| Delete a user-created label |
Threads (5)
Tool | Description |
| List threads with search query |
| Get all messages in a thread |
| Add/remove labels on a thread |
| Move thread to trash |
| Remove thread from trash |
Settings (2)
Tool | Description |
| Get email address, message/thread counts |
| Enable/disable vacation auto-reply |
Search Query Syntax
The q parameter in gmail_list_messages and gmail_list_threads supports Gmail search operators:
from:user@example.com — Messages from a sender
to:user@example.com — Messages to a recipient
subject:"meeting notes" — Subject contains text
has:attachment — Has attachments
filename:pdf — Attachment by type
is:unread / is:starred — Message state
label:custom-label — By label
after:2026/01/01 — After date
newer_than:2d / older_than:1y — Relative date
in:inbox / in:sent / in:trash — By locationCombine operators: from:boss@company.com has:attachment is:unread after:2026/01/01
Configuration
Parameter | Required | Description |
| Yes | OAuth 2.0 Client ID from Google Cloud Console |
| Yes | OAuth 2.0 Client Secret |
| Yes | Refresh token (obtained via OAuth consent flow) |
Getting Your Credentials
Go to Google Cloud Console
Create a project → Enable Gmail API
Create OAuth 2.0 Client ID (Desktop app type)
Use the OAuth Playground or your app to get a refresh token with the Gmail scope
OAuth Scopes
Scope | Access |
| Read, send, delete, and manage (recommended) |
| Read-only access |
| Send only |
| Create and send drafts |
| Manage labels only |
| Full access including permanent delete |
License
MIT License - see LICENSE
Copyright (c) 2026 Node2Flow
Links
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Manage Gmail end-to-end: search, read, send, draft, label, and organize threads. Automate workflow…
Manage Gmail messages, threads, labels, drafts, and settings from your workflows. Send and organiz…
Email for AI agents: read, search and send from your Gmail, Outlook, Yahoo, iCloud or IMAP inbox.
- MyAgentMailDeprecatedcom.myagentmail
Email inboxes and calendars for AI agents: send, receive, search, draft and schedule.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Gmail through natural language interactions, supporting email operations (send, read, search, draft), comprehensive attachment handling (send, receive, download), label management, filters, and batch operations with automatic OAuth2 authentication.MIT
- FlicenseNot gradedqualityNot gradedmaintenanceEnables comprehensive Gmail management with 17 tools for searching, sending, and organizing emails, managing labels, threads, drafts, and attachments through the Gmail API.-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to read, search, organize, and draft emails in Gmail inboxes with support for multiple accounts, OAuth authentication, and 26 comprehensive tools for email management.313 npm3MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Gmail accounts through natural language for tasks like sending, reading, searching, and organizing emails. It supports advanced features including draft management, label operations, and batch actions via secure OAuth 2.0 authentication.MIT