Gmail-mcp-server
The Gmail MCP Server is a resilient MCP server built to send emails using Gmail's SMTP server, supporting various file attachment methods. It features a design focused on reliability and secure configuration via environment variables.
Gmail MCP Server
This project implements a resilient MCP server using fastMCP, designed to send emails through Gmail's SMTP server and support multiple file attachment methods including direct file paths, URL-based attachments, and pre-staged attachments. Key features include Gmail SMTP integration, a resilient design with increased timeout and graceful shutdown, and environment-based configuration using environment variables.
Features
- Integration with Gmail's SMTP server for email sending.
- Multiple methods for attaching files.
- Resilient server design with enhanced shutdown handling.
- Secure environment variable-based configuration.
Requirements
- Python 3.x
- fastMCP
- python-dotenv
- requests
Setup
- Clone the repository and set up environment variables with your Gmail credentials.
Usage
- Send emails with parameters such as recipient, subject, body, and optional attachments.
License
Licensed under the MIT License.
Contributing
Contributions are welcome via issues or pull requests.
Acknowledgments
Built with fastMCP and inspired by resilient server design.