# Send emails with Devin and Resend

[Devin](https://devin.ai) is an autonomous AI software engineer that can connect to external services through MCP (Model Context Protocol) servers. Adding Resend's MCP server gives Devin native access to send emails, manage contacts and broadcasts, verify domains, and more.

For the full list of capabilities, see the [MCP Server overview](/guides/resources-mcp-server).

## Prerequisites

Before you start, make sure you have:

- A Devin account with access to the Settings menu
- A Resend [API key](/guides/get-started-create-an-api-key)
- A [verified domain](/guides/get-started-add-a-domain)

## Guide

:::::steps
:::step{title="Open Devin Settings"}
In Devin, open the **Settings** menu from your account dropdown.
:::

:::step{title="Go to Connections > MCP Servers"}
In the Settings sidebar, click **Connections**, then select the **MCP Servers** tab. Click **Add a custom MCP**.

![Selecting MCP Servers under Connections in Devin](../img/site-assets/mintcdn.com/resend/YZqtGqf82akku4IQ/images/devin-connections-mcp-1rpbs6f.png)
:::

:::step{title="Add the Resend MCP configuration"}
Click **Import JSON** and paste the following configuration into the modal.

```json theme={"theme":{"light":"github-light","dark":"vesper"}}
{
  "mcpServers": {
    "resend": {
      "command": "npx",
      "args": ["-y", "resend-mcp"],
      "env": {
        "RESEND_API_KEY": "re_xxxxxxxxx",
        "SENDER_EMAIL_ADDRESS": "onboarding@resend.dev"
      }
    }
  }
}
```

![Pasting the Resend MCP configuration in Devin](../img/site-assets/mintcdn.com/resend/YZqtGqf82akku4IQ/images/devin-mcp-config-1bz185o.png)
:::

:::step{title="Update the Environment Variables"}
Scroll down and update the environment variables:

- `RESEND_API_KEY`: delete this and add it as a secret (see the next step).
- `SENDER_EMAIL_ADDRESS`: update this with your sender email address you've verified in the [Resend Dashboard](https://resend.com/domains).

  ```
  ![Update the environment variables](../img/site-assets/mintcdn.com/resend/YZqtGqf82akku4IQ/images/devin-update-env-1gehlst.png)
  ```
:::

::::step{title="Add the Resend API key as a secret"}
Add the `RESEND_API_KEY` as a secret. Click **Save secret** to confirm.

![Adding the Resend API key as a Devin secret](../img/site-assets/mintcdn.com/resend/YZqtGqf82akku4IQ/images/devin-add-secret-pkc836.png)

:::callout{intent="info"}
You can create a new API key in the [Resend
Dashboard](https://resend.com/api-keys).
:::
::::

:::step{title="Confirm and enable the MCP server"}
Add a description, click **Install and Enable**, and confirm in the dialog. Devin will install the server and mark it as connected.

![Confirming the Resend MCP server in Devin](../img/site-assets/mintcdn.com/resend/YZqtGqf82akku4IQ/images/devin-confirm-mcp-1xttfhv.png)
:::

:::step{title="Test the connection"}
Ask Devin to send a test email. For example:

```text theme={"theme":{"light":"github-light","dark":"vesper"}}
Send a test email to delivered@resend.dev using the Resend MCP server. Subject: "Hello from Devin".
```

Devin will call the Resend MCP server and confirm the send.
:::
:::::

## Related pages

- [Account Management](./account-management-index.md)
- [API Keys](./api-keys-2-index.md)
- [API Keys](./api-keys-index.md)
- [API Reference](./api-reference-index.md)
- [AudiencesDEPRECATED](./audiencesdeprecated-index.md)
- [Authorized Apps](./authorized-apps-index.md)
- [Automations](./automations-index.md)
- [Broadcasts](./broadcasts-index.md)
- [Build with AI](./build-with-ai-index.md)
- [Changelog](../changelog.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
