MCP Email Server logo

MCP Email Server

by Shy2593666979

The MCP Email Server enables LLMs to compose and send emails, as well as search for attachments within specified directories. It provides email functionality through the Model Context Protocol.

View on GitHub

Last updated: N/A

What is MCP Email Server?

The MCP Email Server is a server that provides email functionality to Large Language Models (LLMs). It allows LLMs to send emails, manage attachments, and search for files.

How to use MCP Email Server?

To use the server, first install the required dependencies using pip. Configure the email settings in email.json with SMTP server details. Run the server using the provided command, specifying the attachment directory. Configure your LLM (e.g., Claude.app) to use the server by adding the server configuration to your LLM settings.

Key features of MCP Email Server

  • Send emails with multiple recipients

  • Support for email attachments

  • Search for files in directories based on pattern matching

  • Secure email transmission using SMTP

Use cases of MCP Email Server

  • Automated email notifications from LLMs

  • Sending reports and documents generated by LLMs

  • Integrating email functionality into LLM-powered workflows

  • Searching for relevant attachments based on LLM queries

FAQ from MCP Email Server

What is the purpose of the email.json file?

The email.json file contains the SMTP server configurations for different email domains, such as Gmail, Outlook, and Yahoo. It specifies the server address and port for sending emails.

What are the required arguments for the send_email tool?

The required arguments are receiver (list of recipient email addresses), body (the main content of the email), and subject (the subject line of the email). Attachments are optional.

How do I specify the attachment directory?

You specify the attachment directory using the --dir argument when running the server. For example: python -m mcp_email_server --dir /path/to/attachment/directory

What file types are supported for attachments?

The server supports various document, archive, text, and image file types, including doc, docx, xls, xlsx, ppt, pptx, pdf, zip, rar, 7z, tar, gz, txt, log, csv, json, xml, jpg, jpeg, png, gif, and bmp.

Do I need an app-specific password for Gmail?

Yes, for Gmail and other services, you may need to use an app-specific password to allow the server to access your email account.