What prerequisites are needed to run the server?
Java 21 or higher, Maven 3.6+, a Gmail account with an app‑specific password (or other SMTP credentials), and an MCP client for testing (e.g., Claude Desktop or MCP Inspector).
@RayenMalouche
Basic information
A Model Context Protocol (MCP) server (using java sdk 0.11.0) that provides email sending capabilities through SMTP integration. This server acts as a bridge between MCP-compatible AI assistants (like Claude Desktop) and email services.
Add this server to your MCP-compatible client using the configuration below.
{
"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>"
}
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
An MCP server that provides email sending capabilities via SMTP integration, supporting STDIO, SSE, and Streamable HTTP transports. It exposes a send-email tool and REST endpoints, designed for integrating email into AI applications, automation workflows, and testing environments.
Clone the repository, configure SMTP credentials (e.g., Gmail app password) in Application.java, build with mvn clean package, then run with --stdio, --sse, or --streamable-http flags. For Claude Desktop, add the server configuration to the client’s config.json. Test via MCP Inspector, REST API (POST /api/test-email, GET /api/health), or direct MCP client calls.
send-email with parameters to, subject, body, cc, bccJava 21 or higher, Maven 3.6+, a Gmail account with an app‑specific password (or other SMTP credentials), and an MCP client for testing (e.g., Claude Desktop or MCP Inspector).
Enable 2‑factor authentication on your Gmail account, go to **Google Account settings** > **Security** > **App passwords**, generate a new password, and use it as the `SMTP_PASSWORD` value in the configuration.
Yes. Change the `SMTP_HOST`, `SMTP_PORT`, and TLS/SSL flags in `Application.java`. The README includes examples for Microsoft Outlook, Yahoo Mail, and custom SMTP servers.
STDIO (for Claude Desktop and direct integration), Server‑Sent Events (SSE, for web applications), and Streamable HTTP (for testing and REST clients).
Use the REST endpoints. Start the server with `--streamable-http`, then send a POST request to `http://localhost:45450/api/test-email` with a JSON body containing `to`, `subject`, and `body`. A health check is available at `GET /api/health`.

Agent-Native Terminal

Automated codebase documentation for GitHub: searchable docs, MCP context for AI agents, doc drift detection, and Friday Cleanup PRs.
Console, Backend and CLI to manage Capgo Instant update and Native build for Capacitor apps Build and upload to app store your mobile app

Local-first credential broker for MCP. AI coding agents (Claude Code, Cursor, Codex…) call APIs, SSH and databases through scoped presets; secrets stay in your OS keychain and never enter the agent's context.

SSH MCP server for AI agents: remote commands, file transfer, log search and server audits through OpenSSH.
Comments