You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+96-28Lines changed: 96 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@
4
4
5
5
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.
6
6
7
+
As an example, you could use this to run local scripts, chat with Claude, or process data and send the results to yourself or your team.
Currently, you must build the project locally to use this MCP server. Once you have the project built, you can point either in [Cursor](#cursor) or [Claude Desktop](#claude-desktop) to the MCP server script.
26
30
27
-
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.
28
-
2. Clone this project locally. Edit index.ts and replace me@yoko.dev to your own email to send emails from
29
-
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!
31
+
Once you configure the MCP server, you can use it in any Cursor or Claude Desktop chat.
30
32
31
-
Then go to Cursor Settings -> MCP -> Add new MCP server
You can get Resend API key here: https://resend.com/
41
+
```
42
+
npm install
43
+
npm run build
44
+
```
45
+
3. Setup Resend
38
46
39
-
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
47
+
Create a free Resend account and [Create an API Key](https://resend.com/api-keys). To send to other addresses, you'll also need to [verify your own domain](https://resend.com/domains).
40
48
41
-
<imgwidth="441"alt="Screenshot 2025-02-25 at 9 13 05 AM"src="https://github.com/user-attachments/assets/b07e9cbf-42d8-4910-8e90-3761d8d3bc06" />
49
+
> [!NOTE]
50
+
> For more info on how to send emails with Resend, see the [docs](https://resend.com/docs/send-with-nodejs).
42
51
43
-
**Claude desktop**
52
+
## Cursor
44
53
45
-
Same set up as above, and then add the following MCP config
54
+
1. Open Cursor Settings.
46
55
47
-
```
56
+
Open the command palette (`cmd`+`shift`+`p` on macOS or `ctrl`+`shift`+`p` on Windows) and choose "Cursor Settings".
57
+
58
+
2. Add the MCP server
59
+
60
+
Select "MCP" from the left sidebar and click "Add new global MCP server".
0 commit comments