AI Personal Email Assistant
Allows managing Gmail inbox, including reading, searching, and replying to emails.
Click on "Install 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., "@AI Personal Email AssistantDo I have any emails about job interviews this week?"
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.
π§ AI Personal Email Assistant (Email MCP Server)
Welcome to your AI Personal Email Assistant! This project acts as a bridge that connects your AI helper (like VS Code Cline) directly to your Gmail and Outlook accounts.
Once connected, you can manage your email inbox simply by chatting in plain Englishβno clicking, searching, or manual copy-pasting required!
π What is this project?
Normally, AI chatbots can't read your files or check your emails because they are closed off.
This project uses the Model Context Protocol (MCP). Think of MCP as a secure telephone line:
You ask the AI: "Do I have any emails about job interviews?"
The AI calls this local server over the secure telephone line.
The Server checks your Gmail/Outlook securely, finds the emails, and reads them back to the AI.
The AI presents the answers nicely to you.
Related MCP server: Gmail MCP Server
π Easy Quick-Start Guide (For Everyone)
To use your AI Email Assistant, you only need to complete 3 simple steps:
1οΈβ£ Log In to Your Email Accounts (One-Time Setup)
We need to give the server permission to check your mail:
Open a terminal in this folder and run the login server:
source venv/bin/activate uvicorn main:app --reload --port 8000Open your web browser and click these links to sign in:
Sign in to Gmail: http://localhost:8000/auth/gmail/start
Sign in to Outlook: http://localhost:8000/auth/outlook/start
Once you sign in, you can close the browser window. The credentials are saved securely on your computer. You won't have to log in again!
2οΈβ£ Connect it to VS Code & Cline
Now we tell Cline how to talk to the email server:
Open VS Code.
Click the Cline extension icon in the sidebar.
Click the βοΈ Gear Icon (Settings) at the bottom.
Change the API Provider to
OpenRouter.Enter your OpenRouter API Key.
Set the Model ID to:
google/gemma-4-31b-it:free(this is 100% free and very smart!).Scroll down to the Configure MCP Servers section, click it, and paste this configuration:
{ "mcpServers": { "email-mcp-server": { "command": "/home/heet/Documents/Tarun Sir/email-mcp-server/venv/bin/python", "args": ["/home/heet/Documents/Tarun Sir/email-mcp-server/run_mcp.py"], "env": {}, "disabled": false, "alwaysAllow": [] } } }Click Done.
3οΈβ£ Talk to your Assistant!
Start a new chat in Cline and ask questions in plain English:
π¬ "Show my last 5 emails."
π¬ "Find any emails matching 'DevOps' from yesterday."
π¬ "Write a friendly reply to the email about the job offer."
π Want to see what operations you can do?
We have created a dedicated, easy-to-read guide listing all the operations you can perform right now.
π Read the Operations Guide (OPERATIONS.md)
π Is it Safe & Secure?
No Passwords Stored: The server never asks for or stores your Gmail or Outlook passwords. It uses secure official log-in keys (OAuth tokens) approved by Google and Microsoft.
Strictly Local: Everything runs directly on your computer. Your email data is never sent to any third-party databases.
Easy Disconnect: To stop the AI from reading your email, simply toggle the switch to
OFFin the Cline MCP settings.
This server cannot be installed
Maintenance
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/HeetSanghani/email-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server