A Python-based MCP (Model Context Protocol) email client for managing email configurations and interactions with Claude Desktop
Project description
MCP Email Client
Overview
MCP Email Client is a Python-based email management tool that implements the Model Context Protocol (MCP) for seamless integration with Claude Desktop. It provides comprehensive email functionality including configuration management, sending emails, and reading messages with semantic search capabilities.
Features
- 📧 Email Configuration Management: List, add, update, and delete email configurations
- 📨 Send Emails: Send emails using specified configurations
- 📖 Read Emails: Access and read the latest unread emails
- 🔍 Semantic Search: Advanced email search with AI-powered semantic understanding
- 🗃️ Database Storage: Efficient email storage using DuckDB
- 🔌 MCP Integration: Native support for Claude Desktop integration
Installation
From PyPI (Recommended)
pip install mcp-email-client
From Source
-
Clone the repository:
git clone https://github.com/gamalan/mcp-email-client.git cd mcp-email-client
-
Install uv (if not already installed):
Linux/MacOS:
curl -LsSf https://astral.sh/uv/install.sh | sh
Windows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
-
Install dependencies:
uv sync
Quick Start
After installation, you can run the MCP email client directly:
mcp-email-client
Configuration
Configuration example using Claude Desktop
{
"mcpServers": {
"mcp_email_client": {
"command": "uv",
"args": [
"run",
"--directory",
"D:\\Project\\RepoPath",
"mcp_email_client"
]
}
}
}
For VS Code:
{
"servers": {
"mcp-email-client": {
"type": "stdio",
"command": "mcp-email-client",
"args": []
}
}
}
For development/local installation:
{
"servers": {
"mcp-email-client": {
"type": "stdio",
"command": "/path/to/uv",
"args": [
"run",
"--directory",
"/path/to/repo",
"run_mcp_server.py"
]
}
}
}
Usage
The MCP Email Client provides several tools that can be used through Claude Desktop:
- List Configurations: View all configured email accounts
- Add Configuration: Add new email account settings
- Update Configuration: Modify existing email configurations
- Delete Configuration: Remove email configurations
- Send Email: Send emails through configured accounts
- Read Emails: Access latest unread emails
- Search Emails: Semantic search through email content
Requirements
- Python 3.12 or higher
- DuckDB for local email storage
- Internet connection for email operations
- Valid email account credentials (IMAP/SMTP)
Contributing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
If you encounter any issues or have questions, please file an issue on the GitHub repository.
Changelog
v0.1.0
- Initial release
- Basic email configuration management
- Email sending and reading functionality
- MCP integration for Claude Desktop
- Semantic search capabilities
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_email_client_cybergenix-1.0.0.tar.gz.
File metadata
- Download URL: mcp_email_client_cybergenix-1.0.0.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04b6903a7bf69ca6b4c6e3c5b76a4a46ef537d4859abfc132fd7cc3e7588ebda
|
|
| MD5 |
d53d53767ee98c55840be210bf1ae547
|
|
| BLAKE2b-256 |
0e6142be500607a5083d9f4fbdd9dd41800e0d779deade88f90f4bad32bd7ac3
|
File details
Details for the file mcp_email_client_cybergenix-1.0.0-py3-none-any.whl.
File metadata
- Download URL: mcp_email_client_cybergenix-1.0.0-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b08ebc796ecaa508bbf0565a666f78b33a88f2acc60c0a21b5ffe173edfdc728
|
|
| MD5 |
bbaad4d951b0410e7ca0678daf596c48
|
|
| BLAKE2b-256 |
c7e7e99c0c33e752a0c31e8ed237fdea0bbab550b1cae4136a23c0c1355d82c1
|