---
agent:
  instructions: "Use this search API to find what Blueping's public pages say, with keywords or a question, instead of crawling them one by one. Results are returned in Markdown, best first, each with its link."
  endpoint: "https://blueping.dev/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

> The index of these docs for agents is at https://blueping.dev/llms.txt

# Give Codex its own email address.

Codex makes an inbox for each flow it builds, waits for the email it triggers and reads it as JSON.

Terminal:

```bash
codex mcp add blueping --url https://blueping.dev/mcp
codex mcp login blueping
```

Run both in a terminal. The second signs Codex in through your browser.

[Get an address](https://blueping.dev/signup.md) · [**Agents** /integrations/codex.md](https://blueping.dev/integrations/codex.md)

Blueping makes email inboxes for AI agents: one API call gives an agent its own address, with verification codes pulled out and every sender checked.

## Connect Codex in two commands

`codex mcp add` registers Blueping's hosted server and `codex mcp login` signs it in through your browser. Codex can then create inboxes for the flows it builds, wait for the emails they trigger and read them as JSON.

### 1. Add and sign in

Run both in a terminal. The second opens your browser.

Terminal:

```bash
codex mcp add blueping --url https://blueping.dev/mcp
codex mcp login blueping
```

### 2. Or with a key

Codex reads the token from the variable you name, so it never sits in its config:

Terminal:

```bash
codex mcp add blueping --url https://blueping.dev/mcp --bearer-token-env-var BLUEPING_API_KEY
```

Checked against [Codex docs, MCP](https://developers.openai.com/codex/mcp) on November 22, 2026.

## What Codex does with its own inbox

### Build the email step and prove it

Prompt: Implement the magic-link login and prove it works end to end with a Blueping inbox.

Codex builds the flow, then `create_inbox` and `wait_for_code` check the link your app sends.

### Clean up after a run

Prompt: Delete the test inboxes you made today.

`list_inboxes` with `q`, then `delete_inbox`, which Codex confirms with you first: a deleted address is retired for good.

## Before you connect Codex

- `codex mcp list` shows the server and how it signs in.

### Does Codex keep the sign-in between sessions?

Yes. After `codex mcp login`, the server stays signed in until you revoke the connection in your Blueping dashboard.

## Build more with Codex

- [**Coding agents** Claude Code, Codex and Cursor get an inbox over MCP to test your app's emails and read codes from the editor.](https://blueping.dev/use-cases/coding-agents.md)
- [**Email tests in CI** Your test suite signs up to staging with a tagged address, waits for the real email and checks its links and its authentication.](https://blueping.dev/use-cases/email-testing-in-ci.md)
- [**Verification codes and sign-ups** The agent signs up to a service with an address of its own and reads the code or the magic link in one call.](https://blueping.dev/use-cases/verification-codes.md)
- [**Windsurf** Cascade's MCP config file, then a browser sign-in.](https://blueping.dev/integrations/windsurf.md)
- [**Cline** A remote server in Cline's MCP settings, with your key in the header.](https://blueping.dev/integrations/cline.md)
- [**Zed** A remote server in context_servers, signed in when Zed asks.](https://blueping.dev/integrations/zed.md)

[All integrations](https://blueping.dev/integrations.md) · [The quickstart](https://blueping.dev/docs.md) · [API reference](https://blueping.dev/docs/api.md) · [Every MCP client](https://blueping.dev/agents.md)
