MCP Server
EmailAssistant
An MCP-compatible server that integrates with Gmail API to fetch and summarize emails based on custom queries or recent activity.
0
GitHub Stars
8/23/2025
Last Updated
MCP Server Configuration
1{
2 "name": "EmailAssistant",
3 "command": "uv",
4 "args": [
5 "run",
6 "--with",
7 "mcp[cli]",
8 "--with",
9 "yake",
10 "--with",
11 "google-api-python-client",
12 "--with",
13 "google-auth-httplib2",
14 "--with",
15 "google-auth-oauthlib",
16 "mcp",
17 "run",
18 "/absolute/path/to/your/project/directory/main.py"
19 ]
20}
JSON20 lines
README Documentation
📬 EmailAssistant for Claude Desktop
EmailAssistant is an MCP-compatible server that integrates with the Gmail API to fetch and summarize emails based on custom queries or recent activity. It can be used with Claude Desktop to interact hands-free with your inbox.
⚙️ Setup Instructions
1. Enable Gmail API
- Go to Google Cloud Console.
- Create a new project or use an existing one.
- Enable the Gmail API under “APIs & Services”.
- Create OAuth 2.0 Client ID credentials.
- Download the
client_secret_XXXXX.json
file.
🔧 Configuration Summary
🔁 Create config.py
with these contents:
import os
SCOPES = ["https://www.googleapis.com/auth/gmail.readonly"]
PROJECT_DIR = "/absolute/path/to/your/project/directory/"
CREDENTIALS_FP = os.path.join(PROJECT_DIR, "client_secret_XXXXX.json")
TOKEN_FP = os.path.join(PROJECT_DIR, "token.json")
Note: Make sure to replace the placeholders in the above code---PROJECT_DIR & CREDENTIALS_FP
🖥️ 3. Claude Desktop Configuration
In your Claude Desktop configuration file (can find it in Developer Settings):
{
"mcpServers": {
"EmailAssistant": {
"command": "uv",
"args": [
"run",
"--with",
"mcp[cli]",
"--with",
"yake",
"--with",
"google-api-python-client",
"--with",
"google-auth-httplib2",
"--with",
"google-auth-oauthlib",
"mcp",
"run",
"/absolute/path/to/your/project/directory/main.py"
]
}
}
}
✅ Running It
Once configured:
- Start Claude Desktop
- Claude will automatically recognize the
EmailAssistant
MCP server. - You can now use Claude to call functions like:
get_email_summary(time="newer_than:1d")
get_top_matching_email(query_keywords="project deadline")
- All you need to do is ask Claude in plain english about your inbox
📌 Requirements
- Python 3.9+
uv
(or usepip
if not usinguv
)- The following Python packages:
google-api-python-client
google-auth-httplib2
google-auth-oauthlib
mcp[cli]
Quick Install
Quick Actions
Key Features
Model Context Protocol
Secure Communication
Real-time Updates
Open Source