Sponsored by Deepsite.site

Emailservice

Created By
MrHZ0062 months ago
An email MCP(Server) service based on Spring Boot, used for sending emails via QQ SMTP and exposing utility functions in the form of Spring AI MCP Server It is convenient to call in clients that support MCP (such as ides/Agents that support MCP, etc.).
Content

工具简介 这是一个基于Spring Boot开发的QQ邮箱服务工具,提供了便捷的邮件发送功能。通过简单的配置,您可以快速集成QQ邮箱的SMTP服务,实现自动化的邮件发送能力。 🚀 快速开始

  1. 下载项目 首先下载或克隆邮件服务项目到本地环境。

  2. 打包JAR文件 使用Maven或Gradle将项目打包成可执行的JAR文件:

Maven方式

mvn clean package

Gradle方式

gradle build

打包完成后,会在target目录下生成 Email-service-0.0.1-SNAPSHOT.jar 文件。 3. 放置JAR文件 将打包好的 Email-service-0.0.1-SNAPSHOT.jar 文件放置到源项目的根目录下。

  1. 配置QQ邮箱信息 获取SMTP授权码 登录QQ邮箱网页版

进入【设置】→【账户】

找到【POP3/IMAP/SMTP服务】 section

开启【POP3/SMTP服务】或【IMAP/SMTP服务】

根据提示获取16位SMTP授权码(注意:这不是QQ密码!)

修改启动配置 在您的MCP服务器配置中,更新以下两个关键参数: { "mcpServers": { "Email-service": { "command": "java", "args": [ "-Dspring.ai.mcp.server.stdio=true", "-Dspring.main.web-application-type=none", "-Dlogging.pattern.console=", "-jar", "Email-service-0.0.1-SNAPSHOT.jar", "--qq.username=你的QQ邮箱地址", "--qq.password=你的SMTP授权码" ], "env": {} } } } ⚙️ 配置说明 --qq.username: 填写完整的QQ邮箱地址(如:992382472@qq.com

--qq.password: 填写从QQ邮箱获取的SMTP授权码(16位字符串)

🔒 安全提醒 ⚠️ 重要安全注意事项:

切勿使用QQ登录密码:必须使用专门的SMTP授权码

保护授权码:授权码具有与密码同等的权限,请妥善保管

定期更换:建议定期更新SMTP授权码以增强安全性

环境隔离:生产环境建议使用环境变量或配置文件管理敏感信息

📋 验证配置 配置完成后,启动服务并检查:

服务是否正常启动

邮箱连接是否成功建立

测试邮件发送功能是否正常工作

🆘 常见问题 Q: 为什么连接失败? A: 请检查:

邮箱地址格式是否正确

SMTP授权码是否准确(注意区分大小写)

是否已开启SMTP服务

Q: 授权码在哪里获取? A: 必须通过QQ邮箱网页版的【设置】→【账户】→【POP3/IMAP/SMTP服务】中开启并获取。

如有其他问题,请参考项目文档或联系技术支持-992382472@qq.com

Server Config

{
  "mcpServers": {
    "Email-service": {
      "command": "java",
      "args": [
        "-Dspring.ai.mcp.server.stdio=true",
        "-Dspring.main.web-application-type=none",
        "-Dlogging.pattern.console=",
        "-jar",
        "Email-service-0.0.1-SNAPSHOT.jar",
        "--qq.username=Your email address",
        "--qq.password=Your email address credentials"
      ],
      "env": {}
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Serper MCP ServerA Serper MCP Server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
ChatWiseThe second fastest AI chatbot™
WindsurfThe new purpose-built IDE to harness magic
Playwright McpPlaywright MCP server
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
DeepChatYour AI Partner on Desktop
Tavily Mcp
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
CursorThe AI Code Editor
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Amap Maps高德地图官方 MCP Server