Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

mcp-email-server

MCP.Pizza Chef: ai-zerolab

The mcp-email-server is an MCP server that provides IMAP and SMTP protocol support, enabling real-time email access and sending capabilities within the MCP ecosystem. It allows LLMs and applications to interact with email inboxes and send emails securely and efficiently, facilitating email-based workflows and automation through structured context exposure.

Use This MCP server To

Access and read emails from IMAP inboxes in real time Send emails programmatically via SMTP through MCP Integrate email data into AI workflows and agents Automate email parsing and response generation Monitor email inboxes for specific triggers or content Enable LLMs to manage email communications within apps

README

mcp-email-server

Release Build status codecov Commit activity License smithery badge

IMAP and SMTP via MCP Server

Installation

Manual Installation

We recommend using uv to manage your environment.

Try uvx mcp-email-server@latest ui to config, and use following configuration for mcp client:

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

This package is available on PyPI, so you can install it using pip install mcp-email-server

After that, configure your email server using the ui: mcp-email-server ui

Then you can try it in Claude Desktop. If you want to intergrate it with other mcp client, run $which mcp-email-server for the path and configure it in your client like:

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

If docker is avaliable, you can try use docker image, but you may need to config it in your client using tools via MCP. The default config path is ~/.config/zerolib/mcp_email_server/config.toml

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

Installing via Smithery

To install Email Server for Claude Desktop automatically via Smithery:

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

Development

This project is managed using uv.

Try make install to install the virtual environment and install the pre-commit hooks.

Use uv run mcp-email-server for local development.

Releasing a new version

  • Create an API Token on PyPI.
  • Add the API Token to your projects secrets with the name PYPI_TOKEN by visiting this page.
  • Create a new release on Github.
  • Create a new tag in the form *.*.*.

For more details, see here.

mcp-email-server FAQ

How does mcp-email-server handle email authentication?
It supports standard IMAP and SMTP authentication methods, ensuring secure access to email accounts.
Can mcp-email-server send emails as well as receive them?
Yes, it supports both IMAP for receiving and SMTP for sending emails.
Is mcp-email-server compatible with all email providers?
It works with any email provider supporting standard IMAP and SMTP protocols.
How does mcp-email-server ensure data privacy?
It uses secure authentication and encrypted connections to protect email data.
Can I use mcp-email-server with multiple email accounts simultaneously?
Yes, it can manage multiple accounts by configuring separate IMAP/SMTP connections.
Does mcp-email-server support real-time email notifications?
It can be configured to poll or listen for new emails to provide near real-time updates.
What LLM providers can integrate with mcp-email-server?
It is provider-agnostic and works with OpenAI, Anthropic Claude, and Google Gemini models.