Feedback

Email Server MCP Server — by ai-zerolab

@ai-zerolab Claim

Basic information

Runtime
Python
Version
1.0.0
Category
License
BSD-3-Clause
Transports
stdio
Author
ai-zerolab
Submitted by
Community
Quality
40
Stars
184

About Email Server MCP Server

Connect your free email services or Mailchimp for seamless automation. Manage emails efficiently with IMAP and SMTP support.

Email Server is a MCP server in the Communication category listed in the AddMCP.net directory, published by ai-zerolab. It exposes 7 tools, including list_available_accounts, add_email_account, send_email, list_emails_metadata and more. Supported transport: stdio. Runtime: Python. License: BSD-3-Clause. The repository has 184 GitHub stars. Source code is hosted on github.com. Related topics: communication, community, email, email-server, fastmcp.

Setup

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

Email Server MCP Server — by ai-zerolab config

Add this server to your MCP-compatible client using the configuration below.

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

Email Server MCP Server — by ai-zerolab tools

  • list_available_accounts — List all configured email accounts with masked credentials.
  • add_email_account — Add a new email account configuration to the settings.
  • send_email — Send an email using the specified account. Supports replying to emails with proper threading when in_reply_to is provided.
  • list_emails_metadata — List email metadata (email_id, subject, sender, recipients, date) without body content. Returns email_id for use with get_emails_content.
  • get_emails_content — Get the full content (including body) of one or more emails by their email_id. Use list_emails_metadata first to get the email_id.
  • delete_emails — Delete one or more emails by their email_id. Use list_emails_metadata first to get the email_id.
  • download_attachment — Download an email attachment and save it to the specified path. This feature must be explicitly enabled in settings (enable_attachment_download=true) due to security considerations.

Overview

What is Email Server?

The MCP Email Server is a Model Context Protocol server that enables LLMs to compose and send emails and search for attachments in specified directories using SMTP.

How to use Email Server?

Install dependencies (pydantic, python-dotenv), create an email.json file with SMTP server configurations, set the SENDER and PASSWORD environment variables, and run the server with python -m mcp_email_server --dir /path/to/attachment/directory. Configure it in Claude.app by adding the server details to the MCP servers settings.

Key features of Email Server

  • Send emails with multiple recipients and attachments
  • Search for files in directories using pattern matching
  • Secure email transmission via SMTP
  • Supports common file types for attachments (documents, archives, text, images)
  • Provides both tools and prompts for email and attachment operations

Use cases of Email Server

  • An LLM assistant sending an email with attachments on behalf of a user
  • Automating email notifications by composing and sending messages from within a conversation
  • Searching a local directory for files that match a pattern before attaching them to an email
  • Integrating email capability into a Claude-based workflow without leaving the chat

Frequently asked questions

1 What dependencies are required?

The server requires pydantic and python-dotenv packages. Install them via pip.

2 How do I configure email credentials?

Set the SENDER environment variable to your email address and PASSWORD to your SMTP password or app-specific password. For Gmail and similar services, an app‑specific password may be required.

3 What file types are supported for attachments?

The server supports documents (doc, docx, xls, xlsx, ppt, pptx, pdf), archives (zip, rar, 7z, tar, gz), text files (txt, log, csv, json, xml), images (jpg, jpeg, png, gif, bmp), and other files like md.

4 How do I set up the SMTP server?

Create an email.json file in the server directory with an array of objects, each containing domain (e.g., @gmail.com), server (e.g., smtp.gmail.com), and port (typically 587).

5 Are there any security considerations?

You should use an app‑specific password for email accounts that require it. The server also restricts attachment file types to a limited list for security reasons.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬