Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
NANGO_BASE_URLNoThe base URL for the Nango API.https://api.nango.dev
GMAIL_MCP_DEBUGNoEnable debug logging by setting this environment variable to true.
GOOGLE_CLIENT_IDNoYour Google OAuth client ID (Alternative to Nango).
NANGO_SECRET_KEYNoYour Nango secret key.
NANGO_CONNECTION_IDNoYour Nango connection ID.
GOOGLE_CLIENT_SECRETNoYour Google OAuth client secret (Alternative to Nango).
GOOGLE_REFRESH_TOKENNoYour Google OAuth refresh token (Alternative to Nango).
NANGO_INTEGRATION_IDNoYour Nango integration ID (e.g., google or google-mail).

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
gmail_list_messagesB

List Gmail messages with optional search query.

Args: query: Gmail search query (e.g., 'from:sender@example.com', 'is:unread') max_results: Maximum number of messages to return (1-100)

Returns: Dictionary with success status and message data

gmail_get_messageC

Get details of a specific Gmail message.

Args: message_id: Gmail message ID

Returns: Dictionary with message details or error

gmail_send_messageB

Send a Gmail message.

Args: to: Recipient email address subject: Email subject body: Email body content cc: CC recipients (comma-separated) bcc: BCC recipients (comma-separated)

Returns: Dictionary with send result

gmail_search_messagesB

Search Gmail messages with specific criteria.

Args: sender: Filter by sender email subject: Filter by subject keywords after_date: Filter messages after date (YYYY/MM/DD format) before_date: Filter messages before date (YYYY/MM/DD format) has_attachment: Filter messages with attachments is_unread: Filter unread messages max_results: Maximum number of messages to return (1-100)

Returns: Dictionary with search results

gmail_mark_as_readB

Mark Gmail messages as read.

Args: message_ids: List of message IDs to mark as read

Returns: Dictionary with operation result

gmail_delete_messagesC

Delete Gmail messages.

Args: message_ids: List of message IDs to delete

Returns: Dictionary with operation result

gmail_get_statsC

Get Gmail account statistics.

Args: include_unread: Include unread message count

Returns: Dictionary with account statistics

gmail_send_message_with_attachmentB

Send Gmail message with attachment.

Args: to: Recipient email address subject: Email subject body: Email body content file_path: Path to file to attach cc: CC recipients (comma-separated)

Returns: Dictionary with send result

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

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