Give Codex your inbox, read-only
Codex CLI, the IDE extension and the ChatGPT desktop app share one MCP configuration. Add Emailgents once and all of them can read your mail.
# or: codex mcp add emailgents --url https://emailgents.com/mcp
[mcp_servers.emailgents]
url = "https://emailgents.com/mcp"server: https://emailgents.com/mcp
Setup
Sign in happens in the browser once; the client remembers it.
- 01Connect your mailboxes in EmailgentsSign up at emailgents.com and add your accounts under Mailboxes.
- 02Add the serverRun codex mcp add as below, or add the TOML block to ~/.codex/config.toml.
- 03Sign in onceCodex opens the Emailgents sign-in the first time it connects; approve once and the session is kept.
- 04AskCodex now has the Emailgents tools next to its own; start with inbox_overview.
Things to ask
- “Find the email with the staging credentials from DevOps and tell me which host to use.”
- “Pull the latest failing-build notification and summarize the error.”
- “Search all accounts for the invoice number 4471 and quote the amount.”
Codex questions
Do I need an API key?
Not for MCP. You sign in to Emailgents in the browser when the client connects and approve once. API keys exist for scripts that use the REST API instead.
Which inboxes will it see?
Every mailbox you have connected in Emailgents: Gmail and Google Workspace, Outlook and Microsoft 365, iCloud, Yahoo, Fastmail, AOL, Zoho, GMX, WEB.DE and any IMAP server. Add or remove mailboxes in Emailgents and the agent sees the change on its next call.
Can it read several accounts at once?
Yes. search_messages and inbox_overview cover every connected mailbox by default. Pass account_ids to narrow to one; each result carries its account so the agent can tell them apart.
Can it send, delete or move my mail?
No. The tool set is read-only apart from set_flags, which toggles read and starred. An instruction hidden inside an email cannot make the agent send anything on your behalf, and every call is listed on your Activity page.
Other agents
- ClaudeClaude's built-in Gmail connector handles one Google account. Add Emailgents once and Claude reads all of your mailboxes, iCloud and IMAP included.2 min
- Claude CodeOne command in the terminal. Claude Code can then pull the bug report from your work mail, the invoice from iCloud and the Stripe receipt from Gmail without leaving the session.1 min
- ChatGPTChatGPT's built-in apps cover Gmail and Outlook. With Emailgents as a connector it also reads iCloud, Yahoo, Fastmail and your second Gmail, through one sign-in.3 min
- CursorBug reports, customer threads and vendor receipts live in email. Add one entry to mcp.json and Cursor's agent can read them without you copying and pasting.2 min
- Gemini CLIGemini in Gmail reads one Google account. Gemini CLI with Emailgents reads every inbox you own, from the terminal.2 min
- WindsurfCascade reads remote MCP servers from one config file. Add Emailgents and it can pull the customer thread or the vendor receipt into the task.2 min
- VS CodeCopilot agent mode speaks MCP. Add Emailgents and it can read the bug report, the contract or the receipt without leaving the editor.2 min
- Custom agents and scriptsFrameworks that speak MCP connect to the same server as Claude and Cursor. Everything else uses the REST API with a key you can scope to specific mailboxes.5 min