OpenSend is open source.Star us on GitHub0
by
  • Features
  • Pricing
  • Self-host
  • AI
  • Docs
0Sign inGet started

Features

  • All features
  • Email API
  • Templates
  • Inbound
  • Webhooks
  • SMTP
  • Broadcasts
  • Audiences
  • Automations
  • Suppressions
  • Domains
  • API keys
  • Metrics
  • Logs

AI

  • Agents
  • Claude
  • Claude Code
  • Cursor
  • Codex
  • GitHub Copilot
  • Gemini CLI
  • v0
  • Bolt
  • Lovable
  • Replit
  • Ask anything

Docs

  • Getting started
  • Webhook guide
  • Sandbox
  • Template gallery
  • React Email
  • Changelog
  • API reference
  • SDK
  • CLI
  • MCP server

Help

  • Support
  • Status
  • Migrate from Resend

Company

  • About
  • Blog
  • Contact
  • Security

Self-host

  • Self-hosting
  • Source on GitHub
  • Nextmail
by
PricingTermsPrivacy
StatusChecking the API

© 2026 OpenSend. All rights reserved.

AI

Connect Codex to your email.

OpenSend has an MCP server built in. Give Codex the address and a key, and the methods of the API become tools it can call.

Get startedRead the docs

What to paste

Server address
https://api.opensend.sh/v1/mcp
Header
Authorization
Value
Bearer os_...
  • 119 tools

    Each one is a method of the API.

  • One address

    /v1/mcp, on your own API.

  • A key, no sign-in

    It goes in the Authorization header.

  • Plain JSON

    One request in, one answer out.

Set up

Three steps to the first tool call.

Make a key, give Codex the address, and ask.

Prompts

Ask Codex to do the work.

Each of these runs one tool. The name on a card is the tool Codex calls.

  • domains_create

    Add updates.example.com and tell me which DNS records to publish.

    Returns the domain with its records.

    Add domain
  • emails_send

    Send a test email from hello@mail.example.com to me.

    Returns the id of the queued email.

    Send email
  • emails_list

    Which emails bounced this week?

    Returns the emails with that status.

    List emails
  • logs_list

    Show the API requests that failed today and what was wrong.

    Returns each failed request with its error.

    List logs
  • webhooks_create

    Post bounces and complaints to https://example.com/hooks/mail.

    Returns the webhook and its signing secret, once.

    Add webhook
  • contacts_create

    Add grace@example.com to the Beta testers audience.

    Returns the contact, in that audience.

    Add contact
Control

The key decides what Codex may do.

Codex asks for its tools and gets the ones its key may use, and no others. A call the key may not make is refused.

  • Sending key

    Sees 8 of the 119 tools: enough to send.

  • One domain

    A sending key can be held to a single domain.

  • Revoke

    Remove the key and Codex is cut off.

  • Logs

    Every tool call is listed with its name and its error.

Check a call before it runs
curl -X POST "$OPENSEND_API_URL/v1/mcp" \  -H "Authorization: Bearer $OPENSEND_API_KEY" \  -H "Content-Type: application/json" \  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"domains_create","arguments":{"name":"updates.example.com"},"_meta":{"opensend/check":true}}}'
Good to know

What Codex needs.

These steps follow the documentation of Codex as it read on 28 Nov 2026. If a label has moved since, their page is right.

Codex documentation
  • The key comes from a variable

    bearer_token_env_var names the variable whose value Codex sends as the Authorization header.

  • No login step

    codex mcp login is for servers that use OAuth. This one takes the key.

Questions

Questions.

What people ask before they connect Codex.

No. The key is the credential. It goes in the Authorization header as a Bearer token, like on every other request, and there is no OAuth step.

Yes. Give it a key of its own. A sending key sees only the few tools a sender needs, and it can be held to one domain. A full key sees every tool.

In Logs. Every request a key makes is listed, and a tool call shows the name of the tool and, when it failed, the reason. Filter the list by the key you gave Codex.

Yes. A tool call can be sent as a check. The server makes sure the key may use the tool and that the input is valid, runs nothing, and answers.

No. Closing a workspace is not a tool, so a mistake of a model cannot wipe one.

Yes. Codex runs on your machine, so any address it can reach works, localhost included.

More in AI

  • AgentsEvery method of the API is a tool an agent can call.
  • ClaudeAdd the MCP server to Claude and it can send, look up and manage email for you.
  • Claude CodeAdd the MCP server to Claude Code and it can send, look up and manage email for you.
  • CursorAdd the MCP server to Cursor and it can send, look up and manage email for you.
  • GitHub CopilotAdd the MCP server to GitHub Copilot and it can send, look up and manage email for you.
  • Gemini CLIAdd the MCP server to Gemini CLI and it can send, look up and manage email for you.
  • v0Give v0 a key and the API reference, and the app it builds can send email.
  • BoltGive Bolt a key and the API reference, and the app it builds can send email.
  • LovableGive Lovable a key and the API reference, and the app it builds can send email.
  • ReplitGive Replit a key and the API reference, and the app it builds can send email.
  • MCP serverOne address to add. An agent gets a tool for every method.
  • Ask anythingThe console's own assistant. It asks before it changes anything.

Send your first email in a few minutes.

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

Get startedStar on GitHub0