Skip to main content
Glama
david-strejc

Gmail MCP Server

by david-strejc

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GMAIL_EMAILYesYour Gmail email address.
GMAIL_PASSWORDYesYour Gmail password or App Password if 2FA is enabled.
GMAIL_SMTP_PORTNoSMTP port (587 for TLS, 465 for SSL).587
GMAIL_IMAP_SERVERNoIMAP server for Gmail.imap.gmail.com
GMAIL_SMTP_SERVERNoSMTP server for Gmail.smtp.gmail.com

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
search-emailsC

Search emails within a date range and/or with specific keywords

get-email-contentB

Get the full content of a specific email by its ID

count-daily-emailsB

Count emails received for each day in a date range

forward-emailA

Forward an email with its attachments to new recipients. Required fields: email_id and recipients (to). Optional: subject_prefix, additional_message, and CC recipients.

send-emailA

CONFIRMATION STEP: Actually send the email after user confirms the details. Before calling this, first show the email details to the user for confirmation. Required fields: recipients (to), subject, and content. Optional: CC recipients.

list-labelsA

List all available Gmail labels/folders

create-labelB

Create a new Gmail label/folder

apply-labelB

Apply a label to an email

remove-labelB

Remove a label from an email

move-emailB

Move an email to a specific folder/label

delete-labelA

Delete a Gmail label/folder entirely. Cannot delete system labels.

rename-labelA

Rename an existing Gmail label/folder. Cannot rename system labels.

apply-label-batchA

Apply a label to multiple emails using their sequence IDs (from search results)

remove-label-batchA

Remove a label from multiple emails using their sequence IDs (from search results)

move-email-batchB

Move multiple emails to a specific folder/label using their sequence IDs (from search results)

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/david-strejc/gmail-mcp-server'

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