# Connect Codex to LotsMail

Canonical page: https://lotsmail.to/agents/codex
Steps checked: 2026-10-13

Ask Codex to read, search and draft replies in your LotsMail business inbox. Add LotsMail to Codex as a remote MCP server and sign in once.

MCP server URL: https://api.lotsmail.to/mcp
REST API docs: https://api.lotsmail.to/docs
Setup instructions for your agent: https://lotsmail.to/skill.md

## What you can do once connected

- Read and search your mailboxes: list conversations by folder, open a whole conversation and find messages by person, subject or text.
- Write drafts and reply drafts that wait in Drafts for you to review and send.
- Send, reply and send a draft, once you have turned sending on for that mailbox, and check whether each message was delivered.
- Mark messages read or unread, star them and move them between inbox, archive, trash and spam.
- Start domain setup and show how your domains are paid for. Domains, DNS, team access and agent permissions stay yours, in the dashboard.

The LotsMail dashboard does the whole job too: a full inbox on every device, plus domains, mailboxes, team and agent permissions. Your agent for speed, the dashboard for control.

## You need

- Codex CLI, the Codex app or the IDE extension
- A LotsMail account. You can create one during sign-in.

## Connect Codex to LotsMail

1. **Add the server.** Run this in your terminal.

```
codex mcp add lots-mail --url https://api.lotsmail.to/mcp
```

2. **Sign in.** Run this and finish the sign-in in the browser that opens.

```
codex mcp login lots-mail
```

3. **Check the connection.** Start Codex and run /mcp; lots-mail is listed with its tools. In the Codex app or IDE extension, add it instead under Settings, then MCP servers: select Add server, choose Streamable HTTP, paste the URL, save and select Authenticate.

```
/mcp
```

## What to ask next

- “What came in for sales@ today? Summarise anything that needs a reply.”
- “Draft a reply to the latest message from the supplier and leave it for me to check.”
- “Find last month’s invoice from our supplier and tell me the amount and due date.”
- “Check whether my last email to Acme was delivered.”

## Questions and troubleshooting

### How do I connect Codex to LotsMail?

Follow the Codex setup above to add https://api.lotsmail.to/mcp. Complete sign-in using the authentication method shown. Then ask “List my LotsMail mailboxes”.

### Does LotsMail work in the Codex app and the IDE extension?

Yes. Add it under Settings, then MCP servers: select Add server, choose Streamable HTTP, paste https://api.lotsmail.to/mcp, save and select Authenticate.

### Do I need an API key to use LotsMail with Codex?

No. Codex signs in to LotsMail in your browser. API keys are for the REST API, for scripts and your own apps.

### What does LotsMail cost?

Current plans and prices are on https://lotsmail.to/pricing. Your agent’s own plan or usage fees are separate.

### Can my agent send email without me?

Only if you turn on sending for that mailbox. Sending is off until you do. With read or draft access your agent can search, read and write drafts that wait in Drafts for you to review and send.

### Which mailboxes can my agent open?

Only the mailboxes you can open yourself. For each one you choose what agents may do: read and search, write drafts, or send. Owners do not get private mailboxes by default.

### Can I limit who my agent emails?

Yes. A mailbox can be restricted to a list of addresses it may send to, and any other recipient refuses the whole send. Only a workspace owner or admin changes restrictions, in the dashboard.

### Can my agent change my domain or DNS?

No. It can start domain setup, which gives you the steps and the dashboard link. Domains, DNS, billing, team access and agent permissions stay with you, in the dashboard.

### Tools fail with an auth error

Run codex mcp login lots-mail again; sessions expire after a period of inactivity.

## Sources

- [Codex: MCP](https://learn.chatgpt.com/docs/extend/mcp?surface=cli)
