Skip to main content
Glama

Email-MCP 服务

GitHub Stars AUR

这是一个基于 MCP 协议的邮件发送服务,它允许 AI 助手通过标准化接口自动发送电子邮件。

概述

虽然目前只测试了接入 Spring-AI 的 Java 服务,但本服务理论上适用于所有支持 MCP 协议的 AI 助手和客户端。

注意:目前仅支持本地运行环境

Related MCP server: Email MCP Server

安装步骤

  1. 克隆本仓库

    git clone [仓库地址]
    cd email-mcp
  2. 安装依赖

    npm install
  3. 构建项目

    npm run build

配置与运行

克隆仓库本地运行,请使用如下配置:

{
  "mcpServers": {
    "email-mcp": {
      "command": "node",
      "args": [
        "yourpath\\email-mcp\\build\\server.js",
        "--verbose"
      ],
      "env": {}
    }
  }
}

注意:请将 yourpath 替换为您实际的项目路径

使用指南

发送邮件

与 AI 助手交互时,只需提供以下必填参数即可发送邮件:

  • SMTP服务器主机名(如:smtp.exmail.qq.com)

  • 端口号(如:465)

  • 发件邮箱(如:xxx@xx.com)

  • 发件密码(如:*****)

  • 收件人(如:xxx@qq.com)

  • 邮件主题

  • 邮件正文

示例:

SMTP服务器主机名是smtp.exmail.qq.com,端口是465,发件邮箱是xxx@xx.com,发件密码是*****,收件人是xxx@qq.com,正文是你好,好久不见,主题是测试

开发与贡献

有问题欢迎提 issue,大家共同进步!

许可证

本项目采用 Apache 许可证。详情请参阅 LICENSE 文件。

Available Tools

1 tool
mcp_email_sendD

发送邮件

Inputs: host (required), port (required), subject (required), to (required), +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.2/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools. The single tool has a clear and distinct purpose of sending emails.

    Naming Consistency5/5

    The naming is trivially consistent as there is only one tool. The tool name 'mcp_email_send' follows a clear pattern with a prefix, resource, and verb, though consistency cannot be assessed across multiple tools.

    Tool Count2/5

    A single tool for an email server is too few for the apparent scope. Email management typically requires operations like reading, listing, deleting, or searching emails, making this set feel incomplete and thin.

    Completeness1/5

    The tool set is severely incomplete for an email domain. It only provides a send function, lacking essential operations such as receiving, reading, listing, or managing emails, which will cause significant agent failures in handling email-related tasks.

    Maintenance

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      An MCP server enabling AI assistants to manage Gmail through natural language, including sending, reading, searching, labeling, and handling attachments with auto authentication.
      1
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      An MCP server providing comprehensive email capabilities via IMAP and SMTP, enabling AI assistants to read, search, send, manage, schedule, and analyze emails across multiple accounts.
      52
      1,067 npm
      166
      LGPL 3.0
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that enables AI assistants to send emails via SMTP, supporting simple and custom emails with attachments and CC/BCC, plus connection testing.
      3
      28
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A production-ready MCP server that empowers AI agents to securely send emails via SMTP, supporting plain text, HTML, and attachments.
      MIT