Gmail-mcp-server

Author:@MaitreyaM
View on GitHub

Overview

Gmail MCP Server is a tool built with fastMCP that enables AI agents to send emails via Gmail's SMTP.

To begin, clone its repository. Configure your GMAIL_SMTP_USER and GMAIL_SMTP_PASSWORD as environment variables. Then, run the server to access its email-sending API.

Key features include integration with Gmail's SMTP using TLS, support for multiple attachment methods (from a local path, a URL, or pre-staged files), a resilient design with robust timeout handling, and secure credential management through environment variables.

Use cases involve sending automated emails with attachments, adding email capabilities to AI applications, and managing email communications within server-based software.

For common questions: You can use a regular Gmail account, but an App Password is required if 2-Step Verification is on. Be mindful of Gmail's sending limits. Attachments can be added directly from a file path, downloaded from a URL, or used as pre-staged files.