https://github.com/resend/mcp-send-email
Send emails directly from Cursor with this email sending MCP server
https://github.com/resend/mcp-send-email
Last synced: 3 months ago
JSON representation
Send emails directly from Cursor with this email sending MCP server
- Host: GitHub
- URL: https://github.com/resend/mcp-send-email
- Owner: resend
- Created: 2025-02-24T07:36:06.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-03-09T17:49:11.000Z (3 months ago)
- Last Synced: 2025-03-19T14:54:59.339Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 37.1 KB
- Stars: 249
- Watchers: 4
- Forks: 18
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- mcp-index - Email sending server - Send emails directly from LLM applications using Resend's API, facilitating the composition and dispatch of both plain text and HTML emails. Supports scheduling emails, adding CC/BCC recipients, and configuring reply-to addresses. (Email and Messaging)
README
# Email sending MCP 💌
[](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.
Built with:
- [Resend](https://resend.com/)
- [Anthropic MCP](https://docs.anthropic.com/en/docs/agents-and-tools/mcp)
- [Cursor](https://cursor.so/)## Features
- Send plain text and HTML emails
- Schedule emails for future delivery
- Add CC and BCC recipients
- Configure reply-to addresses
- Customizable sender email (requires verification)**DEMO**
https://github.com/user-attachments/assets/8c05cbf0-1664-4b3b-afb1-663b46af3464
**Cursor**
1. First, you need to authorize Resend to send emails from your domain or email. Follow the steps [here](https://resend.com/docs/send-with-nodejs) to set that up and get a Resend API key.
2. Clone this project locally. Edit index.ts and replace [email protected] to your own email to send emails from
3. Run `npm install`, `npm run build` under the project dir. You should now see a /build/index.js generated - this is the MCP server script!Then go to Cursor Settings -> MCP -> Add new MCP server
- Name = [choose your own name]
- Type = command
- Command: `node ABSOLUTE_PATH_TO_MCP_SERVER/build/index.js --key=YOUR_RESEND_API_KEY --sender=OPTIONAL_SENDER_EMAIL_ADDRESS --reply-to=OPTIONAL_REPLY_TO_EMAIL_ADDRESS_ONE --reply-to=OPTIONAL_REPLY_TO_EMAIL_ADDRESS_TWO`You can get Resend API key here: https://resend.com/
Now you can test out sending emails by going to email.md, replace the to: email address, select all in email md, and hit cmd+l. You can now tell cursor to "send this as an email" in the chat. Make sure Cursor chat is in Agent mode by selecting "Agent" on lower left side dropdown
**Claude desktop**
Same set up as above, and then add the following MCP config
```
{
"mcpServers": {
"resend": {
"command": "node",
"args": ["ABSOLUTE_PATH_TO_MCP_SERVER/build/index.js"],
"env": {
"RESEND_API_KEY": [YOUR_API_KEY],
"SENDER_EMAIL_ADDRESS": [OPTIONAL_SENDER_EMAIL_ADDRESS],
"REPLY_TO_EMAIL_ADDRESSES": [OPTIONAL_REPLY_TO_EMAIL_ADDRESSES_COMMA_DELIMITED]
}
}
}
}
```**Develop**
`npm install`
`npm run build`