Skip to main content

A Python-based MCP (Model Context Protocol) email client for managing email configurations and interactions with Claude Desktop

Project description

MCP Email Client

PyPI version Python 3.12+ License: MIT

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

  1. Clone the repository:

    git clone https://github.com/gamalan/mcp-email-client.git
    cd mcp-email-client
    
  2. 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"
    
  3. 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.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_email_client_cybergenix-1.0.1.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_email_client_cybergenix-1.0.1-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file mcp_email_client_cybergenix-1.0.1.tar.gz.

File metadata

File hashes

Hashes for mcp_email_client_cybergenix-1.0.1.tar.gz
Algorithm Hash digest
SHA256 99116db6c7215413c47135f1af3f8926a0f61267fadfd8a4e5570f3d7f82551d
MD5 85d609c161af5817fddf5687777b3f3d
BLAKE2b-256 34966954fa6a2b17374a2a9abbe618bb8be19017f43b43cbcbd18a6278b8ca5d

See more details on using hashes here.

File details

Details for the file mcp_email_client_cybergenix-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_email_client_cybergenix-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 37ada1cee458e6b0b0d3bd60554decb42dc33c074b5294077ccdae3d97c7194f
MD5 3f8972f3d8d483953e812a3a7dad75ec
BLAKE2b-256 9857eb6b24d74a02e06ba90fb6c502aaeb4846129efd4d369fd8cc6e80829023

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page