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.0.tar.gz (12.1 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.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for mcp_email_client_cybergenix-1.0.0.tar.gz
Algorithm Hash digest
SHA256 04b6903a7bf69ca6b4c6e3c5b76a4a46ef537d4859abfc132fd7cc3e7588ebda
MD5 d53d53767ee98c55840be210bf1ae547
BLAKE2b-256 0e6142be500607a5083d9f4fbdd9dd41800e0d779deade88f90f4bad32bd7ac3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_email_client_cybergenix-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b08ebc796ecaa508bbf0565a666f78b33a88f2acc60c0a21b5ffe173edfdc728
MD5 bbaad4d951b0410e7ca0678daf596c48
BLAKE2b-256 c7e7e99c0c33e752a0c31e8ed237fdea0bbab550b1cae4136a23c0c1355d82c1

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