Java-MCP-Server-For-SMTP-Mailing
by RayenMalouche·★ 2·Score 32
Java-based MCP server providing SMTP email sending capabilities via multiple transport protocols.
Overview
A comprehensive Java implementation of MCP server that bridges AI assistants with email services through SMTP integration. It supports multiple transport protocols (STDIO, SSE, and Streamable HTTP) and exposes email functionality through both MCP tools and REST endpoints. The server is well-structured with clear separation of concerns between MCP protocol handling, email service implementation, and transport layers.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this server if you're building Java-based AI applications that need email capabilities and require integration with Claude Desktop or other MCP clients.
When NOT to choose this
Don't choose this if you need HTML email formatting, attachment support, or a non-Java implementation; these features are either missing or planned but not yet implemented.
Tools this server exposes
1 tool extracted from the READMEsend-emailSends an email through SMTP with configurable recipients, subject, and body
Comparable tools
Installation
Installation
- Clone the repository
git clone https://github.com/RayenMalouche/Java-MCP-Server-For-SMTP-Mailing.git
cd Java-MCP-Server-For-SMTP-Mailing- Configure email settings in
Application.java
private static final String SMTP_USERNAME = "your-email@gmail.com";
private static final String SMTP_PASSWORD = "your-app-password";
private static final String SMTP_HOST = "smtp.gmail.com";
private static final int SMTP_PORT = 587;
private static final boolean SMTP_TLS_ENABLED = true;- Build the project
mvn clean package- Run with STDIO transport for Claude Desktop
java -jar target/RayenMalouche-0.0.1-SNAPSHOT.jar --stdioClaude Desktop Configuration
Add to your config.json:
{
"mcpServers": {
"smtp-email-server": {
"command": "<JAVA_EXECUTABLE_PATH>",
"args": [
"-jar",
"<FULL_PATH_TO_PROJECT>/target/RayenMalouche-0.0.1-SNAPSHOT.jar",
"--stdio"
],
"env": {
"JAVA_HOME": "<JAVA_HOME_PATH>"
}
}
}
}FAQ
- Which SMTP providers are supported?
- The server supports Gmail, Microsoft Outlook/Hotmail, Yahoo Mail, and any custom SMTP server with configurable host, port, and security settings.
- Can I send attachments with emails?
- Attachment support is listed as planned in the README. Currently, the server supports basic email sending with HTML and plain text content, but attachments are not implemented yet.
Compare Java-MCP-Server-For-SMTP-Mailing with
Last updated · Auto-generated from public README + GitHub signals.