MailPilot-AI
Provides AI-powered email management for Gmail, including reading, searching, sending, replying, summarizing, and organizing emails via the Gmail API.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MailPilot-AIsummarize my inbox for today"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π§ 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
Related MCP server: Gmail AutoAuth MCP Server
π 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.gitGo into the project
cd MailPilot-AICreate a virtual environment
python -m venv .venvActivate the virtual environment
Windows
.venv\Scripts\activateLinux / macOS
source .venv/bin/activateInstall dependencies
pip install -r requirements.txtConfigure Gmail API
Create a Google Cloud Project.
Enable the Gmail API.
Download
credentials.json.Place
credentials.jsonin the project root.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
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect any mailbox to Claude, ChatGPT & AI: read, send, reply, schedule & search emails.
Manage Gmail end-to-end: search, read, send, draft, label, and organize threads. Automate workflowβ¦
- alfred_OAuthai.get-alfred
Your real Gmail, Outlook and calendars, worked as you: read, draft, send, schedule, organize.
AI email inbox and sending tools with attachments, search, live events, and webhooks.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to interact with Gmail through natural language, supporting email sending/reading, searching, draft management, label organization, and batch operations with secure OAuth authentication.-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Gmail through natural language, supporting operations like sending, searching, and reading emails. It includes comprehensive label management, batch processing, and a streamlined OAuth2 auto-authentication flow.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Gmail through natural language interactions, including sending, reading, searching emails, and managing labels with auto authentication support.14,810 npm1MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Gmail through natural language, including sending, reading, searching, labeling emails, managing attachments, and performing thread operations.3MIT