mcp-email-client
Email Client as MCP Server. Feature: multiple configuration, more than just gmail
claude mcp add --transport stdio gamalan-mcp-email-client uv run --directory /path/to/repo mcp_email_client
How to use
This MCP server provides a Python-based email client that you can manage via Claude Desktop or your editor. It supports listing, adding, updating, and deleting email configurations, sending emails using a selected configuration, and reading the latest unread emails. To use it, ensure uv is installed and the repository is set up, then run the MCP server through uv using the provided configuration. The server exposes tools for managing your email accounts (IMAP/SMTP settings) and for performing actions like sending messages or fetching the most recent unread messages. After starting, you can invoke actions by supplying the appropriate configuration identifiers and message details through the MCP interface.
How to install
Prerequisites:
- Python environment (recommended version compatible with the project)
- uv installed (the Universal Validator/Runner used by MCPs)
- Access to the repository hosting the MCP (clone from GitHub)
Install and run:
-
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 and set up the MCP server: uv sync
-
Run the MCP server using the configuration (example shown in the config): Use your preferred MCP client (Claude Desktop, VSCode, etc.) with the following configuration: { "mcpServers": { "mcp_email_client": { "command": "uv", "args": [ "run", "--directory", "/path/to/repo", "mcp_email_client" ] } } }
Additional notes
Tips and considerations:
- Ensure your email configurations (IMAP/SMTP) are stored securely and referenced by name when sending or fetching emails.
- The MCP supports listing, adding, updating, and deleting email configurations; keep credentials encrypted or use environment-protected storage when possible.
- For first-time runs, you may need to initialize configuration storage and grant necessary permissions for network access to SMTP/IMAP servers.
- If you encounter issues with UV path resolution, verify that the --directory path points to the root of the mcp-email-client project and that the entry point matches the server script/module name used by your MCP client.
- When deploying in different environments (Windows/Linux/macOS), ensure file paths in the configuration are appropriate for that OS (escape backslashes on Windows).
- Check logs or verbose output from UV/MCP for troubleshooting connection errors to mail servers (authentication failures, blocked ports, or TLS requirements).
- The server focuses on a 5-unread-emails read limit; modify client calls if you plan to fetch more than the default.
Related MCP Servers
mcp-pinecone
Model Context Protocol server to allow for reading and writing from Pinecone. Rudimentary RAG
Gitingest
mcp server for gitingest
bzm
Official BlazeMeter MCP Server for AI-driven performance testing
mcp -memos-py
A Python package enabling LLM models to interact with the Memos server via the MCP interface for searching, creating, retrieving, and managing memos.
mcp -python-template
This template provides a streamlined foundation for building Model Context Protocol (MCP) servers in Python. It's designed to make AI-assisted development of MCP tools easier and more efficient.
Convert-Markdown-PDF
Markdown To PDF Conversion MCP