About Send Email
Send Email is an MCP server published by sunil-sandhu in the Communication category: send emails from natural language prompts.
The repository has 1 stars and 0 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.
Install
docker run -i --rm mcp/resendThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Ask AI
Ask AI about Send Email
Powered by Claude · Grounded in docs
Security checks
Static checks derived from the repository 20 hours ago. Heuristics on the source, not an audit.
- ✓README presentThe repository ships documentation.
- !License declaredNo license file. Legally you have no right to use it in a product.
- !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
README
MCP Send Email Service (from Notify.cx)
This is a Model Context Protocol (MCP) service that provides email sending capabilities through a server-side event (SSE) based API. The service is built using TypeScript, Express.js, the MCP SDK, and the Notify.cx API.
Project Overview
The project is a microservice that:
- Implements the Model Context Protocol (MCP) for email sending functionality
- Uses Server-Sent Events (SSE) for real-time communication
- Provides a simple email sending API endpoint
Technical Stack
- Runtime: Node.js with TypeScript
- Main Dependencies:
@modelcontextprotocol/sdk: ^1.8.0 (MCP SDK for server implementation)express: ^5.0.1 (Web server framework)dotenv: ^16.4.7 (Environment variable management)zod: ^3.24.2 (Schema validation)
- Development Dependencies:
- TypeScript and related type definitions
- ts-node for TypeScript execution
Setup Instructions
- Create a MCP server configuration file (e.g.,
mcp.json).
To get MCPs to work with IDEs such as Cursor, they need an MCP server configuration file.
The MCP server configuration file is a JSON file that describes the MCP server and the tools it supports.
To add the MCP server config in Cursor, go to Cursor > Settings > MCP Servers and add the following:
{
"mcpServers": {
"email-sending-service": {
"name": "email-sending-service",
"version": "1.0.0",
"url": "http://localhost:8080/sse",
"env": {
"NOTIFY_API_KEY": "<your-notify-api-key>"
},
"tools": [
{
"name": "send-email",
"description": "Send an email using Notify",
"url": "http://localhost:8080/send-email",
"params": {
"to": "string",
"subject": "string",
"message": "string"
}
}
]
}
}
}
- Create a free Notify.cx account and get an API key.
- Clone the repository
- Install dependencies:
npm install - Create a
.envfile with the following variables:NOTIFY_API_KEY=your_api_key_here - Start the server:
npm start
The server will start on port 8080.
API Endpoints
The service exposes two main endpoints:
-
/sse(GET)- Establishes an SSE connection for real-time communication
- Used by the MCP protocol for bidirectional communication
-
/send-email(POST)- Handles email sending requests
- Requires a
sessionIdquery parameter - Request body should contain email details (to, subject, message)
Email Sending Configuration
The service sends emails through a notify service endpoint (https://notify.cx/api/send-email) with the following parameters:
- From: sent-with@mcp.notify.cx
- To: (specified in request)
- Subject: (specified in request)
- Message: (specified in request)
MCP Tool Configuration
The service registers a single MCP tool named "send-email" with the following parameters:
to: Email address (string)subject: Email subject line (string)message: Plain text email content (string)
Error Handling
The service includes comprehensive error handling for:
- Invalid email requests
- Failed email sending attempts
- Missing or invalid session IDs
- Network errors
Environment Variables
Required environment variables:
NOTIFY_API_KEY: API key for the notification service
Development
To run the project in development mode:
npm start
The service uses ts-node to run TypeScript files directly.
Project Structure
index.ts: Main server file containing MCP and Express setupsend-email.ts: Email sending implementationpackage.json: Project dependencies and scripts.env: Environment variables (not committed to version control)tsconfig.json: TypeScript configuration
This project is a specialized email sending service that implements the Model Context Protocol, making it suitable for integration with AI models or other services that need email sending capabilities.
README fetched from the repository 20 hours ago. The original is authoritative.