Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 50 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![smithery badge](https://smithery.ai/badge/@ykhli/mcp-send-email)](https://smithery.ai/server/@ykhli/mcp-send-email)

This is a simple MCP server that sends emails using Resend's API. Why? Now you can let Cursor or Claude Desktop compose emails for you and send it right away without having to copy and paste the email content.
This is a simple MCP server that sends emails using Resend's API. Why? Now you can let VS Code, Cursor or Claude Desktop compose emails for you and send it right away without having to copy and paste the email content.

Built with:

Expand Down Expand Up @@ -40,6 +40,54 @@ Now you can test out sending emails by going to email.md, replace the to: email

<img width="441" alt="Screenshot 2025-02-25 at 9 13 05 AM" src="https://github.com/user-attachments/assets/b07e9cbf-42d8-4910-8e90-3761d8d3bc06" />

**VS Code**
Same set up as above, and then add the following MCP config.

For one-click installation, click one of the install buttons below:

[![Install with Node in VS Code](https://img.shields.io/badge/VS_Code-Node-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=resend-email&config=%7B%22command%22%3A%22node%22%2C%22args%22%3A%5B%22build%2Findex.js%22%5D%2C%22env%22%3A%7B%22RESEND_API_KEY%22%3A%22%24%7Binput%3AresendApiKey%7D%22%2C%22SENDER_EMAIL_ADDRESS%22%3A%22%24%7Binput%3AsenderEmail%7D%22%2C%22REPLY_TO_EMAIL_ADDRESSES%22%3A%22%24%7Binput%3AreplyToEmails%7D%22%7D%7D&inputs=%5B%7B%22type%22%3A%22promptString%22%2C%22id%22%3A%22resendApiKey%22%2C%22description%22%3A%22Resend+API+Key%22%2C%22password%22%3Atrue%7D%2C%7B%22type%22%3A%22promptString%22%2C%22id%22%3A%22senderEmail%22%2C%22description%22%3A%22Sender+Email+Address%22%7D%2C%7B%22type%22%3A%22promptString%22%2C%22id%22%3A%22replyToEmails%22%2C%22description%22%3A%22Reply-To+Email+Addresses+%28comma+separated%29%22%7D%5D) [![Install with Node in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Node-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=resend-email&config=%7B%22command%22%3A%22node%22%2C%22args%22%3A%5B%22build%2Findex.js%22%5D%2C%22env%22%3A%7B%22RESEND_API_KEY%22%3A%22%24%7Binput%3AresendApiKey%7D%22%2C%22SENDER_EMAIL_ADDRESS%22%3A%22%24%7Binput%3AsenderEmail%7D%22%2C%22REPLY_TO_EMAIL_ADDRESSES%22%3A%22%24%7Binput%3AreplyToEmails%7D%22%7D%7D&inputs=%5B%7B%22type%22%3A%22promptString%22%2C%22id%22%3A%22resendApiKey%22%2C%22description%22%3A%22Resend+API+Key%22%2C%22password%22%3Atrue%7D%2C%7B%22type%22%3A%22promptString%22%2C%22id%22%3A%22senderEmail%22%2C%22description%22%3A%22Sender+Email+Address%22%7D%2C%7B%22type%22%3A%22promptString%22%2C%22id%22%3A%22replyToEmails%22%2C%22description%22%3A%22Reply-To+Email+Addresses+%28comma+separated%29%22%7D%5D&quality=insiders)

### Manual Installation
Add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing `Ctrl + Shift + P` and typing `Preferences: Open User Settings (JSON)`.

```json
{
"mcp": {
"inputs": [
{
"type": "promptString",
"id": "resendApiKey",
"description": "Resend API Key",
"password": true
},
{
"type": "promptString",
"id": "senderEmail",
"description": "Sender Email Address"
},
{
"type": "promptString",
"id": "replyToEmails",
"description": "Reply-To Email Addresses (comma separated)"
}
],
"servers": {
"resend-email": {
"command": "node",
"args": ["build/index.js"],
"env": {
"RESEND_API_KEY": "${input:resendApiKey}",
"SENDER_EMAIL_ADDRESS": "${input:senderEmail}",
"REPLY_TO_EMAIL_ADDRESSES": "${input:replyToEmails}"
}
}
}
}
}
```

Optionally, you can add it to a file called `.vscode/mcp.json` in your workspace. Note when you do this you will no longer need the `"mcp":{}` key in this json file.

**Claude desktop**

Same set up as above, and then add the following MCP config
Expand All @@ -60,6 +108,7 @@ Same set up as above, and then add the following MCP config
}
```


**Develop**

`npm install`
Expand Down