google/gmail

MCP Server

Gmail MCP Server - send, search, read emails and manage labels

Gmail MCP server. Send, search, read emails, manage drafts, labels, and threads.

MCP Server

  • Package: @node2flow/gmail-mcp
  • Transport: stdio
  • Command: npx -y @node2flow/gmail-mcp

Authentication

OAuth 2.0

VariableRequiredDescription
GOOGLE_CLIENT_IDYesOAuth Client ID
GOOGLE_CLIENT_SECRETYesOAuth Client Secret
GOOGLE_REFRESH_TOKENYesRefresh token

Available Tools

ToolDescription
list_messagesList emails
get_messageRead email
send_messageSend email
create_draftCreate draft
list_labelsList labels
list_threadsList threads
trash_messageTrash email
get_attachmentsGet attachments

Configuration Example

toml
[[mcp.servers]]
name = "gmail"
type = "stdio"
command = "npx"
args = ["-y", "@node2flow/gmail-mcp"]
timeout_seconds = 60
env = { GOOGLE_CLIENT_ID = "your-value", GOOGLE_CLIENT_SECRET = "your-value", GOOGLE_REFRESH_TOKEN = "your-value" }
tools = []

Notes: 28 tools. Supports Gmail search syntax.