Headless email marketing in Codex.

Connect OpenAI Codex CLI to Nitrosend with remote MCP. Your email stack lives next to your code, so the same agent that ships the feature can wire the emails.

Codex MCP docs →
Quick start

Up and running in three steps.

Step 1

Add the MCP server

Run codex mcp add nitrosend --url https://api.nitrosend.com/mcp in your terminal.

Step 2

Sign in with OAuth

Run codex mcp login nitrosend. Codex opens the Nitrosend sign-in flow in your browser.

Step 3

Prompt Codex

Tell Codex what emails your app needs. It reads your code, understands your users, and builds the campaigns.

Three ways to connect

MCP, API or CLI.

Pick the surface that fits how you're building with Codex.

MCP

Give Codex access to the Nitrosend MCP surface - campaigns, flows, contacts, analytics, Brand Kit, and deliverability.

$ codex mcp add nitrosend --url https://api.nitrosend.com/mcp
MCP docs →

API

Call the REST API directly, or use the typed Node SDK, for transactional sends and programmatic control.

$ npm install @nitrosend/sdk
API docs →

CLI

Drive Nitrosend from your terminal or CI - sign in once, then run MCP tools as commands.

$ npm install -g @nitrosend/cli
CLI on GitHub →
Try it

Example prompts for Codex.

Transactional

"Use Nitrosend REST/SDK to set up transactional emails for signup confirmation, password reset, and invoice receipt. Reference my User model for the fields."

Onboarding

"Use Nitrosend to build a 5-email onboarding series based on our app's key features. Space them out over 14 days."

Migration

"Use Nitrosend to import our contacts from the Mailchimp export in /data/contacts.csv and recreate our existing segments."

Debugging

"Use Nitrosend to check our email deliverability. Are SPF, DKIM, and DMARC configured correctly? What's our bounce rate?"

Analytics

"Use Nitrosend to pull the last 10 campaigns and correlate performance with subject line length and send time."

Refactor

"Use Nitrosend to replace our old Mailgun transactional code. Wire up the equivalent Nitrosend calls and keep the same template variables."

Why it works

Codex + Nitrosend.

Full-stack email

Transactional and marketing on one platform. Separated sending reputations. No second provider.

Code-aware context

Codex reads your models, routes, user flows. Your emails match what your product actually does.

BYO infrastructure

Use your own sending infrastructure and AI keys, or use Nitrosend managed.

Ship features. Ship emails. Same agent.

One MCP connection. Free to start. Send your first campaign in under five minutes.

Read Codex MCP docs →