Skip to main content
Glama
gmail-reader-mcp

gmail-reader-mcp

by jgimitola

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GMAIL_ACCOUNTNoOptional Google account email to pre-select on the Google sign-in page.
GOOGLE_CLIENT_IDYesYour Google Cloud OAuth client ID (Desktop app client).
GOOGLE_CLIENT_SECRETYesYour Google Cloud OAuth client secret (Desktop app client).

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
authenticateA

Sign in to the Google account used by the other tools. Returns a Google sign-in URL: show it to the user and ask them to open it in a browser on this machine and grant read-only Gmail access. Run this when other tools report that authentication is required. Safe to call anytime — reports the current account if already signed in.

sign_outA

Sign out of the Google account: revokes this app's access token at Google, removes the saved session from this machine, and cancels any pending sign-in. After this, the authenticate tool must be run again before other tools work.

list_emailsA

List emails in a Gmail label (default INBOX), newest first, optionally narrowed with a Gmail search query. Returns IDs, thread IDs, subject, sender, date, unread/attachment flags, and a snippet. Use pageToken to page through results.

search_emailsB

Search all Gmail mail using Gmail search syntax (keywords plus operators like from:, subject:, has:attachment, after:, newer_than:). Searches subject, body, sender, recipients, and attachment names.

get_emailA

Get the full content of a specific email by its ID: headers, plain-text body (HTML-only emails are converted to text), and its attachment list. To fetch several emails at once use get_emails; for a whole conversation use get_thread.

get_emailsA

Get the full content of multiple emails by their IDs in one call (fetched concurrently). Much faster than calling get_email repeatedly. Returns headers, plain-text body, and attachment list for each.

get_threadA

Get every message of a Gmail conversation (thread) in chronological order, with full plain-text bodies and attachment lists.

list_labelsA

List all Gmail labels (system labels like INBOX/SENT and user-created labels) with their IDs and message/unread counts. Use a label ID with list_emails.

list_attachmentsA

List all attachments of a specific email. Returns each attachment's part ID, name, size, MIME type, and whether it is inline (embedded image/signature). Use download_attachment for one file, or download_attachments to save several (or all) in a single call.

download_attachmentA

Download a specific email attachment and save it to disk. Use list_attachments (or get_email) first to get the part ID. To save several (or all) attachments from an email in one call, use download_attachments instead. Returns the full path where the file was saved.

download_attachmentsA

Download multiple attachments from an email in a single call and save them to disk. Omit partIds to download all file attachments. Returns the saved path for each file.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 11 tools

Disambiguation4/5

Most tools are cleanly separated, and the descriptions explicitly cross-reference alternatives (get_email vs get_emails vs get_thread, download_attachment vs download_attachments). The main soft spot is list_emails vs search_emails: list_emails also accepts a Gmail search query, so an agent may hesitate over which to use. That overlap is real but minor, since one is label-scoped paging and the other is global search.

Naming Consistency4/5

Almost everything follows a consistent snake_case verb_noun pattern (list_emails, get_thread, list_labels, download_attachment). The singular/plural pairs (get_email/get_emails, download_attachment/download_attachments) are systematic rather than confusing. Only the bare verbs authenticate and sign_out break the noun pattern, which is a small deviation.

Tool Count5/5

Eleven tools is well within the ideal range and every one earns its place: two auth lifecycle tools, listing/search/read tools, thread and label inspection, and attachment listing plus single/bulk download. Nothing looks redundant or filler.

Completeness4/5

For a deliberately read-only Gmail reader the lifecycle is nearly complete: sign-in, sign-out, label discovery, paged listing, search, single/bulk message fetch, threads, and attachment listing plus download. Minor gaps exist (no profile/account info tool, no way to page or list threads directly, attachments only saved to disk), but agents can work around all of these.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues