Skip to main content
Glama

MCP Headless Gmail Server

gmail_get_recent_emails

Retrieve recent Gmail emails including metadata, snippets, and body content using Google OAuth2 access token. Filter by unread status or limit results for efficient email management via API.

Instructions

Get the most recent emails from Gmail (returns metadata, snippets, and first 1k chars of body)

Input Schema

NameRequiredDescriptionDefault
google_access_tokenYesGoogle OAuth2 access token
max_resultsNoMaximum number of emails to return (default: 10)
unread_onlyNoWhether to return only unread emails (default: False)

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "google_access_token": { "description": "Google OAuth2 access token", "type": "string" }, "max_results": { "description": "Maximum number of emails to return (default: 10)", "type": "number" }, "unread_only": { "description": "Whether to return only unread emails (default: False)", "type": "boolean" } }, "required": [ "google_access_token" ], "type": "object" }

Other Tools from MCP Headless Gmail Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/baryhuang/mcp-headless-gmail'

If you have feedback or need assistance with the MCP directory API, please join our Discord server