Email for developers, agents and marketing teams

An API, a console and an MCP server for email, in one open source repository. Use our cloud, or run it yourself.

Get started

or set it up from

6 more

or self-host on

any server

Works on

NextmailYour server
Send

Send transactional, marketing or any email with one call.

Call it from the SDK, the API, the CLI or an MCP tool. The answer says what happened to the message.

One request from wherever you already work.

TypeScript
▍            

One answer that says what happened to the message.

  • Batch

    Several emails in one call.

  • Schedule

    Now, or at a time you set.

  • Attach

    Files, tags and your own headers.

  • Repeat safely

    With a key, a retry sends once.

Templates

Start from a design that is ready.

Pick a ready-made template, change it in the editor and publish it. Every send fills in its variables.

  • Variables

    A send that lacks a value is refused.

  • Two copies

    Emails use the published one, never the draft.

  • Versions

    Every publish is kept, and any one can be restored.

  • Alias

    Send by id, or by a name you choose.

AI

AI first.

An assistant is built into every page of the console. Ask it for a template, an answer or a change in plain words. It reads by itself and asks before it changes anything.

How the assistant works
  • Templates by asking

    Describe the email and get it back as blocks you can edit by hand. A later request changes one block.

  • Answers from your data

    Why a send failed, which domain is waiting, who bounced. It reads your emails, domains and logs with your permissions.

  • It knows the page

    Leave page context on and it knows which screen you are looking at.

  • You confirm every change

    A change comes back as one card. It runs when you confirm, with no model involved.

Ask for an email. It builds the template in blocks and waits for your yes.

Write a welcome email for new sign-ups, with one button.
  • Console

    The assistant is one key away on every page.
  • Tools

    119 tools, one for each method an agent may call.
  • Docs

    Every docs page has a Markdown twin and opens in ChatGPT, Claude or Perplexity.
  • Model

    On a server of your own you choose the model.
MCP

Your agent gets every method.

Connect any MCP client to one address. It gets a tool for each method, within the scopes of its key.

Connect your agent
https://api.opensend.sh/v1/mcp

Works with

One address to add to any agent that speaks MCP.

mcp.json
{  "mcpServers": {    "opensend": {      "url": "https://api.opensend.sh/v1/mcp",      "headers": {        "Authorization": "Bearer os_xxxxxxxxx"      }    }  }}

Say what you want. Your agent calls a tool, and the console shows the result.

  • Tools

    One per method, named after the API.
  • Scopes

    A key limits what an agent may do.
  • Effects

    Each tool says whether it reads, writes, sends or deletes.
  • Assistant

    The console has its own. It asks before a change.
Developers

See every event. Test before you send.

Signed webhooks that retry, a sandbox that sends nothing and a log of every call.

Read the docs

Signed and retried. An endpoint that is down gets the event later.

How webhooks work

A sandbox that sends nothing. A test key simulates every email, and a test address ends the way its name says.

How the sandbox works
  • Scoped keys

    A key does what its scopes allow, and no more.

  • Logs

    Every call a key makes, with its status and time.

  • Try it

    Each method page in the docs sends a real request.

  • OpenAPI

    One document that describes every method.

Console

One console for all of it.

Design the email, set what sends it and read what happened. Every page has its API.

Build it from blocks. Drag one in, click to edit and see it on a phone. Try it.

Learn more
Features

Everything around the send.

Domains, inbound mail, contacts, suppressions, keys and logs. Each has its page and its API.

See every feature
Pricing

Up to 87% less than Resend.

One plan covers the emails your app sends and the ones your marketing sends. Resend bills those as two plans.

See the plans
  • Free

    Free here

    5,000 emails and 2,000 contacts a month

    Here
    $0
    Resend
    $60
    Mailgun
    from $15
  • Pro

    87% less than Resend

    75,000 emails and 15,000 contacts a month

    Here
    $20
    Resend
    $155
    Mailgun
    from $67.50
  • Max

    84% less than Resend

    200,000 emails and 60,000 contacts a month

    Here
    $90
    Resend
    $575
    Mailgun
    from $200

Resend's price is its plan for the emails plus its marketing plan for the same contacts. Mailgun's is its lowest listed price for the emails alone. Both were read from their pricing pages on December 5, 2026. For the emails alone the gap to Resend is smaller, and at some sizes it is not in our favour. The pricing page shows every size.

Resend's pricesMailgun's prices

Open source

Yours to change.

It is open source, so you can add what you need, take out what you do not and run the rest as it is.

  1. Add

    Declare a method once and it is on REST, the SDK, the CLI and MCP.

  2. Remove

    Take a method off the list and it is gone from every one of them.

  3. Keep it small

    A server of your own is one service, with its data in one folder.

  • Nothing held back

    No feature is kept back for a paid edition.

  • Privacy first

    Host it and everything is in your own database.

  • Secrets sealed

    A key is kept as a hash and shown once.

  • Same code

    What our cloud runs is what you clone.

Hosting

Three ways to run it.

We host it, you host it, or you host it and the sending too. It is the same code each way.

Clone it, and one command starts the whole stack on your machine.

Terminal
▍   
Questions

Before you start.

Short answers to what people ask first.

The basics6 questions

An email platform you can run yourself: an API for sending and receiving, a console for your team and an MCP server for agents. The same code runs our cloud and a server of your own.

Developers who send email from code, marketing teams who send broadcasts and build automations, and agents that do both through MCP.

Yes. The whole product is built in one repository you can clone, and no feature is kept back for a paid edition. Its licence will be in the repository, and until it is there this page names none.

The team that builds Nextmail, the email infrastructure it runs on.

Not yet. The hosted service is planned and is not open, and no date is given here.

No. OpenSend is an independent project. Resend is a trademark of its owner.

Sending6 questions

Through Nextmail: sending, DNS records and delivery events with one key, and you pay Nextmail for what you send. Hosting the sending engine on a server of your own, with no Nextmail bill, comes later.

Any address on a domain the workspace has verified. A template can carry a sender, so a request that names a template can leave it out.

As long as DNS takes to spread, so a first check may still find nothing. Check again once the records are published. The domain is also checked by itself when Nextmail reports a change.

Yes. Mail for any address on a domain of your workspace is stored and shown in the console, and a webhook tells your app that it arrived.

Yes. A key that starts with os_test_ sends to nobody: each email is simulated and says so. With a live key, an address such as bounced@opensend.test does the same, and the name before the @ decides how the email ends. Test emails are never billed.

Not yet. It is marked Soon in the menu. Today anything that can make an HTTPS request can send: your own code, a script that runs the CLI or an agent over MCP.

Building6 questions

Yes. A TypeScript SDK for Node.js, Bun, Deno and edge runtimes, and a CLI with one command for every method.

No. Build the template from blocks, and the HTML and the plain text are made for you. You can turn it into HTML later and keep what the blocks made.

Through webhooks. An endpoint gets a signed request for what happens to an email you send, for mail that arrives and for the runs of an automation. A request that fails is tried again.

Only for domains with tracking on. Open tracking is on by default and click tracking is off, and every domain has its own two switches.

No. Each feature stands by itself. Send with the API alone, and add templates, broadcasts or automations when you need them.

SMTP, which the menu marks Soon, and hosting the sending engine on a server of your own. Until then mail goes out through Nextmail.

AI and agents6 questions

Yes. The console has one on every page. It answers from your own emails, domains and logs, and a change it wants to make waits until you confirm it.

Yes. Ask the assistant, or your own agent, for an email and it builds a template from blocks. A later request can change a single block. In the console nothing is saved until you confirm.

No. A tool that changes, sends or deletes is never carried out by asking. It comes back as one proposal, and it runs only when you confirm.

Through MCP. Add the server address and an API key to your agent, and every method becomes a tool it can call. The scopes of the key limit what it may do.

No. A new key or a signing secret is returned by the change you confirmed, which runs with no model involved. In what the model does read, fields named token, secret, hash and password are hidden.

On our cloud, a model reached through OpenRouter. On a server of your own you choose the model with one value, and the assistant stays off until you give it a key.

Price6 questions

Yes. Free costs nothing: 5,000 emails a month, 2,000 contacts, 5 domains and 5 people on the team.

On Free, sending stops at 5,000 emails until the first of the next month. On Pro and Max nothing stops: every extra 1,000 emails cost $0.70 on Pro and $0.45 on Max, counted by the email.

No. One plan covers the emails your app sends, the broadcasts you send to an audience and the mail you receive. Each has its own count for the month, and all three are in the price.

Yes, and 2 months of the year are free: Pro costs $200 a year and Max costs $900.

Polar. Cards are taken by Polar at checkout.

Emails and API requests are counted by calendar month, in UTC, and start again on the first. Contacts, domains and team members are counted as they stand.

Hosting and help6 questions

Yes. The dashboard, the API and the MCP server are one program, and a server of your own runs the same code as our cloud.

Nothing to us. You pay your host for the server, and Nextmail for what you send.

On our cloud, in one Cloudflare D1 database, which the API reads and writes. When you host OpenSend yourself, it is a SQLite file in one folder on your own server. An email you send is handed to Nextmail to be delivered.

Point the Resend SDK at OpenSend with one setting and keep your code. An import then brings over your domains, contacts, templates and broadcast drafts.

Yes. The console exports contacts, the suppression list and the logs as CSV files, and the API lists everything a page at a time.

With the contact form on the Support page. A person reads the message and answers by email. A bug that others should see belongs in the issues of the repository.

Send your first email in a few minutes.

Create a key and send, or clone the repository and run it yourself.