🔍
Email Analyzer
Gmail inbox analytics via MCP: fetch, search, and summarize email metrics in Node.js.
0 installs
Trust: 34 — Low
Search
Ask AI about Email Analyzer
Powered by Claude · Grounded in docs
I know everything about Email Analyzer. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Loading tools...
Reviews
Documentation
Email Analyzer with Gmail MCP Integration
A Node.js application that connects to your Gmail account via MCP (Model Context Protocol) and analyzes your emails.
Features
- Connect to Gmail via MCP
- Fetch recent emails
- Search emails with custom queries
- Analyze email metrics:
- Total emails
- Unread count
- Important emails
- Emails with attachments
- Top senders
- Label distribution
Setup
-
Install dependencies:
npm install -
Your Gmail credentials are already configured in
.envfile. -
Run the analyzer:
npm start
Usage
Run the analyzer
npm start
This will:
- Connect to Gmail via MCP
- Fetch your 50 most recent emails
- Analyze and display metrics
- Search for unread emails
Customize the analysis
Edit index.js to customize:
- Number of emails to fetch
- Search queries
- Analysis parameters
Available Gmail MCP Tools
The Gmail MCP server provides these tools:
gmail_list_messages- List recent messagesgmail_get_message- Get a specific message by IDgmail_search_messages- Search messages with Gmail query syntaxgmail_send_message- Send an emailgmail_create_draft- Create a draft email
File Structure
index.js- Main entry pointemail-analyzer.js- Email analysis logicgmail-client.js- Gmail MCP client wrappergmail-mcp-config.json- MCP server configuration.env- Environment variables (credentials)
Security Note
The .env file contains your OAuth credentials. Keep it secure and never commit it to version control.
