MCP Catalogs
Home

Java-MCP-Server-For-SMTP-Mailing

by RayenMalouche·2·Score 32

Java-based MCP server providing SMTP email sending capabilities via multiple transport protocols.

communicationdeveloper-toolsproductivity
1
Forks
0
Open issues
9 mo ago
Last commit
2d ago
Indexed

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:

you:AI assistants sending automated notifications and alerts via email
you:Workflows integrating email capabilities into automation systems
you:Testing email functionality in development environments
you:Which SMTP providers are supported?
you:Can I send attachments with emails?

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 README
  • send-email

    Sends an email through SMTP with configurable recipients, subject, and body

Comparable tools

node-mcp-smtp-serverpython-email-mcp-servermailgun-mcp-server

Installation

Installation

  1. Clone the repository
git clone https://github.com/RayenMalouche/Java-MCP-Server-For-SMTP-Mailing.git
cd Java-MCP-Server-For-SMTP-Mailing
  1. 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;
  1. Build the project
mvn clean package
  1. Run with STDIO transport for Claude Desktop
java -jar target/RayenMalouche-0.0.1-SNAPSHOT.jar --stdio

Claude 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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.