MCP server
Point a client at one URL and sign in. The tools follow what you approve.
Read the docs: MCP server
The window below shows one session run by an agent. Open the mailbox tab, read a thread, star it or search, and the agent repeats each click with a tool.
Inbox
Everything addressed to you, minus spam.
9:41
Sarah Chen
9:12
Northwind Cloud
8:55
Omar Haddad
8:30
Mia Chen
8:02
Lumen
Yesterday
Leo Martin
Yesterday
Skyline Travel
Wed
Ken Ito
Tue
Priya Raman
Your session, run by an agent
Last tool call
{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "listThreads", "arguments": { "folder": "inbox" } }}{ "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "Subject: Homepage copy, final round | ID: t1 | Latest Message Received: 9:41" }, { "type": "text", "text": "Latest Message Sender: Sarah Chen <[email protected]>" }, { "type": "text", "text": "Subject: Invoice 2214 for August | ID: t2 | Latest Message Received: 9:12" }, { "type": "text", "text": "Latest Message Sender: Northwind Cloud <[email protected]>" }, { "type": "text", "text": "Subject: Can we move Thursday? | ID: t3 | Latest Message Received: 8:55" }, { "type": "text", "text": "Latest Message Sender: Omar Haddad <[email protected]>" }, { "type": "text", "text": "Subject: Signed contract attached | ID: t4 | Latest Message Received: 8:30" }, { "type": "text", "text": "Latest Message Sender: Mia Chen <[email protected]>" }, { "type": "text", "text": "Subject: Your code is 481 207 | ID: t5 | Latest Message Received: 8:02" }, { "type": "text", "text": "Latest Message Sender: Lumen <[email protected]>" }, { "type": "text", "text": "Subject: Photos from Saturday | ID: t6 | Latest Message Received: Yesterday" }, { "type": "text", "text": "Latest Message Sender: Leo Martin <[email protected]>" }, { "type": "text", "text": "Subject: Your flight to Lisbon is confirmed | ID: t7 | Latest Message Received: Yesterday" }, { "type": "text", "text": "Latest Message Sender: Skyline Travel <[email protected]>" }, { "type": "text", "text": "Subject: Quarterly numbers are in | ID: t8 | Latest Message Received: Wed" }, { "type": "text", "text": "Latest Message Sender: Ken Ito <[email protected]>" }, { "type": "text", "text": "Subject: Coffee next week? | ID: t9 | Latest Message Received: Tue" }, { "type": "text", "text": "Latest Message Sender: Priya Raman <[email protected]>" } ] }}What your clicks call
Open a thread, star it, search or reply.
Point an MCP client at one URL. Each tool is named for what it does, and it follows what you approve.
Point a client at one URL and sign in. The tools follow what you approve.
Read the docs: MCP serverThe client finds the server's tools and lists them for you.
Read the docs: Point the client at one URLThe client signs in through your browser, and you approve it.
Read the docs: No key to pasteThe server speaks MCP over HTTP. Add its address to your client, sign in once in the browser and approve what it may reach.
claude mcp add --transport http nextmail https://api.nextmail.sh/mcpRun it in a terminal, then type /mcp in Claude Code to sign in.
[mcp_servers.nextmail]url = "https://api.nextmail.sh/mcp"Add it to ~/.codex/config.toml, then run codex mcp login nextmail.
{ "mcpServers": { "nextmail": { "url": "https://api.nextmail.sh/mcp" } }}Add it to ~/.cursor/mcp.json for every project, or to .cursor/mcp.json for one.
{ "servers": { "nextmail": { "type": "http", "url": "https://api.nextmail.sh/mcp" } }}In VS Code, add it to .vscode/mcp.json, then use it from Copilot's agent mode.
{ "mcpServers": { "nextmail": { "serverUrl": "https://api.nextmail.sh/mcp" } }}Add it to ~/.codeium/windsurf/mcp_config.json.
{ "mcpServers": { "nextmail": { "httpUrl": "https://api.nextmail.sh/mcp" } }}Add it to ~/.gemini/settings.json, then run /mcp auth nextmail in Gemini CLI.
https://api.nextmail.sh/mcpOpen Settings, then Connectors, choose Add custom connector and paste this address.
https://api.nextmail.sh/mcpIn ChatGPT, turn on Developer mode in Settings, then create an app and paste this address.
openclaw gateway stopopenclaw mcp add nextmail --url https://api.nextmail.sh/mcp --transport streamable-http --auth oauthopenclaw mcp login nextmailopenclaw gateway startRun these with the Gateway stopped. Open the link the login prints to approve access, then the Gateway starts again.
Or let the agent set itself up
Paste this into any agent that can open a web page or run a terminal command. It reads the guide written for agents, then tells you the one step that needs you.
Read https://nextmail.sh/agent.md and follow it. Then tell me what I need to do to sign you in to my Nextmail mailbox. If I have no account yet, create one with my address and ask me for the code that arrives. Wait for my go-ahead before you send anything.
An agent gets an address, reads what arrives and answers in the thread. Each step is a real tool, command or event.
nextmail temp new
waitForEmail
getThread
replyToEmail
createFileLink
email.replied
An app gets only the tools its approval covers, so one held to reading has no sending tool at all.
replyToEmailMail · 4 of 46
When the client signs in, you pick the workspace, what it may do, which addresses it reaches and for how long. Account → Connected apps changes or removes it later.
Connect an app
Claude Code
Wants access to your mailbox
What it may do
Which mail it reaches
For how long
REST, the SDK, the command line and MCP reach the same operations, with the same scopes and the same limits.

MCP, the API and the command line come with every plan, the free one included. Connect a client and approve exactly what it reaches.
Read https://nextmail.sh/agent.md and follow it. Then tell me what I need to do to sign you in to my Nextmail mailbox. If I have no account yet, create one with my address and ask me for the code that arrives. Wait for my go-ahead before you send anything.