Resend Mcp
When to Use
Trigger phrases:
- "resend mcp"
- "Help me with resend mcp"
Use cases:
- When the task matches this skill's domain expertise
When NOT to use:
- For tasks outside this skill's scope
When NOT to Use
- When a simpler HTTP client would suffice
- For internal tools that do not need cross-platform compatibility
- When the tool is used by a single agent in a single context
Overview
Resend Mcp implements a Model Context Protocol server for Model Context Protocol.
Resend is a modern email API that provides reliable email delivery for transactional, marketing, and broadcast use cases. It handles domain verification (SPF, DKIM, DMARC), bounce and complaint processing, and delivery analytics out of the box. The Resend MCP server wraps this API into model-context-protocol tools, allowing AI agents to send and track emails as part of autonomous workflows.
The MCP server exposes a send-email tool with typed parameters for recipient, subject, body, and optional configuration (HTML content, attachments, CC/BCC, reply-to headers). Agents can integrate email delivery into their decision loops — sending verification codes, lead follow-ups, alert notifications, or report summaries without leaving the MCP conversation. The server also supports SSE transport for production deployments behind reverse proxies with TLS termination.
Architecture
- Server — MCP-compliant server exposing tools and resources
- Transport — stdio or HTTP transport layer
- Tools — Callable functions with JSON Schema definitions
- Resources — Readable data sources with URI-based access
Setup
- Install the MCP server package
- Configure environment variables and credentials
- Register the server in MCP client configuration
- Test tool invocations and resource access
Python installation
pip install resend-sdk mcp
Node.js installation
npm install resend @modelcontextprotocol/sdk
# or
pnpm add resend @modelcontextprotocol/sdk
Environment variables
export RESEND_API_KEY="re_xxxxxxxxxxxxx"
Add to your .env file for local development.
Configuration
- Server name and version
- Transport type (stdio, SSE, HTTP)
- Tool definitions with input/output schemas
- Resource URI patterns
- Authentication and rate limiting
Integration
- Compatible with Claude, Cursor, and other MCP clients
- Supports streaming responses for large payloads
- Handles errors with standard MCP error codes
Workflow
- Set up Resend account — Sign up at resend.com, verify your sending domain by adding the required DNS records (SPF, DKIM, DMARC). Generate an API key from the dashboard.
- Install MCP server dependencies — Add the Resend SDK and MCP server SDK to your project via pip (Python) or npm (Node.js). Configure environment variables for the API key.
- Define the email tool — Register an MCP tool with a
send-email action. Specify typed parameters: recipient, subject, body, and optional fields (CC, attachments, HTML content).
- Wire the Resend client — Instantiate the Resend client inside the tool handler, call
resend.emails.send() with the validated parameters, and return the result or error to the MCP client.
- Register and test with an MCP client — Add the server to your MCP client config (Claude Desktop, Cursor, etc.). Send a test email and verify delivery in the Resend logs.
- Handle delivery feedback — Configure Resend webhooks for bounce, complaint, and delivery events. Route these through MCP resources so your agent can query delivery status.
- Deploy to production — Run the MCP server with SSE transport behind a reverse proxy (nginx, Caddy) with TLS. Monitor uptime and email delivery health via dashboards.
Anti-Rationalization Table
| Rationalization |
Reality |
| "I will just use curl" |
MCP handles auth, retries, streaming, and type safety. Use the SDK. |
| "One mega-server is simpler" |
Single-responsibility servers are easier to debug and maintain. |
| "MCP is just a wrapper" |
MCP enables cross-platform tool sharing. It is infrastructure, not overhead. |
| "Resend is just for transactional email" |
Resend supports transactional, marketing, and broadcast emails. The MCP server abstracts all of them behind a unified tool interface. |
| "I should build my own email API" |
Resend handles deliverability, DKIM, bounce handling, and domain warmup. Building these in-house is weeks of work. |
| "MCP tools are only for text" |
MCP tools can integrate full email capabilities — attachments, HTML templates, CC/BCC, reply-to headers, and delivery webhooks. |
// Example: MCP server tool definition
import { McpServer } from "@modelcontextprotocol/sdk";
const server = new McpServer({ name: "my-tools", version: "1.0.0" });
server.tool("search", { query: z.string() }, async ({ query }) => {
const results = await search(query);
return { content: [{ type: "text", text: JSON.stringify(results) }] };
});
Code Examples
Python — Send email via Resend SDK
import os
from resend import Resend
resend = Resend(api_key=os.environ["RESEND_API_KEY"])
r = resend.emails.send({
"from": "onboarding@resend.dev", # Use your verified domain in production
"to": ["user@example.com"],
"subject": "Hello from Resend MCP",
"text": "This email was sent through the Resend API.",
})
print(f"Email sent: {r['id']}")
JavaScript/Node.js — Send email via Resend SDK
import { Resend } from 'resend';
const resend = new Resend(process.env.RESEND_API_KEY);
const { data, error } = await resend.emails.send({
from: 'onboarding@resend.dev',
to: ['user@example.com'],
subject: 'Hello from Resend MCP',
text: 'This email was sent through the Resend API.',
});
if (error) {
console.error('Send failed:', error);
} else {
console.log('Email sent:', data.id);
}
Registering a Resend MCP tool with email capability
import { McpServer } from "@modelcontextprotocol/sdk";
import { z } from "zod";
import { Resend } from "resend";
const resend = new Resend(process.env.RESEND_API_KEY);
const server = new McpServer({ name: "email-tools", version: "1.0.0" });
server.tool(
"send-email",
{
to: z.string().describe("Recipient email address"),
subject: z.string().describe("Email subject line"),
text: z.string().describe("Email body text"),
},
async ({ to, subject, text }) => {
const { data, error } = await resend.emails.send({
from: "noreply@yourdomain.com",
to: [to],
subject,
text,
});
if (error) return { content: [{ type: "text", text: `Error: ${error}` }] };
return { content: [{ type: "text", text: `Email sent: ${data.id}` }] };
}
);
Process
- Prepare — Gather requirements, verify prerequisites, set up environment
- Execute — Run resend mcp workflow with configured parameters
- Verify — Validate output meets requirements, document results
- Configure SDK — Set up Resend SDK with API key from dashboard, configure sender domain verification and DNS records.
- Define tool schema — Create or extend MCP tool definitions with typed input/output schemas using zod (TS) or pydantic (Python).
- Test send — Execute a test email send through the MCP tool to verify end-to-end: client → MCP server → Resend API → inbox delivery.
- Monitor & iterate — Check delivery logs in Resend dashboard, handle bounce/complaint webhooks, and update tool parameters as needed.
Verification
Common Issues & Troubleshooting
| Problem |
Solution |
| "Resend API key not recognized" |
Verify RESEND_API_KEY is set in environment and the key is active in the Resend dashboard. Keys start with re_. |
| "MCP tool returns empty response" |
Ensure the transport (stdio/SSE) is properly configured on both server and client sides. Check for port conflicts. |
| "Email delivery delayed or dropped" |
Confirm sender domain is verified in Resend. SPF, DKIM, and DMARC records must be configured for the sending domain. |
| "Rate limit exceeded (429)" |
Resend defaults to 5 req/s on free tier. Implement exponential backoff retry logic in your MCP tool handler. |
| "Connection refused on SSE transport" |
The MCP server process may not be running. Verify the process is alive and listening on the configured port. Use `ps aux |
| "TypeError in tool schema validation" |
Ensure all JSON Schema definitions in your tool parameters match the actual types sent. Use zod for TypeScript or pydantic for Python schema validation. |
Monetization
- Custom email MCP server for clients — Build and host a private Resend MCP server for businesses that need transactional email, marketing campaigns, and newsletter sending from their AI agents. Charge $50-200/mo per deployment.
- Email automation SaaS — Offer a ready-to-use Resend MCP integration as a service, combining it with templating and analytics. Tiered pricing ($29-99/mo) based on email volume.
- Consulting: domain deliverability setup — Help clients configure SPF, DKIM, DMARC, and warm up sending domains for reliable email delivery through Resend. One-time $500-1500 per domain.
- MCP server marketplace listing — Package the Resend MCP server as a plug-and-play tool on MCP marketplaces. Charge per download or offer premium features (HTML templates, attachment support, bulk send).
- White-label email API wrapper — White-label the Resend integration for agencies that need branded email infrastructure for their clients. Monthly retainer model ($200-500/mo).
1---2name: resend-mcp3description: Use when resend Mcp. Use when working with resend mcp in mcp domain.4domain: mcp5author: oyi776license: Apache-2.07subdomain: mcp8tags:9- mcp10- mcp-server11- model-context-protocol12- resend13- tool-integration14version: 1.0.015category: mcp16metadata:17 source: https://skillmd.com/skills/oyi77/resend-mcp18---1920# Resend Mcp2122## When to Use2324**Trigger phrases:**25- "resend mcp"26- "Help me with resend mcp"2728**Use cases:**29- When the task matches this skill's domain expertise3031**When NOT to use:**32- For tasks outside this skill's scope333435## When NOT to Use3637- When a simpler HTTP client would suffice38- For internal tools that do not need cross-platform compatibility39- When the tool is used by a single agent in a single context404142## Overview4344Resend Mcp implements a Model Context Protocol server for Model Context Protocol.4546Resend is a modern email API that provides reliable email delivery for transactional, marketing, and broadcast use cases. It handles domain verification (SPF, DKIM, DMARC), bounce and complaint processing, and delivery analytics out of the box. The Resend MCP server wraps this API into model-context-protocol tools, allowing AI agents to send and track emails as part of autonomous workflows.4748The MCP server exposes a `send-email` tool with typed parameters for recipient, subject, body, and optional configuration (HTML content, attachments, CC/BCC, reply-to headers). Agents can integrate email delivery into their decision loops — sending verification codes, lead follow-ups, alert notifications, or report summaries without leaving the MCP conversation. The server also supports SSE transport for production deployments behind reverse proxies with TLS termination.4950## Architecture5152- **Server** — MCP-compliant server exposing tools and resources53- **Transport** — stdio or HTTP transport layer54- **Tools** — Callable functions with JSON Schema definitions55- **Resources** — Readable data sources with URI-based access5657## Setup58591. Install the MCP server package602. Configure environment variables and credentials613. Register the server in MCP client configuration624. Test tool invocations and resource access636465### Python installation66```bash67pip install resend-sdk mcp68```6970### Node.js installation71```bash72npm install resend @modelcontextprotocol/sdk73# or74pnpm add resend @modelcontextprotocol/sdk75```7677### Environment variables78```bash79export RESEND_API_KEY="re_xxxxxxxxxxxxx"80```81Add to your `.env` file for local development.8283## Configuration8485- Server name and version86- Transport type (stdio, SSE, HTTP)87- Tool definitions with input/output schemas88- Resource URI patterns89- Authentication and rate limiting9091## Integration9293- Compatible with Claude, Cursor, and other MCP clients94- Supports streaming responses for large payloads95- Handles errors with standard MCP error codes9697## Workflow98991. **Set up Resend account** — Sign up at resend.com, verify your sending domain by adding the required DNS records (SPF, DKIM, DMARC). Generate an API key from the dashboard.1002. **Install MCP server dependencies** — Add the Resend SDK and MCP server SDK to your project via pip (Python) or npm (Node.js). Configure environment variables for the API key.1013. **Define the email tool** — Register an MCP tool with a `send-email` action. Specify typed parameters: recipient, subject, body, and optional fields (CC, attachments, HTML content).1024. **Wire the Resend client** — Instantiate the Resend client inside the tool handler, call `resend.emails.send()` with the validated parameters, and return the result or error to the MCP client.1035. **Register and test with an MCP client** — Add the server to your MCP client config (Claude Desktop, Cursor, etc.). Send a test email and verify delivery in the Resend logs.1046. **Handle delivery feedback** — Configure Resend webhooks for bounce, complaint, and delivery events. Route these through MCP resources so your agent can query delivery status.1057. **Deploy to production** — Run the MCP server with SSE transport behind a reverse proxy (nginx, Caddy) with TLS. Monitor uptime and email delivery health via dashboards.106107## Anti-Rationalization Table108109| Rationalization | Reality |110|---|---|111| "I will just use curl" | MCP handles auth, retries, streaming, and type safety. Use the SDK. |112| "One mega-server is simpler" | Single-responsibility servers are easier to debug and maintain. |113| "MCP is just a wrapper" | MCP enables cross-platform tool sharing. It is infrastructure, not overhead. |114| "Resend is just for transactional email" | Resend supports transactional, marketing, and broadcast emails. The MCP server abstracts all of them behind a unified tool interface. |115| "I should build my own email API" | Resend handles deliverability, DKIM, bounce handling, and domain warmup. Building these in-house is weeks of work. |116| "MCP tools are only for text" | MCP tools can integrate full email capabilities — attachments, HTML templates, CC/BCC, reply-to headers, and delivery webhooks. |117118```typescript119// Example: MCP server tool definition120import { McpServer } from "@modelcontextprotocol/sdk";121122const server = new McpServer({ name: "my-tools", version: "1.0.0" });123124server.tool("search", { query: z.string() }, async ({ query }) => {125 const results = await search(query);126 return { content: [{ type: "text", text: JSON.stringify(results) }] };127});128```129130## Code Examples131132### Python — Send email via Resend SDK133134```python135import os136from resend import Resend137138resend = Resend(api_key=os.environ["RESEND_API_KEY"])139140r = resend.emails.send({141 "from": "onboarding@resend.dev", # Use your verified domain in production142 "to": ["user@example.com"],143 "subject": "Hello from Resend MCP",144 "text": "This email was sent through the Resend API.",145})146print(f"Email sent: {r['id']}")147```148149### JavaScript/Node.js — Send email via Resend SDK150151```javascript152import { Resend } from 'resend';153154const resend = new Resend(process.env.RESEND_API_KEY);155156const { data, error } = await resend.emails.send({157 from: 'onboarding@resend.dev',158 to: ['user@example.com'],159 subject: 'Hello from Resend MCP',160 text: 'This email was sent through the Resend API.',161});162163if (error) {164 console.error('Send failed:', error);165} else {166 console.log('Email sent:', data.id);167}168```169170### Registering a Resend MCP tool with email capability171172```typescript173import { McpServer } from "@modelcontextprotocol/sdk";174import { z } from "zod";175import { Resend } from "resend";176177const resend = new Resend(process.env.RESEND_API_KEY);178179const server = new McpServer({ name: "email-tools", version: "1.0.0" });180181server.tool(182 "send-email",183 {184 to: z.string().describe("Recipient email address"),185 subject: z.string().describe("Email subject line"),186 text: z.string().describe("Email body text"),187 },188 async ({ to, subject, text }) => {189 const { data, error } = await resend.emails.send({190 from: "noreply@yourdomain.com",191 to: [to],192 subject,193 text,194 });195 if (error) return { content: [{ type: "text", text: `Error: ${error}` }] };196 return { content: [{ type: "text", text: `Email sent: ${data.id}` }] };197 }198);199```200201202## Process2032041. **Prepare** — Gather requirements, verify prerequisites, set up environment2051. **Execute** — Run resend mcp workflow with configured parameters2061. **Verify** — Validate output meets requirements, document results2071. **Configure SDK** — Set up Resend SDK with API key from dashboard, configure sender domain verification and DNS records.2081. **Define tool schema** — Create or extend MCP tool definitions with typed input/output schemas using zod (TS) or pydantic (Python).2091. **Test send** — Execute a test email send through the MCP tool to verify end-to-end: client → MCP server → Resend API → inbox delivery.2101. **Monitor & iterate** — Check delivery logs in Resend dashboard, handle bounce/complaint webhooks, and update tool parameters as needed.211212## Verification213214- [ ] All steps executed successfully215- [ ] Results validated against acceptance criteria216- [ ] Error handling tested with edge cases217- [ ] Documentation updated with findings218219## Common Issues & Troubleshooting220221| Problem | Solution |222|---|---|223| "Resend API key not recognized" | Verify `RESEND_API_KEY` is set in environment and the key is active in the Resend dashboard. Keys start with `re_`. |224| "MCP tool returns empty response" | Ensure the transport (stdio/SSE) is properly configured on both server and client sides. Check for port conflicts. |225| "Email delivery delayed or dropped" | Confirm sender domain is verified in Resend. SPF, DKIM, and DMARC records must be configured for the sending domain. |226| "Rate limit exceeded (429)" | Resend defaults to 5 req/s on free tier. Implement exponential backoff retry logic in your MCP tool handler. |227| "Connection refused on SSE transport" | The MCP server process may not be running. Verify the process is alive and listening on the configured port. Use `ps aux | grep mcp` to confirm. |228| "TypeError in tool schema validation" | Ensure all JSON Schema definitions in your tool parameters match the actual types sent. Use `zod` for TypeScript or `pydantic` for Python schema validation. |229230## Monetization231232- **Custom email MCP server for clients** — Build and host a private Resend MCP server for businesses that need transactional email, marketing campaigns, and newsletter sending from their AI agents. Charge $50-200/mo per deployment.233- **Email automation SaaS** — Offer a ready-to-use Resend MCP integration as a service, combining it with templating and analytics. Tiered pricing ($29-99/mo) based on email volume.234- **Consulting: domain deliverability setup** — Help clients configure SPF, DKIM, DMARC, and warm up sending domains for reliable email delivery through Resend. One-time $500-1500 per domain.235- **MCP server marketplace listing** — Package the Resend MCP server as a plug-and-play tool on MCP marketplaces. Charge per download or offer premium features (HTML templates, attachment support, bulk send).236- **White-label email API wrapper** — White-label the Resend integration for agencies that need branded email infrastructure for their clients. Monthly retainer model ($200-500/mo).