SM

shy2593666979/mcp-server-email

Productivity workflow

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

81 stars 19 forks Качество 64 Тренд 14MIT

shy2593666979/mcp-сервер-электронная почта - кандидат на сервер MCP, импортированный из https://github.com/shy2593666979/mcp-server-email.

Обзор

shy2593666979/mcp-сервер-электронная почта - кандидат на сервер MCP, импортированный из https://github.com/shy2593666979/mcp-server-email.

Обзор (машинный перевод)

Сервер протокола Model Context, который обеспечивает функциональность электронной почты. Этот сервер позволяет LLM создавать и отправлять электронные письма, а также искать вложения в определенных каталогах.

Особенности

Отправлять электронные письма с несколькими получателями

  • Поддержка вложений электронной почты
  • Поиск файлов в каталогах на основе сопоставления шаблонов Безопасная передача электронной почты с использованием SMTP

Доступные инструменты

send_email - Отправляет электронные письма на основе предоставленного субъекта, тела и получателя.

  • [[Т1]] (массив струн, требуется): Список адресов электронной почты получателей
  • [[Т2]] (струна, требуется): Основное содержание электронной почты
  • [[Т3]] (струна, требуется): Тематическая линия электронной почты
  • attachments (массив строк или строк, необязательно): вложения электронной почты (имена файлов)

search_attachments - Поиск файлов в указанном каталоге, который соответствует заданному шаблону.

  • [[Т6]] (струна, требуется): шаблон текста для поиска в именах файлов

###Быстрые предложения

end email Отправить электронное письмо с дополнительными вложениями

  • Аргументы:
  • [[Т7]] (обязательно): Список адресов электронной почты получателей [8] (обязательно): Основное содержание электронной почты [9] (обязательно): Тематическая линия электронной почты

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

MCP Email Server

A Model Context Protocol server that provides email functionality. This server enables LLMs to compose and send emails, as well as search for attachments within specified directories.

Features

  • Send emails with multiple recipients
  • Support for email attachments
  • Search for files in directories based on pattern matching
  • Secure email transmission using SMTP

Available Tools

  • send_email - Sends emails based on the provided subject, body, and receiver.

    • receiver (array of strings, required): List of recipient email addresses
    • body (string, required): The main content of the email
    • subject (string, required): The subject line of the email
    • attachments (array of strings or string, optional): Email attachments (filenames)
  • search_attachments - Searches for files in a specified directory that match a given pattern.

    • pattern (string, required): The text pattern to search for in file names

Prompts

  • send_email

    • Send an email with optional attachments
    • Arguments:
      • receiver (required): The list of recipient email addresses
      • body (required): The main content of the email
      • subject (required): The subject line of the email
      • attachments (optional): Email attachments
  • search_attachments

    • Search for files matching a pattern
    • Arguments:
      • pattern (required): The text pattern to search for in file names

Installation

Using pip

Install the required dependencies:

pip install pydantic python-dotenv

Email Configuration

An email.json file with SMTP server configurations:

[
  {
    "domain": "@gmail.com",
    "server": "smtp.gmail.com", 
    "port": 587
  },
  {
    "domain": "@outlook.com",
    "server": "smtp.office365.com",
    "port": 587
  },
  {
    "domain": "@yahoo.com",
    "server": "smtp.mail.yahoo.com",
    "port": 587
  }
]

Usage

Running the Server

Start the MCP Email Server with:

python -m mcp_email_server (--dir /path/to/attachment/directory)

Configure for Claude.app

Add to your Claude settings:

Conda

{
  "mcpServers": {
    "email": {
      "command": "D:\\conda\\envs\\mcp\\python.exe",
      "args": [
        "C:\\Users\\YourUserName\\Desktop\\servers\\src\\email\\src\\mcp_server_email",
        "--dir",
        "C:\\Users\\YourUserName\\Desktop"
      ],
      "env": {
        "SENDER": "[email protected]",
        "PASSWORD": "tuogk......."
      }
    }
  }
}

UV

{
  "mcpServers": {
    "email": {
      "command": "uv",
      "args": [
        "~\\servers\\src\\email\\src\\mcp_server_email",
        "--dir",
        "C:\\Users\\YourUserName\\Desktop"
      ],
      "env": {
        "SENDER": "[email protected]",
Открыть полный README на GitHub

Установка

This server does not publish a one-line install command.

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "email": { "command": "D:\\conda\\envs\\mcp\\python.exe", "args": [ "C:\\Users\\YourUserName\\Desktop\\servers\\src\\email\\src\\mcp_server_email", "--dir", "C:\\Users\\YourUserName\\Desktop" ], "env": { "SENDER": "[email protected]", "PASSWORD": "tuogk......." } } } }