Observed since 21 Oct, 11:26 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A MCP Server + CLI Tool that perform email operations
Cross-platform email operations for MCP clients and CLI 🌍
A dual-purpose tool that works as:
Universal compatibility: Works on Windows, macOS, Linux, and WSL with Gmail, Outlook, Yahoo, and any IMAP/SMTP providers.
📧 Basic Operations: Send, read, get, delete emails | Mark read/unread
🔍 Advanced Features: Search, forward, reply, bulk operations | Draft & schedule
👥 Contact Management: Add, update, search, organize contacts by groups
🌐 Cross-Platform: Works identically on all platforms and terminals
🎯 One Command - Complete Setup:
npm install -g @0xshariq/email-mcp-server
# OR
pnpm install -g @0xshariq/email-mcp-server
✨ What Happens Automatically:
🎬 Getting Started:
# Set up your email (one-time only):
email-setup
# Start sending emails:
email-send "user@example.com" "Hello" "Your message"
# Explore all commands:
email-cli --help
🔧 The MCP server and CLI share the same environment configuration!
# Copy and edit .env file
cp .env.example .env
nano .env # Add your credentials
Configure environment variables in your shell profile:
Linux: Add to ~/.bashrc
export EMAIL_USER="your-email@gmail.com"
export EMAIL_PASS="xxxx-xxxx-xxxx-xxxx"
export SMTP_HOST="smtp.gmail.com"
export SMTP_PORT="587"
export IMAP_HOST="imap.gmail.com"
export IMAP_PORT="993"
macOS: Add to ~/.zshrc (or ~/.bash_profile)
export EMAIL_USER="your-email@gmail.com"
export EMAIL_PASS="xxxx-xxxx-xxxx-xxxx"
# ... (same as Linux)
Windows: Set System Environment Variables
Win + X → System → Advanced system settingsEMAIL_USER=your-email@gmail.com
EMAIL_PASS=xxxx-xxxx-xxxx-xxxx # App Password (not regular password)
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
IMAP_HOST=imap.gmail.com
IMAP_PORT=993
📖 Complete Configuration Guide - Detailed setup for all platforms and providers
Setup Requirements:
📋 Supports: Gmail, Outlook, Yahoo, and any IMAP/SMTP provider
npm start # Starts MCP server for Claude Desktop
# Works identically on Windows, macOS, Linux, WSL
email-send "user@example.com" "Subject" "Message"
email-read 10
contact-add "John Doe" "john@example.com" "work"
email-search --from "boss@company.com" --unread
All 40+ commands work the same across all platforms!
Complete documentation for all features and platforms:
| Document | Description |
|---|---|
| Configuration Guide | Comprehensive environment setup for CLI and MCP server (local and global) |
| Installation Guide | Cross-platform installation instructions (Windows, macOS, Linux, WSL) |
| CLI Reference | Complete reference for all 40+ CLI commands with examples |
| CLI Usage | Top-level CLI usage and setup commands |
| Commands Reference | Detailed command documentation with options and examples |
| Document | Description |
|---|---|
| Architecture | System architecture, data models, and design decisions |
| Troubleshooting | Common issues and solutions for all platforms |
| Windows Guide | Windows-specific installation and configuration |
| Publishing Guide | Package publishing and versioning strategy |
| Restructure Summary | v2.0 TypeScript migration details |
First Time Setup:
Having Issues?
Development & Contributing:
As CLI User:
As MCP Server User:
As Developer:
When running as an MCP server, all email operations are available as structured tools for Claude Desktop and other MCP clients.
Available Tools:
Usage in Claude Desktop:
{
"to": "user@example.com",
"subject": "Hello",
"body": "Message from Claude!"
}
📖 Configuration: See CONFIGURATION.md
.env secure (never commit to git)Quick Development Setup:
git clone https://github.com/0xshariq/email-mcp-server.git
cd email-mcp-server
npm install # Install dependencies
npm run build # Compile TypeScript
npm link # Test locally
Project Structure:
email-mcp-server/
├── cli/ # CLI implementation (Commander.js)
├── server/ # MCP server implementation
├── src/lib/ # Shared email & contact services
├── dist/ # Compiled JavaScript
└── docs/ # Complete documentation
Key Technologies:
Documentation for Developers:
Contributing: Fork → Branch → PR. See Contributing Guidelines
Issues & Questions:
Documentation by Topic:
All Documentation: See docs/ folder for complete guides
MIT License - see LICENSE file for details.
🌟 Star this repo if it helps you manage emails efficiently across platforms!
Version: 2.0.0
Last Updated: December 20, 2025
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 2.0.1Registry latest | 12 Jan 2026 | 21 | |
| 2.0.0 | 20 Dec 2025 | 21 | |
| 1.7.1 | 11 Oct 2025 | 11 | |
| 1.7.0 | 11 Oct 2025 | 11 | |
| 1.6.1 | 4 Oct 2025 | 10 | |
| 1.6.0 | 3 Oct 2025 | 10 | |
| 1.5.2 | 3 Oct 2025 | 10 | |
| 1.5.1 | 3 Oct 2025 | 10 | |
| 1.5.0 | 3 Oct 2025 | 10 | |
| 1.4.0 | 3 Oct 2025 | 10 | |
| 1.3.1 | 3 Oct 2025 | 10 | |
| 1.3.0 | 2 Oct 2025 | 10 | |
| 1.2.2 | 2 Oct 2025 | 10 | |
| 1.2.1 | 2 Oct 2025 | 10 | |
| 1.2.0 | 2 Oct 2025 | 10 | |
| 1.1.1 | 2 Oct 2025 | 9 | |
| 1.1.0 | 1 Oct 2025 | 9 | |
| 1.0.0 | 1 Oct 2025 | 9 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 11:26 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:b0c3dff92a326dec7c57d33f43eb74d2664c9277f8cd260dcf5e1406879e349f