Every click in the app
is a tool an agent can call.

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.

Your session, run by an agent

  1. Go through my inbox the way I just did.

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

MCP,
a building block for email.

Point an MCP client at one URL. Each tool is named for what it does, and it follows what you approve.

606 tools

MCP server

Point a client at one URL and sign in. The tools follow what you approve.

Read the docs: MCP server
  • listThreadsApproved
  • sendEmailWaiting for you

Approval

An app sees only the tools its approval covers.

Read the docs: Approval
  • threads:read
  • contacts:read
  • labels:write
  • emails:send

Scopes

Each tool names the scope it needs, such as threads:read or emails:send.

Read the docs: Scopes

One address to paste.
Any MCP client.

The 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/mcp

Run 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/mcp

Open Settings, then Connectors, choose Add custom connector and paste this address.

https://api.nextmail.sh/mcp

In 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 start

Run 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.

Prompt for your agent

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.

Everything an inbox does.
Through one connection.

An agent gets an address, reads what arrives and answers in the thread. Each step is a real tool, command or event.

Get an address

nextmail temp new

Wait for mail

waitForEmail

Read the thread

getThread

Reply in it

replyToEmail

Share a file

createFileLink

Hear back

email.replied

606 tools.
Each named for what it does.

An app gets only the tools its approval covers, so one held to reading has no sending tool at all.

  • Workspace202
  • Calendar50
  • Mail46
  • Your account39
  • Audiences35
  • Contacts29
  • Automations26
  • Templates23
  • Knowledge base23
  • and 14 more toolkits

You approve it.
Like any other app.

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.

Your role is the ceiling
An app never holds a permission you lack, and when your role loses one, the app loses it on its next call.
Some things are never granted
No app can create or rotate API keys, open billing or manage the workspace, whatever you tick.
Risky changes wait for you
Adding a webhook, writing a rule, changing roles or removing a domain needs your verification code, or a 60-minute allowance you switch on for that app.

Four doors.
One mailbox behind them.

REST, the SDK, the command line and MCP reach the same operations, with the same scopes and the same limits.

Give it an address.
Watch it work.

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.

© 2026 Nextmail. All rights reserved.