logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mcp-electronic-messaging-gateway

Facilitates standardized electronic mail exchange by offering robust IMAP and SMTP protocol implementations via a unified server interface.

Author

mcp-electronic-messaging-gateway logo

ai-zerolab

BSD 3-Clause "New" or "Revised" License

Quick Info

GitHub GitHub Stars 91
NPM Weekly Downloads 0
Tools 1
Last Updated 2026-02-19

Tags

imapsmtpemailimap smtpmcp emailemail server

mcp-electronic-messaging-gateway

Release Build status codecov Commit activity License smithery badge

Unified Mailbox Access and Transmission via Message Control Protocol (MCP) Endpoint

Deployment Instructions

Non-Persistent Setup

It is advised to utilize uv for environment management.

Execute uvx mcp-email-server@latest ui to initialize the configuration interface. Subsequently, integrate the following configuration snippet into your primary mcp client configuration file:

{ "mcpServers": { "zerolib-email": { "command": "uvx", "args": ["mcp-email-server@latest", "stdio"] } } }

This utility is published on the Python Package Index (PyPI); installation can be performed via pip install mcp-email-server. Following installation, launch the configuration interface with: mcp-email-server ui

Persistent Configuration via Environment Variables

Alternatively, settings can be defined using system environment variables, which is especially beneficial in automated CI/CD pipelines (e.g., Jenkins). The zerolib-email component prioritizes environment variable values over settings stored in the TOML configuration file.

{ "mcpServers": { "zerolib-email": { "command": "uvx", "args": ["mcp-email-server@latest", "stdio"], "env": { "MCP_EMAIL_SERVER_ACCOUNT_NAME": "work", "MCP_EMAIL_SERVER_FULL_NAME": "John Doe", "MCP_EMAIL_SERVER_EMAIL_ADDRESS": "john@example.com", "MCP_EMAIL_SERVER_USER_NAME": "john@example.com", "MCP_EMAIL_SERVER_PASSWORD": "your_password", "MCP_EMAIL_SERVER_IMAP_HOST": "imap.gmail.com", "MCP_EMAIL_SERVER_IMAP_PORT": "993", "MCP_EMAIL_SERVER_SMTP_HOST": "smtp.gmail.com", "MCP_EMAIL_SERVER_SMTP_PORT": "465" } } } }

Configurable Environment Directives

Directive Purpose Default Value Mandatory
MCP_EMAIL_SERVER_ACCOUNT_NAME Unique identifier for the mailbox setup "default" No
MCP_EMAIL_SERVER_FULL_NAME User-facing name for display Email prefix No
MCP_EMAIL_SERVER_EMAIL_ADDRESS The primary electronic mail address - Yes
MCP_EMAIL_SERVER_USER_NAME Credentials for authentication (defaults to email address) Same as email No
MCP_EMAIL_SERVER_PASSWORD Secret for mail access - Yes
MCP_EMAIL_SERVER_IMAP_HOST Incoming mail server address - Yes
MCP_EMAIL_SERVER_IMAP_PORT Incoming mail server port number 993 No
MCP_EMAIL_SERVER_IMAP_SSL Activates secure connection (SSL/TLS) for IMAP true No
MCP_EMAIL_SERVER_SMTP_HOST Outgoing mail server address - Yes
MCP_EMAIL_SERVER_SMTP_PORT Outgoing mail server port number 465 No
MCP_EMAIL_SERVER_SMTP_SSL Activates secure connection (SSL/TLS) for SMTP true No
MCP_EMAIL_SERVER_SMTP_START_SSL Activates STARTTLS for SMTP false No

For distinct authentication requirements between receiving (IMAP) and sending (SMTP) services:

  • Use MCP_EMAIL_SERVER_IMAP_USER_NAME / MCP_EMAIL_SERVER_IMAP_PASSWORD
  • Use MCP_EMAIL_SERVER_SMTP_USER_NAME / MCP_EMAIL_SERVER_SMTP_PASSWORD

To test integration with Claude Desktop, or integrate with other mcp clients, determine the executable path using $which mcp-email-server and configure your client setup as follows:

{ "mcpServers": { "zerolib-email": { "command": "{{ ENTRYPOINT }}", "args": ["stdio"] } } }

If docker is available, containerized deployment is an option. Configuration in the client might involve specifying tools via MCP. The default configuration file location is ~/.config/zerolib/mcp_email_server/config.toml.

{ "mcpServers": { "zerolib-email": { "command": "docker", "args": ["run", "-it", "ghcr.io/ai-zerolab/mcp-email-server:latest"] } } }

Automated Deployment via Smithery

To facilitate automatic setup of the Email Server for Claude Desktop through Smithery:

bash npx -y @smithery/cli install @ai-zerolab/mcp-email-server --client claude

Project Maintenance

This codebase relies on uv for build management.

Run make install to set up the requisite isolated environment and integrate required pre-commit mechanisms.

Local development tasks can be executed using uv run mcp-email-server.

New Version Publication Procedure

  1. Generate an authentication token on PyPI.
  2. Securely store this API Token as a repository secret named PYPI_TOKEN via this configuration panel.
  3. Initiate a new software release on Github.
  4. Assign a new tag following the format *.*.* (e.g., 1.2.3).

For exhaustive detail on the Continuous Integration and Continuous Deployment (CI/CD) pipeline, consult this reference.

WIKIPEDIA: Operational enablement assets encompass the entire suite of systems, software, procedural controls, computational frameworks, and methodological approaches utilized by organizational entities to successfully navigate evolving market conditions, sustain competitive standing, and amplify overall enterprise efficacy.

== General Perspective == Management assets can be categorized based on the specific functional units they serve and the management aspect they address. Examples include tools for strategic planning, workflow management, record-keeping, personnel administration, judgment formulation, and performance monitoring. A functional breakdown typically involves:

Assets for capturing and verifying input data across any division. Instruments designed for oversight and refinement of operational sequences. Systems for aggregating information and supporting high-level determinations. Contemporary management apparatus has undergone rapid transformation over the last decade, driven by accelerated technological progress. This pace makes optimal selection among available business solutions for any given corporate requirement challenging, often fueled by perpetual efforts to minimize expenditure and maximize revenue, alongside the imperative to deeply comprehend client requirements and deliver products meeting those needs precisely as requested. In this dynamic environment, executives must adopt a strategic stance regarding their operational enablement assets, avoiding a simple pursuit of the newest available tool. Often, implementing tools without necessary structural alignment results in system instability. Therefore, business assets require judicious selection followed by thorough customization to fit the organization's unique profile, rather than forcing the organization to conform to the tool's inherent structure.

== Predominant Instruments (2013 Survey Insights) == A 2013 assessment by Bain & Company illuminated the global utilization patterns of business instruments, reflecting how their outputs align with regional necessities, considering varying economic climates and corporate standings. The top ten instruments identified were:

  1. Strategic Roadmap Development
  2. Client Relationship Governance
  3. Workforce Sentiment Measurement
  4. Comparative Performance Analysis (Benchmarking)
  5. Integrated Performance Metric System (Balanced Scorecard)
  6. Core Competency Identification
  7. Operational Delegation (Outsourcing)
  8. Organizational Transition Programs
  9. Product Flow Administration (Supply Chain Management)
  10. Foundational Mandate and Future Vision Definition
  11. Market Segment Identification
  12. Comprehensive Quality Assurance Protocols (Total Quality Management)

== Enterprise Software Solutions == Software, or a collection of programmed routines employed by personnel to execute diverse organizational functions, is termed business software or an application. These programs are leveraged to enhance productivity metrics, quantify results, and perform various corporate duties with high precision. The evolution began with Management Information Systems, progressed to Enterprise Resource Planning, integrated Customer Relationship Management, and has now largely migrated to cloud-based enterprise management platforms. While a clear link exists between Information Technology investments and organizational success, two factors critically amplify delivered value: the proficiency of the deployment process and the appropriate vetting and tailoring of the selected technological instruments.

== Resources for Small and Medium Enterprises (SMEs) == Tools tailored for SMEs are crucial as they offer pathways to reduce oper

See Also

`