Codex MCP: connect OpenAI Codex to Gmail and Outlook
Add Replyless to OpenAI Codex as a streamable HTTP MCP server, sign in, and Codex can search, read, draft, tidy and send your Gmail, Outlook, Zoho Mail and IMAP email from the CLI, the app or your IDE.
Works during the 7-day free trial and on Basics, Pro and Lifetime. Each tool call uses 1 credit (Pro and Lifetime are unlimited), and each account gets 60 requests a minute.
Connect Codex to your email
- Connect your mailbox to Replyless
Sign up at replyless.ai and connect Gmail, Outlook, Zoho Mail or any IMAP account. Connect several if you like; your agent can use each of them.
- Add Replyless to config.toml
For the Codex CLI, add this to ~/.codex/config.toml.
[mcp_servers.replyless] url = "https://mcp.replyless.ai/mcp" - Sign in
Run codex mcp login replyless, sign in to Replyless in the browser and click Allow.
codex mcp login replyless
Things to ask
- Which emails from this week still need a reply?
- Search my Gmail for the contract from Dana and summarize it
- Draft a reply to the latest email from Sam saying Thursday works
- Archive every newsletter in my Outlook inbox
In the Codex app or IDE extension
In the Codex app, open Settings → MCP servers → Add server, choose Streamable HTTP, paste the Replyless URL, save and restart. In the IDE extension, open the gear menu → MCP servers → Add server, then click Authenticate.
Frequently asked questions
- Does this work in the Codex app and IDE extension too?
- Yes. Add the same URL under Settings → MCP servers in the app, or the gear menu → MCP servers in the IDE extension, then sign in to Replyless.
- Which email accounts can Codex reach?
- Every mailbox you connect to Replyless: Gmail and Google Workspace, Outlook and Microsoft 365, Zoho Mail and any IMAP account. Name the one you mean, or let the agent list them first.
- Can Codex send email without me?
- Codex sends only through the send_email tool, and the tool tells it to send only when you clearly ask. For anything else it saves a draft in Replyless for you to review. You can remove its access any time in Settings → Connected AI apps.
- What does it cost to use Replyless from Codex?
- Each tool call uses 1 Replyless credit, and a failed call costs nothing. Basics ($15 a month) includes 5,000 credits a month; Pro ($30) and Lifetime ($299 once) are unlimited. Start with a 7-day free trial, no card.