mcp-email-docker
2
The mcp-email-docker project is an email notification service leveraging the Model Context Protocol, supporting both SSE and Streamable HTTP communication. It can be deployed with Docker and is intended for both practical use and as a learning tool for MCP servers.
mcp-email-docker
A Model Context Protocol (MCP)-based email notification service that communicates with clients using Streamable HTTP and Server-Sent Events (SSE), and sends notification emails through SMTP services. Supports deployment with Docker.
Features
- Integration with MCP Client for sending emails and notifications.
- Compatibility with both legacy SSE and new Streamable HTTP protocols.
- One-click Docker deployment for remote or local usage.
Quick Start
- Install dependencies
- Set up environment variables in a
.env
file. - Start local development server.
Docker Deployment
- Build the Docker image.
- Run the container using provided scripts or a
.env
file.
API Endpoints
GET /sse
: For real-time message pushing via SSE.POST /messages?sessionId=xxx
: Send messages, requiressessionId
.POST /mcp
: Connect to the MCP server using Streamable HTTP.
Dependencies
- @modelcontextprotocol/sdk
- nodemailer
- zod
- dotenv
- express
License
MIT