MCPSERV.CLUB
Shy2593666979

MCP Email Server

MCP Server

Send and search emails with attachments via LLMs

Stale(55)
58stars
1views
Updated 16 days ago

About

A Model Context Protocol server that lets language models compose, send, and search emails with attachments. It supports SMTP, multiple recipients, and pattern‑based file searches in specified directories.

Capabilities

Resources
Access data sources
Tools
Execute functions
Prompts
Pre-built templates
Sampling
AI model interactions

MCP Email Server Demo

The MCP Email Server bridges the gap between conversational AI assistants and real‑world email workflows. By exposing a simple, well‑defined set of tools— and —the server allows language models to compose, send, and retrieve email content without leaving the context of a single interaction. This eliminates the need for developers to write custom SMTP integrations or manage attachment handling manually, thereby accelerating the development of AI‑powered communication solutions.

At its core, the server provides a secure SMTP interface that supports multiple popular domains such as Gmail, Outlook, and Yahoo. The configuration file maps each domain to its corresponding SMTP server and port, enabling the assistant to send messages through the appropriate provider automatically. The tool accepts a list of recipients, subject line, body text, and optional attachments. The server validates attachment file types against a curated whitelist (including common office documents, archives, text files, and images) to mitigate security risks while still offering flexibility for typical business use cases.

The complementary tool empowers the assistant to locate files on a local or networked file system using pattern matching. This is particularly useful for scenarios where an email must reference a specific report, log file, or image that resides in a shared directory. By passing a simple pattern string, the assistant can retrieve file names that match the criteria and include them as attachments in subsequent emails. This reduces manual lookup effort and ensures consistency across communications.

For developers, the MCP Email Server integrates seamlessly into existing AI workflows. A model can invoke after generating a draft, automatically populating the subject and body from the conversation. If an attachment is needed, the model can first call to discover relevant files and then attach them in a single, coherent request. The server’s lightweight API means it can be deployed locally or on cloud infrastructure with minimal overhead, and its environment variables ( and ) provide a secure way to store credentials.

Unique advantages of this server include its domain‑aware SMTP routing, strict attachment type enforcement for security, and the ability to search local directories—features that are rarely bundled together in off‑the‑shelf email APIs. By exposing these capabilities through MCP, developers can focus on crafting natural language interactions while delegating the intricacies of email transmission and file handling to a reliable, well‑tested backend.