Skip to main content
Glama

πŸ“§ MailPilot-AI

AI-powered Gmail Assistant built using FastMCP and the Gmail API.

MailPilot-AI is an intelligent Gmail assistant that connects with Gmail using OAuth2 authentication and provides AI-powered email management features such as reading, searching, sending, replying, summarizing, and organizing emails.


✨ Features

  • πŸ“₯ Read latest emails

  • πŸ“¬ Read unread emails

  • πŸ” Search emails

  • πŸ“– Open complete email

  • πŸ“€ Send emails

  • πŸ’¬ Reply to emails

  • ⭐ Star emails

  • πŸ“¦ Archive emails

  • πŸ—‘ Delete emails

  • βœ” Mark emails as read

  • πŸ€– AI Inbox Summary

  • 🧠 Smart email workflows

  • πŸ” Secure Gmail OAuth authentication


πŸ— Project Structure

MailPilot-AI/
β”‚
β”œβ”€β”€ agent/
β”‚   β”œβ”€β”€ email_service.py
β”‚   β”œβ”€β”€ inbox_summary.py
β”‚   β”œβ”€β”€ memory.py
β”‚   β”œβ”€β”€ planner.py
β”‚   β”œβ”€β”€ reply_generator.py
β”‚   └── workflows.py
β”‚
β”œβ”€β”€ gmail/
β”‚   β”œβ”€β”€ actions.py
β”‚   β”œβ”€β”€ attachments.py
β”‚   β”œβ”€β”€ compose.py
β”‚   β”œβ”€β”€ reader.py
β”‚   └── search.py
β”‚
β”œβ”€β”€ docs/
β”œβ”€β”€ tests/
β”‚
β”œβ”€β”€ auth.py
β”œβ”€β”€ gmail_api.py
β”œβ”€β”€ server.py
β”œβ”€β”€ requirements.txt
└── README.md

πŸ›  Tech Stack

  • Python

  • FastMCP

  • Gmail API

  • OAuth 2.0

  • Google Cloud Platform

  • Git

  • GitHub


πŸš€ Getting Started

Clone the repository

git clone https://github.com/himateja1/MailPilot-AI.git

Go into the project

cd MailPilot-AI

Create a virtual environment

python -m venv .venv

Activate the virtual environment

Windows

.venv\Scripts\activate

Linux / macOS

source .venv/bin/activate

Install dependencies

pip install -r requirements.txt

Configure Gmail API

  1. Create a Google Cloud Project.

  2. Enable the Gmail API.

  3. Download credentials.json.

  4. Place credentials.json in the project root.

  5. Run authentication once.


β–Ά Running the Project

python server.py

πŸ“Έ Screenshots

Inbox Summary

Add screenshot here


Reading Emails

Add screenshot here


Sending Emails

Add screenshot here


MCP Server

Add screenshot here


πŸ“Œ Future Improvements

  • 🎀 Voice commands

  • πŸ“… Google Calendar integration

  • πŸ“Ž Attachment summarization

  • 🌐 Web dashboard

  • πŸ€– Multi-agent support

  • 🧠 RAG over emails

  • πŸ“± Mobile companion


🀝 Contributing

Contributions, ideas, and suggestions are welcome.

Feel free to fork the repository and submit a pull request.


πŸ“„ License

This project is for educational and portfolio purposes.


πŸ‘¨β€πŸ’» Author

Himateja

GitHub: https://github.com/himateja1

-
license - not tested
-
quality - not tested
C
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

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/himateja1/MailPilot-AI'

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