Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GMAIL_OAUTH_PATHNoPath to Google Cloud OAuth credentials JSON file (default: ~/.gmail-mcp/gcp-oauth.keys.json)
GMAIL_MCP_AUDIT_LOGNoAbsolute path for opt-in JSONL audit log of tool calls
GMAIL_MCP_STATE_DIRNoDirectory for rate limit state persistence (default: ~/.gmail-mcp/)
GMAIL_CREDENTIALS_PATHNoPath to store access/refresh tokens (default: ~/.gmail-mcp/credentials.json)
GMAIL_MCP_DOWNLOAD_DIRNoDownload jail directory for download_email and download_attachment (default: ~/GmailDownloads/)
GMAIL_MCP_ATTACHMENT_DIRNoAttachment jail directory for send/draft/reply_all (default: ~/GmailAttachments/)
GMAIL_MCP_RATE_LIMIT_sendNoOverride rate limit for send bucket (format: D/day,M/month, default: 400/6000)
GMAIL_MCP_RATE_LIMIT_deleteNoOverride rate limit for delete bucket (format: D/day,M/month, default: 200/2000)
GMAIL_MCP_RATE_LIMIT_draftsNoOverride rate limit for drafts bucket (format: D/day,M/month, default: 300/3000)
GMAIL_MCP_RATE_LIMIT_labelsNoOverride rate limit for labels bucket (format: D/day,M/month, default: 50/500)
GMAIL_MCP_RATE_LIMIT_modifyNoOverride rate limit for modify bucket (format: D/day,M/month, default: 500/5000)
GMAIL_MCP_RATE_LIMIT_DISABLENoDisable all rate limiting if set to 'true'
GMAIL_MCP_RATE_LIMIT_filtersNoOverride rate limit for filters bucket (format: D/day,M/month, default: 20/200)

Capabilities

Features and capabilities supported by this server

CapabilityDetails
prompts
{}

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription
unread-emailsShow every unread email in the inbox with sender, subject, and date.
unread-staleShow unread emails older than a threshold (e.g. `7d`, `1m`) that haven't been processed.
inbox-reclassSort the inbox and apply the correct label: newsletters → Newsletters, notifications → Notifications, social networks → Social, forums → Forums.
detect-phishingScan the inbox for phishing indicators and tag matches with a `Phishing` label.
detect-spamScan the inbox for spam indicators that Gmail's own filter missed and tag matches with a `Spam` label (without auto-moving — the user decides).
unread-triageList every unread email grouped by category, each with a recommended action (archive / reply / delete) so the user can pick per entry.

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/klodr/gmail-mcp'

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