MCPSERV.CLUB
MrHZ006

Email Service MCP

MCP Server

Send emails via QQ SMTP with Spring AI integration

Active(71)
0stars
1views
Updated 18 days ago

About

A Spring Boot based MCP server that exposes a sendEmail tool function using QQ SMTP, enabling seamless email sending from MCP-enabled clients such as IDEs or agents.

Capabilities

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

Email Service MCP in Action

The Email‑Service MCP server offers a lightweight, Spring Boot‑based solution for sending email through QQ’s SMTP service. By exposing a single tool function——it removes the need for developers to write custom SMTP integration code each time an AI assistant needs to dispatch notifications, alerts, or user communications. This is especially valuable in environments where an AI assistant is used to orchestrate workflows, automate support tickets, or generate transactional messages on demand.

Built on Java 21 and Spring Boot 3.5.x, the server leverages Spring AI’s MCP Server starter to expose its capabilities over both stdio and SSE transport layers. The stdio mode is ideal for lightweight, one‑off invocations from IDEs or command‑line agents that launch the server on demand. The SSE mode, meanwhile, allows continuous streaming of responses to clients that support Server‑Sent Events, enabling richer interactions such as real‑time delivery status updates. The dual configuration files ( and ) give developers fine‑grained control over runtime behavior without modifying the core code.

Key features include secure credential handling via environment variables or local, git‑ignored configuration files; automatic injection of the QQ SMTP username and authorization code; and a straightforward API surface that requires only three parameters. Because the server is exposed as an MCP tool, any client that understands the Model Context Protocol—such as Claude in IDE mode or custom agents built with Spring AI—can invoke directly, passing parameters as JSON and receiving a confirmation or error message in the same protocol stream. This eliminates the need for custom HTTP clients, authentication flows, or manual error handling.

Real‑world use cases abound: a customer support chatbot can send follow‑up emails after closing a ticket; an automated marketing assistant can dispatch personalized newsletters; or a DevOps agent can alert on‑call engineers via email when a pipeline fails. In each scenario, the MCP server acts as a bridge between the AI’s decision logic and the underlying email infrastructure, ensuring that messages are sent reliably while keeping sensitive credentials out of source control.

What sets this MCP server apart is its tight integration with Spring AI’s tooling ecosystem and its emphasis on secure, environment‑driven configuration. Developers who already use Spring Boot for other services can drop this module into their microservice landscape, share it across teams, and expose a single, well‑documented tool to any MCP‑compatible client. The result is a fast, secure, and developer‑friendly way to add email capability to AI workflows without reinventing the wheel.